Posts by JordinB

    Hi,


    I'm creating a new app for Perch, and have a PerchAdminListing that lists records of a PerchAPI_Factory object. The PerchAPI_Factory object takes a PerchAPI_Paging object when calling the all function:


    Code
    1. $Paging->set_per_page(50);
    2. $Queue = new Queue($API)
    3. $Jobs = $Queue->all($Paging);
    4. $Listing = new PerchAdminListing($CurrentUser, $HTML, $Lang, $Paging);
    5. /*
    6. * Column defs: a bunch of $Listing->add_cols([]);
    7. */
    8. echo $Listing->render($Jobs);


    I'd like to sort the paging DESC, but looks like that may be reserved for PerchRunway [REF: PerchPaging.class.php:65] .. can you confirm ? Or is there another way to achieve this ?


    Thanks.

    You may also want to just make sure that none of your pages allow for self executing code via a GET param. Something that could be executing an shell_exec() or exec() function that would write its own file to the directory. I've seen this on an old site I inherited a while ago. Often it will create a page that will execute the mail function to be used as a larger network of spam sending bots.