random gallery image
random tutorial
preview

..modules you must have seen the iframes used for realtime result display. In this tutorial I'm going to show you how to insert them into your module and how they function. what we..

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
/* Writes a string

Writes a string to a file, if the destination doesn't exist it will attempt to create it.

PARAMETERS:
$sDest: filepath to write to
$sWrite: data to write
$sMode: write mode {a or w}

RETURNS:
FALSE: failed to write file data
TRUE: success

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

function WriteF($sDest,$sWrite,$sMode="a"){

    global 
$_CONTEXT;

    if(
$sMode!="a" && $sMode!="w"){
        
$sMode "a";
    }
    if(!
$rNew = @fopen($sDest,$sMode)){
        
// define the error
        
$_CONTEXT['errors'][] = "Failed to open file <b>".$sDest."</b> in <b>".$sMode."</b> mode";
        
$_CONTEXT['fatal'] = true;
        return(
false);
    }
    @
fputs($rNew,$sWrite);
    @
fclose($rNew);
    return(
true);
}
?>
powered by
site stats
cms statistics:
version: 0.6.0
downloads: 4380
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.