HabboxWiki needs you!
Are you a Habbo buff? Or maybe a rare trader with a bunch of LTDs? Get involved with HabboxWiki to share your knowledge!
Join our team!
Whether you're raving for rares, excited for events or happy helping, there's something for you! Click here to apply
Need a helping hand?
Check out our guides for all things to help you make friends, make rooms, and make money!


Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Join Date
    Jul 2008
    Location
    Ellesmere Port
    Posts
    440
    Tokens
    0

    Default [REL] Giving away my php script updater xD

    Yeh, its all got comments so you can easily work out what to do with it.
    I re-wrote it all as my old coding was VERY messy compared to what it is now.
    Hope you enjoy it, dom

    PHP Code:
    <?php
    /* 
    ** ** || ** NO MIRRORS PLEASE ** || ** ** || ** ** || ** ** || ** ** || **
    ** Doms script updater V1
    ** Free release
    ** Please respect my time and leave the copyright as it is. Thanks
    ** Need support? eMail: [email protected]
    ** Need to report a bug? eMail? [email protected]
    */

    //Delete the files below.
    function delete($file) {
    unlink($file);
    }
    // IF YOU DO NOT WANT TO DELETE ANY FILES, DO NOT UNCOMMENT THE BELOW. OTHERWISE, YOU MAY. Though, it is always better to start fresh.
    //delete("error_log"); // Copy and paste more delete(""); functions for more files you want to delete

    //Rebuilding the latest file
    $create['filename'] = "testfile.php";                  // Where testfile.php is the file you are creating, and "filename" is the filevar
    $handler['filename'] = fopen($create['filename'], w);  // Where $handler['filename'] is the file var, and $create['filename'] is the page from the last step
    // Copy and paste them above changing the vars if you need more.

    //Copy data from the latest files into the updating files

    $updatefile['filename'] = "testfile.php";
    $updater['filename'] = fopen($updaterfile['filename'], 'w') or die(" Could not open ".$updatefile['filename']."!");
    ///
    // Get remote files //
    //!! THE LATEST VERSION OF THE FILE MUST BE A .txt FILE!! !!\\
    $testfiles = @file_get_contents("http://www.yoursite.com/path/to/latest/file.TXT");
    fwrite($updater['filename'], $testfiles);
    fclose($updater['filename']);

    // Now, you should of guessed what to do with that like you did with the other steps (copy + paste + changevars)
    ?>
    <center><b><a href='http://forum.truecrimegaming.com'>TCG PHP Script Updater.</a> || <a href='http://forum.truecrimegaming.com/showthread.php?p=93#post93'>Get it here!</a> </b></center>

  2. #2
    Join Date
    Jul 2008
    Location
    Hastings, UK.
    Posts
    2,050
    Tokens
    0

    Latest Awards:

    Default

    That's just terrible, and can be stopped by file permissions. Also, you've set a function for that which looks stupid.

    Better luck making a un-useful script next time.

  3. #3
    Join Date
    Jul 2008
    Location
    Ellesmere Port
    Posts
    440
    Tokens
    0

    Default

    Quote Originally Posted by Calon View Post
    That's just terrible, and can be stopped by file permissions. Also, you've set a function for that which looks stupid.
    Better luck making a un-useful script next time.

    Look its free. It works. end of.

  4. #4
    Join Date
    Nov 2005
    Posts
    4,486
    Tokens
    921

    Latest Awards:

    Default

    It could be useful to learn off?
    "RETIRED" FROM HABBO(X)

    :¬:

    TOMSPIT / COWLY05


  5. #5
    Join Date
    Nov 2006
    Posts
    2,572
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Calon View Post
    That's just terrible, and can be stopped by file permissions. Also, you've set a function for that which looks stupid.

    Better luck making a un-useful script next time.
    CAN YOU EVER STOP ******* TALKING?
    coz your so perfect no one else is and you have to have a answer for everything

  6. #6
    Join Date
    Jul 2008
    Location
    Hastings, UK.
    Posts
    2,050
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Rickyhatton View Post
    CAN YOU EVER STOP ******* TALKING?
    coz your so perfect no one else is and you have to have a answer for everything
    I'm not talking, I'm typing.

    Smart alec.

  7. #7
    Join Date
    Jul 2008
    Location
    Ellesmere Port
    Posts
    440
    Tokens
    0

    Default

    BackOn Topic Please lads

  8. #8
    Join Date
    Apr 2008
    Location
    WGC (Stevenage area)
    Posts
    1,922
    Tokens
    0

    Latest Awards:

    Default

    *Removed*

    Edited by ,Jess, (Forum Super Moderator): Please do not be rude towards other forum members.
    Last edited by ,Jess,; 02-08-2008 at 07:46 PM.

  9. #9
    Join Date
    Jul 2008
    Location
    Ellesmere Port
    Posts
    440
    Tokens
    0

    Default

    Quote Originally Posted by Jak-ish View Post
    *removed*
    Calon, do what he said That way you wont get punched by your best mate.
    Last edited by brandon; 03-08-2008 at 04:36 PM.

  10. #10
    Join Date
    Apr 2008
    Location
    England.
    Posts
    1,324
    Tokens
    0

    Latest Awards:

    Default

    Looks okay. Useful for new people. +rep.

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •