DCP - A Download control panel/tracker and Auto-updating class

Discussion in 'Resources' started by Kalman Olah, Jul 7, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Kalman Olah

    Try replacing the old OKUpdater.java with this one:
    http://pastebin.com/Z3q6WppL
    Note: I haven't tested this, but it should save the updated version as daisy.jar or whatever the file you uploaded is.
     
  2. Offline

    drampelt

    Thanks, edited it further to completely replace the plugin.jar
     
  3. Offline

    Kalman Olah

    Great. You should keep in mind that not all server owners want to update their plugins, though. If you plan to release "Daisy", you shouldn't force them to update.
     
  4. Offline

    wwsean08

    I've got an interesting error, its displaying oddly on the new console:
    [​IMG]
     
  5. Offline

    Kalman Olah

    It's supposed to be that way. The ones with names but no versions are the main downloads: viewing these logs/deleting this will get logs for all versions or delete the whole download. All versions.
    The ones with version numbers but no names are versions of a download. Deleting this/viewing its log will only show a log for that version, or delete that specific version.

    EDIT: Check out this picture:
    http://kalmanolah.net/files/DCPscreens/capped.jpg

    Thanks a lot for this. It's being used by DCP as of v2.0.0. :)
    PHP:
    <?php
    /*
     * @author Kalman Olah
     * By: cronikkk @ Bukkit forums
     */
    require_once("internalauth.inc.php");
    function 
    safe($s) {
        
    $s preg_replace(sql_regcase("/(from|select|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"),"",$s);
        
    $s trim($s);
        
    $s strip_tags($s);
        
    $s addslashes($s);
        return 
    $s;
    }
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  6. Offline

    wwsean08

    ah ok, i thought it was a bug
     
  7. Offline

    cronikkk

    Haha thanks :p
     
  8. Offline

    Luloak2

    The download-link is broken :( I need this :( Could anybody give me a working link/version??
     
  9. Offline

    Kohle

  10. Offline

    Luloak2

    Let us wait, he was last online in January, so he had not even seen my post above yours. ;)
     
Thread Status:
Not open for further replies.

Share This Page