QA 3.0.19

Jan 18 2007, 12:26 AM

PHP-Quick-Arcade 3.0.19 is here.

This release addresses the problem with the new IbProArcade for IPB 2.2.x game usage. Newer games were unable to be used on previous additions, this version covers that.

Also all of this has been updated in the main zip:

- removed the debugger.

- tar function enhanced by Sean, less tar file errors.

- updated the installer, no more BETA 1 and added the new folders.

If you are arcade downloaded copy user:

Download the new zip off the main site.

Overwrite these files:

Arcade.php

acp.php

With the new ones from the zip. Then create a folder called gamedata in /arcade/ and CHMOD it 777 or 755.

Are you running a modified arcade? All specific edits to do the update have been posted here, please see this for each and every edit you must make to update:

http://support.b1.jcink.com/index.php?show...indpost&p=25610

If you are arcade service user:

You do not need to do anything, it is all updated for you by me. You will however notice that you are able to add the newer games by ibproarcade. They're now playable and addable whereas they were not before, the games failed to submit.

Additionally, I have done away with the arcades1.jcink.cjb.net url - it is not arcadename.a1.jcink.com in all areas. The old cjb urls will continue to work, but a1.jcink.com is now the standard URL for the arcades.

-jcink

Comments

  1. Jcink Says:

    UPGRADE MANUALLY FROM 3.0.18 TO 3.0.19 - DOWNLOAD USERS CHECK HERE

    CODE Open Arcade.php

    ########### Find:

    <?php

    ########### Add below

    if($_GET['do']=="verifyscore") {

    print "&randchar=1&randchar2=2&savescore=1&blah=OK";

     die();

    }

    if($_GET['play']) {

    setcookie(gname, $_GET['play']);

    }

    ########### Next Find:

    } else if ($id || $_GET['do'] == "newscore") {

    ########### Replace with

    } else if ($id || $_GET['do'] == "newscore" || $_GET['autocom']) {

    ########### Next Find:

    // highscores. UpGraded. ^.<;;

    // Architect : Don't do that gay wink <_>

    ########### Add Above:

    if ($_GET['autocom']) {

    $id=htmlspecialchars($_COOKIE['gname'], ENT_QUOTES);

    $thescore = $_POST['gscore'];

    }

    ===========================

    Close and save Arcade.php

    ===========================

    Open acp.php

    ########## Find:

    function untar($file,$to){  

    if (substr($to,-1)!="/") $to.="/";  

    $o=@fopen($file,"rb"); if (!$o) return false;  

    while(!feof($o)){  

    $d=unpack("a100fn/a24/a12size",fread($o,512));  

    if (!$d[fn]) break;  

    $d[size]=octdec(trim($d[size]));

    $o2=@fopen($to.$d[fn],"w");if(!$o2) return false;

    fwrite($o2,fread($o,$d[size]));

    fclose($o2);

    $t=512-($d[size]%512);

    if ($t) fread($o,$t);

    }

    fclose($o);

    return true;

    }

    ######### Replace with:

    // untar function 2.0 by Sean

    function untar($file,$to){  

    if (substr($to,-1)!="/") $to.="/";  

    $o=fopen($file,"rb"); if (!$o) return false;  

    while(!feof($o)){  

    $d=unpack("a100fn/a24/a12size",fread($o,512));  

    //print_r($d);  

    if (!$d[fn]) break;  

    $dir="";  

    $e=explode("/",$d[fn]);  

    array_pop($e);  

    foreach($e as $v) {$dir.=$v."/";@mkdir($to.$dir);}  

    $d[size]=octdec(trim($d[size]));  

    $o2=fopen($to.$d[fn],"w");  

    if(!$o2) return false;  

    if ($d[size]) fwrite($o2,fread($o,$d[size]));  

    fclose($o2);  

    $t=512-($d[size]%512);  

    if ($t&&$t!=512) fread($o,$t);  

    }  

    fclose($o);  

    return true;  

    }

    ######## Then find:

    message("The tar file is corrupted or invalid, and the game cannot be added, sorry.");

    }

    ######## Add below:

    if(file_exists("./tars/gamedata/$tarfile_name/$tarfile_name.txt")) {

    @mkdir("./arcade/gamedata/$tarfile_name", 0777);

    @rename("./tars/gamedata/{$tarfile_name}/$tarfile_name.txt","./arcade/gamedata/{$tarfile_name}/$tarfile_name.txt");

    @unlink("./tars/gamedata/$tarfile_name/v3game.txt");

    @rmdir("./tars/gamedata/$tarfile_name");

    @rmdir("./tars/gamedata/");

    }

    You should now be able to import tar files of the newer editions of ibproarcade.

    Verify this with this game:

  2. PY Says:

    What do we do with all the codes?

    Sorry I'm dumb

  3. Jcink Says:

    Nothin'.

    In your case, you run the arcade service. So you leave it all alone, it's been all done for you.

    People who have modified their copy of the downloadable version will understand what to do with those. I've been simple in the directions because those who understand how to hack & modify PHPQA will know what to do with those edits right away.

  4. iBaLLiN Says:

    Yayy you are done with the arcade!!

  5. Dylan Says:

    Updated. ^.^

  6. cheating98 Says:

    is it already there in the download section number 35.

    called PHP quick arcade 3.0.*

    right?

  7. Jcink Says:

    Yes,

    35.zip has been fully updated. D/L at the same link.

  8. cheating98 Says:

    been like that or you just did it?

  9. Jcink Says:

    been like that since I posted this thread.

  10. iBaLLiN Says:

    This arcade OWNS too bad you don't have enough time to integrate it on JFB.

  11. Hamlin Says:

    thats why theres a arcade service edition

  12. iBaLLiN Says:

    yeah and thats why its intergrated in the admin cp.

  13. Masky Says:

    QUOTE (Jcink @ January 18, 2007 12:27 am) UPGRADE MANUALLY FROM 3.0.18 TO 3.0.19 - DOWNLOAD USERS CHECK HERE

    CODE Open Arcade.php

    ########### Find:

    <?php

    ########### Add below

    if($_GET['do']=="verifyscore") {

    print "&randchar=1&randchar2=2&savescore=1&blah=OK";

     die();

    }

    if($_GET['play']) {

    setcookie(gname, $_GET['play']);

    }

    ########### Next Find:

    } else if ($id || $_GET['do'] == "newscore") {

    ########### Replace with

    } else if ($id || $_GET['do'] == "newscore" || $_GET['autocom']) {

    ########### Next Find:

    // highscores. UpGraded. ^.<;;

    // Architect : Don't do that gay wink <_>

    ########### Add Above:

    if ($_GET['autocom']) {

    $id=htmlspecialchars($_COOKIE['gname'], ENT_QUOTES);

    $thescore = $_POST['gscore'];

    }

    ===========================

    Close and save Arcade.php

    ===========================

    Open acp.php

    ########## Find:

    function untar($file,$to){  

    if (substr($to,-1)!="/") $to.="/";  

    $o=@fopen($file,"rb"); if (!$o) return false;  

    while(!feof($o)){  

    $d=unpack("a100fn/a24/a12size",fread($o,512));  

    if (!$d[fn]) break;  

    $d[size]=octdec(trim($d[size]));

    $o2=@fopen($to.$d[fn],"w");if(!$o2) return false;

    fwrite($o2,fread($o,$d[size]));

    fclose($o2);

    $t=512-($d[size]%512);

    if ($t) fread($o,$t);

    }

    fclose($o);

    return true;

    }

    ######### Replace with:

    // untar function 2.0 by Sean

    function untar($file,$to){  

    if (substr($to,-1)!="/") $to.="/";  

    $o=fopen($file,"rb"); if (!$o) return false;  

    while(!feof($o)){  

    $d=unpack("a100fn/a24/a12size",fread($o,512));  

    //print_r($d);  

    if (!$d[fn]) break;  

    $dir="";  

    $e=explode("/",$d[fn]);  

    array_pop($e);  

    foreach($e as $v) {$dir.=$v."/";@mkdir($to.$dir);}  

    $d[size]=octdec(trim($d[size]));  

    $o2=fopen($to.$d[fn],"w");  

    if(!$o2) return false;  

    if ($d[size]) fwrite($o2,fread($o,$d[size]));  

    fclose($o2);  

    $t=512-($d[size]%512);  

    if ($t&&$t!=512) fread($o,$t);  

    }  

    fclose($o);  

    return true;  

    }

    ######## Then find:

    message("The tar file is corrupted or invalid, and the game cannot be added, sorry.");

    }

    ######## Add below:

    if(file_exists("./tars/gamedata/$tarfile_name/$tarfile_name.txt")) {

    @mkdir("./arcade/gamedata/$tarfile_name", 0777);

    @rename("./tars/gamedata/{$tarfile_name}/$tarfile_name.txt","./arcade/gamedata/{$tarfile_name}/$tarfile_name.txt");

    @unlink("./tars/gamedata/$tarfile_name/v3game.txt");

    @rmdir("./tars/gamedata/$tarfile_name");

    @rmdir("./tars/gamedata/");

    }

    You should now be able to import tar files of the newer editions of ibproarcade.

    Verify this with this game:

    On the first one, where it says "<?php", which one is it exactly? Theres like a million of them throughout the coding, and I don't know which one it is.

  14. Architect Says:

    Presumably the first <?PHP on the page.