Cabaltoolz FrontEnd Booster

Results 1 to 21 of 21
  1. #1
    Alpha Member john_d is offline
    MemberRank
    Feb 2004 Join Date
    PhilippinesLocation
    2,868Posts

    Cabaltoolz FrontEnd Booster

    This is for those really heavy traffic cabaltoolz sites.


    This will speed up your site up to 10x faster. ( boosting may vary from case to case )

    Minimal Installations.
    1. Create a new folder in your frontend. called "tmp" ( no qoutes )
    2. Replace your index.php with this.

    PHP Code:
    <?PHP
    include('config.php');
    $cachetime 60// cache time
    error_reporting(1);
    if (isset(
    $_GET['page'])) {
        
    $urli explode('-',$_GET['page']); settype($argv,'array'); 
    }

    $cachefile 'tmp/'.$_config['template'].'-'.$urli[0].'-'.$urli[1].'.html';
    if (
    file_exists($cachefile) && time() - $cachetime filemtime($cachefile)) {
        include(
    $cachefile);
        echo 
    "<!-- Cached copy, generated ".date('H:i'filemtime($cachefile))." -->\n";
        exit;
    }

    ob_start("ob_gzhandler");
    session_start();
    $time microtime();
    $time explode(' '$time);
    $time $time[1] + $time[0];
    $start $time;

    if (
    $_config['close_site'] == true header('Location: '.$_config['redirect']);
    foreach(
    $urli as $url => $i$tags .= ucwords($i). ', ';
    foreach(
    $urli as $url => $i$title .= ucwords($i). ' | ';
    $urli_desc =  array(
        
    'hero' => 'Viewing '.$urli[0].' '.$_config['server_name'].' Profile '.$urli[2].' with Unique ID: '.$urli[1],
        
    'guilds' => 'Viewing '.$urli[2].' Guild Page '.$_config['server_name'].' with Unique ID: '.$urli[1],

    );
    if (
    $urli_desc[$urli[0]]) $urli_desc $_config['server_name'] .' '$urli_desc[$urli[0]];
    else 
    $urli_desc 'Hottest New Server Website for '.$_config['server_name'].' . A Free to Play server';

    //template catch ( feel free to delete if u dont have templates. ^^ )
    if (@$urli[0] == 'template') { 
        if (
    file_exists('template/'.$urli[1].'/index.php')) {
            
    setcookie('template',$urli[1],time() + (86400 7)); 
            
    $_config['template'] = $_COOKIE['template'];
            
    header('LOCATION: index.html');
        }
    }
    if (@
    $_COOKIE['template']) { 
        if (
    file_exists('template/'.$_COOKIE['template'].'/index.php')) {
            
    $_config['template'] = $_COOKIE['template'];
        }
    }
    //end template catch
    $fullurl 'http://'.$_SERVER['HTTP_HOST'].substr($_SERVER['SCRIPT_NAME'], 0strrpos($_SERVER['SCRIPT_NAME'], "/")+1);
    include_once(
    'template/'.$_config['template'].'/index.php');

    $fp fopen($cachefile'w');
    fwrite($fpob_get_contents());
    fclose($fp);
    ob_end_flush();
    ?>


  2. #2
    Software Person TimeBomb is offline
    ModeratorRank
    May 2008 Join Date
    United StatesLocation
    1,252Posts

    Re: Cabaltoolz FrontEnd Booster

    Doesn't work. Returns white page for all of the site when you do this.

  3. #3
    Account Upgraded | Title Enabled! Just_Rytis is offline
    MemberRank
    Oct 2006 Join Date
    PUSH main.00754EDCLocation
    561Posts

    Re: Cabaltoolz FrontEnd Booster

    Hi, nice release, but you need to post here your frontend config.php. Thx!

  4. #4
    Valued Member GhostBaster is offline
    MemberRank
    Oct 2008 Join Date
    MalaysiaLocation
    141Posts

    Re: Cabaltoolz FrontEnd Booster

    Still happent ?????

    not work ....

  5. #5
    Alpha Member john_d is offline
    MemberRank
    Feb 2004 Join Date
    PhilippinesLocation
    2,868Posts

    Re: Cabaltoolz FrontEnd Booster

    Post ur Index.php...

    it seems my index.php is not compatible with urs.

    i'll just update urs

  6. #6
    Account Upgraded | Title Enabled! Just_Rytis is offline
    MemberRank
    Oct 2006 Join Date
    PUSH main.00754EDCLocation
    561Posts

    Re: Cabaltoolz FrontEnd Booster

    Here is my index.php file:

    Code:
    <?PHP
    session_start();
    // config
    
    include('config.php');
    error_reporting(0);
    
    if ($_config['close_site'] == true ) header('Location: '.$_config['redirect']);
    // end of config
    
    if (isset($_GET['page'])) {
    	$urli = explode('-',$_GET['page']); settype($argv,'array');
    }
    include('template/header.php');
    include('template/reklama.php');
    if ($urli) {
    	if (file_exists('modules/'.$urli[0].'.php'))  include 'modules/'.$urli[0].'.php';
    	else include 'modules/404.php';
    } else include 'modules/'.$_config['front_page'].'.php';
     include('template/footer.php');
    ?>

  7. #7
    Alpha Member john_d is offline
    MemberRank
    Feb 2004 Join Date
    PhilippinesLocation
    2,868Posts

    Re: Cabaltoolz FrontEnd Booster

    PHP Code:

    <?PHP
    include('config.php');
    $cachetime 60// cache time
    error_reporting(1);
    if (isset(
    $_GET['page'])) {
        
    $urli explode('-',$_GET['page']); settype($argv,'array'); 
    }

    $cachefile 'tmp/'.$_config['template'].'-'.$urli[0].'-'.$urli[1].'.html';
    if (
    file_exists($cachefile) && time() - $cachetime filemtime($cachefile)) {
        include(
    $cachefile);
        echo 
    "<!-- Cached copy, generated ".date('H:i'filemtime($cachefile))." -->\n";
        exit;
    }

    ob_start("ob_gzhandler");
    session_start();
    error_reporting(0);

    if (
    $_config['close_site'] == true header('Location: '.$_config['redirect']);
    // end of config

    include('template/header.php');
    include(
    'template/reklama.php'); // comment this line since most people don't have that
    if ($urli) {
        if (
    file_exists('modules/'.$urli[0].'.php'))  include 'modules/'.$urli[0].'.php';
        else include 
    'modules/404.php';
    } else include 
    'modules/'.$_config['front_page'].'.php';
     include(
    'template/footer.php');
     
     
    $fp fopen($cachefile'w');
    fwrite($fpob_get_contents());
    fclose($fp);
    ob_end_flush();
    ?>

  8. #8
    Account Upgraded | Title Enabled! Just_Rytis is offline
    MemberRank
    Oct 2006 Join Date
    PUSH main.00754EDCLocation
    561Posts

    Re: Cabaltoolz FrontEnd Booster

    Thx Jonh_d. That line is to add own ads under google's.

  9. #9
    The Cat in the Hat cypher is offline
    MemberRank
    Oct 2005 Join Date
    IrelandLocation
    5,073Posts

    Re: Cabaltoolz FrontEnd Booster

    great release john_d. Thank you for posting this!

  10. #10
    Alpha Member john_d is offline
    MemberRank
    Feb 2004 Join Date
    PhilippinesLocation
    2,868Posts

    Re: Cabaltoolz FrontEnd Booster

    Quote Originally Posted by Just_Rytis View Post
    Thx Jonh_d. That line is to add own ads under google's.
    Hows the Boost?

    anyway don't forget to create the tmp folder

  11. #11
    Account Upgraded | Title Enabled! Just_Rytis is offline
    MemberRank
    Oct 2006 Join Date
    PUSH main.00754EDCLocation
    561Posts

    Re: Cabaltoolz FrontEnd Booster

    I think it's good :-). I already created tmp folder ;-)

  12. #12
    Account Upgraded | Title Enabled! maxgo1 is offline
    MemberRank
    Aug 2008 Join Date
    EST , PaldiskiLocation
    311Posts

    Re: Cabaltoolz FrontEnd Booster

    Nice Release , i see just it starts caching all yes?

  13. #13
    Go go go! Cath22 is offline
    MemberRank
    Aug 2008 Join Date
    Cabal-ArenaLocation
    713Posts

    Re: Cabaltoolz FrontEnd Booster

    <?PHP
    session_start();
    // config
    include('config.php');
    error_reporting(0);
    if ($_config['close_site'] == true ) header('Location: '.$_config['redirect']);
    // end of config
    if (isset($_GET['page'])) {
    $urli = explode('-',$_GET['page']); settype($argv,'array');
    }
    include('template/header.php');
    if ($urli) {
    if (file_exists('modules/'.$urli[0].'.php')) include 'modules/'.$urli[0].'.php';
    else include 'modules/404.php';
    } else include 'modules/'.$_config['front_page'].'.php';
    include('template/footer.php');


    ?>
    here is my index.php ^_^

  14. #14
    Account Upgraded | Title Enabled! Just_Rytis is offline
    MemberRank
    Oct 2006 Join Date
    PUSH main.00754EDCLocation
    561Posts

    Re: Cabaltoolz FrontEnd Booster

    Here is good index.php ;-)

    Code:
    <?PHP 
    include('config.php'); 
    $cachetime = 5 * 60; // cache time 
    error_reporting(1); 
    if (isset($_GET['page'])) { 
        $urli = explode('-',$_GET['page']); settype($argv,'array');  
    } 
    
    $cachefile = 'tmp/'.$_config['template'].'-'.$urli[0].'-'.$urli[1].'.html'; 
    if (file_exists($cachefile) && time() - $cachetime < filemtime($cachefile)) { 
        include($cachefile); 
        echo "<!-- Cached copy, generated ".date('H:i', filemtime($cachefile))." -->\n"; 
        exit; 
    } 
    
    ob_start("ob_gzhandler"); 
    session_start(); 
    error_reporting(0); 
    
    if ($_config['close_site'] == true ) header('Location: '.$_config['redirect']); 
    // end of config 
    
    include('template/header.php');
    if ($urli) { 
        if (file_exists('modules/'.$urli[0].'.php'))  include 'modules/'.$urli[0].'.php'; 
        else include 'modules/404.php'; 
    } else include 'modules/'.$_config['front_page'].'.php'; 
     include('template/footer.php'); 
      
      
    $fp = fopen($cachefile, 'w'); 
    fwrite($fp, ob_get_contents()); 
    fclose($fp); 
    ob_end_flush(); 
    ?>
    Don't forgot to create tmp dir.

  15. #15
    Valued Member Moonfly is offline
    MemberRank
    Feb 2009 Join Date
    ESTONIALocation
    120Posts

    Re: Cabaltoolz FrontEnd Booster

    Got some strange problem with the boost, the index page of cabaltoolz loads successfully if i replace the index.php, but if i click any link or button on the site it will give me error

    Code:
    Content Encoding Error
    
    The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

  16. #16
    Alpha Member john_d is offline
    MemberRank
    Feb 2004 Join Date
    PhilippinesLocation
    2,868Posts

    Re: Cabaltoolz FrontEnd Booster

    Quote Originally Posted by Moonfly View Post
    Got some strange problem with the boost, the index page of cabaltoolz loads successfully if i replace the index.php, but if i click any link or button on the site it will give me error

    Code:
    Content Encoding Error
    
    The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
    Ah.. yes...

    ur PHP/Apache doesn't have Gzip compression enabled.

    change: ob_start("ob_gzhandler"); to ob_start();

  17. #17
    Valued Member Moonfly is offline
    MemberRank
    Feb 2009 Join Date
    ESTONIALocation
    120Posts

    Re: Cabaltoolz FrontEnd Booster

    Thx for help :)
    Works fine now
    Last edited by Moonfly; 22-08-09 at 08:37 PM. Reason: Got it working

  18. #18
    Infraction Banned Antieoxsisest is offline
    MemberRank
    Nov 2009 Join Date
    9Posts

    Re: Cabaltoolz FrontEnd Booster

    hey hey

    how to create a cabal register toolz? pls tell me plz i need it coz i creating cabal private server... pls tell me the exact answer plz plz plz...

  19. #19
    Account Upgraded | Title Enabled! Daman2009 is offline
    MemberRank
    Feb 2009 Join Date
    GreenDespairLocation
    343Posts

    Re: Cabaltoolz FrontEnd Booster

    hey hey

    how to create a cabal register toolz? pls tell me plz i need it coz i creating cabal private server... pls tell me the exact answer plz plz plz...
    READ THE TUTORIALS SECTION OR USE THE SEARCH FUNCTION. THATS WHAT IT IS FOR!

    DO WHAT WE ALL STARTED DOING. LOOKING FOR OURSELVES.

    Last edited by Daman2009; 13-11-09 at 11:29 AM.

  20. #20
    Enthusiast mikiey is offline
    MemberRank
    Feb 2008 Join Date
    30Posts

    Re: Cabaltoolz FrontEnd Booster

    hi sir john_d,

    really nice website you share to us, but some of the pages didn't show as well as they should be such as:

    1. ranking pages (ranking.php)...

    rank, name and battle are shown up properly but guild, exp wont came the result, how do i fix that? or if its possible, i prefer put alz rather than exp, how do i change that? i tried many times but still got error.

    Thanks sorry if my language bad, and hope get reply from you sir...

  21. #21
    Apprentice salangnarak is offline
    MemberRank
    Feb 2009 Join Date
    6Posts

    Re: Cabaltoolz FrontEnd Booster

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, salang_narak@hotmail.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.


    --------------------------------------------------------------------------------

    Apache/2.2.8 (Win32) PHP/6.0.0-dev Server at overcabal.co.cc Port 80


    not work



Advertisement