Shell for CLI resource [Deleted]

Rigel Kentaurus

Well-known member
Rigel Kentaurus submitted a new resource:

Shell for CLI resource (version 1.0.0) - Shell for CLI resource

Do you want to just run a PHP file, but you need access to all the XenForo classes? Then you need to at least do the auto loading of PHP files, and a bit of other initialization

Code:
<?php

// might want to disable limits, won't work in safe mode
@set_time_limit(0);

// Just check that we are in the root directory
if (!is_file('./library/config.php'))
{
    print 'We do not appear to be running from the correct directory, needs to be XF root and is: ' . getcwd() . "\r\n";;
    exit;
}...

Read more about this resource...
 
Back
Top Bottom