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 stress testing
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
/* Convert each line of a file to an array

Opens a file and explode each line of the file by an optional 
separation character, if the function is called with only the
filepath parameter, the "|" character will be used.

PARAMETERS:
$sFile: filepath to datafile 
$sSeparate: the character words are separated by on each line(OPTIONAL)

RETURNS:
ARRAY: file data in multi-dimensional array (eg [0][1]: second element on first line)
FALSE: an error has occured

Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 12-11-2014
*/

function RawToArray($sFile,$sSeparate="|"){

    global 
$_CONTEXT;

    if(!
$aFileData = @file($sFile)){
        
$_CONTEXT['errors'][] = "Failed to open location <b>".$sFile."</b>";
        return(
false);
    }
    
$aDataBuffer = array();
    for(
$x=0;$x<count($aFileData);$x++){
        if(!
$aDataBuffer[$x] = @explode($sSeparate,$aFileData[$x])){
            if(
$aFileData[$x]==""){
                continue;
            }
        }
    }
    return(
$aDataBuffer);
}
?>
powered by
site stats
cms statistics:
version: 0.6.0
downloads: 3840
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.