random gallery image
random tutorial
preview

..different index page for the suite. It's very easy because the only thing you need to do is change the content of default.php. I don't want to create something like hello world or..

read more

random other
xConverter

THC xConverter is a tool that makes use of (php) functions in order to calculate, fetch, convert and encrypt data

more about this module
more of this category
more modules

HackSuite File Library
File Library
Here you can find the latest files and structure of the THC HackSuite, note that if you have an earlier version of the suite it's not recommended to update files manually. Instead you should overwrite your existing HackSuite environment.
<?php
/* Handler for task management

Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 12-11-2014
*/
session_cache_limiter('nocache');
header('Expires: '.gmdate('r',0));
header('Content-type: application/json');
$_DYNAMIC_ROOT "..";
include_once(
"../header.php");
$aDataR = array();
$aDataR['jresult'] = false;
$aActions = array("clearall","runningtasks","completedtasks","alltasks","remove","complete");
$sDataFile "../Data/running.txt";
if(!
function_exists("RawToArray")){
    
$sDest "../Functions/raw_to_array.php";
    include_once(
$sDest);
}
if(
false!==($aRow RawToArray($sDataFile))){
    
$iRow count($aRow);
}
else{
    
/* empty task file */
    
$aDataR['jerror'] = "No data in task file";
    die(
json_encode($aDataR));
}
if(@
in_array($_POST['sAction'],$aActions)){
    if(!
function_exists("WriteF")){
        
$sDest "../Functions/fwrite.php";
        include_once(
$sDest);
    }
    if(isset(
$_POST['sAction']) && isset($_POST['sID'])){
        
/* change a single task */
        
$sData "";
        
$sID trim($_POST['sID']);
        for(
$x=0;$x<$iRow;$x++){
            if(
trim($aRow[$x][3])==$sID){
                if(
$_POST['sAction']=="remove"){
                    continue;
                }
                else{
                    
$sData .= $aRow[$x][0]."|".$aRow[$x][1]."|".time()."|".substr(md5($aRow[$x][0]."|".$aRow[$x][1]),0,10)."\n";                                                                                                        
                }
            }
            else{
                
$sData .= @implode("|",$aRow[$x]);
            }
        }
        
// write file
        
$aDataR['jresult'] = (!WriteF($sDataFile,$sData,"w") ? false true);
        if(
$aDataR['jresult']){
            
$aDataR['jmessage'] = "Successfully updated task file";
            
$aDataR['jline'] = $sID;
            
$aDataR['jaction'] = ($_POST['sAction']=="remove" "remove" "complete");
            if(
$iRow==&& $aDataR['jaction']=="remove"){
                
$aDataR['jempty'] = 1;
            }
        }
        else{
            
$aDataR['jerror'] = "Failed to update task file";
        }
    }
    elseif(isset(
$_POST['sAction'])){
        
/* do an action to the task file */
        
if($_POST['sAction']=="clearall"){
            
// clean task file
            
$aDataR['jresult'] = (!WriteF($sDataFile,"","w") ? false true);
        }
        else{
            
/* can only clear all */
            
$aDataR['jerror'] = "Action doesn't exist";
        }
    }
}
else{
    
/* invalid action */
    
$aDataR['jerror'] = "Invalid action specified";
}
echo 
json_encode($aDataR);
?>
powered by
site stats
cms statistics:
version: 0.6.0
downloads: 4006
native: 26
modules: 21
apps: 2
support development
It takes lots of calories in order to create new things for the hacksuite, so it would be grand if you could buy me a protein shake or extra energy to keep me going. Thanks!
disclaimer
We are not responsible for any direct or indirect damage caused by abusing the tools provided on hacksuite.com. The suite is developed for educational purposes, use at your own risk!
Created by Remco Kouw. Powered by protein shakes and a high calorie diet.