Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.0.8.0
- * @ Author : DeZender
- * @ Release on : 25.09.2017
- * @ Official site : http://DeZender.Net
- *
- */
- define( 'CLI_MODE', true );
- define( 'SYSTEM_PATH', dirname( __FILE__ ) . '/' );
- require SYSTEM_PATH . 'include.php';
- require SYSTEM_PATH . 'class_CCSQL.php';
- set_time_limit( CONSOLE_TIME_LIMIT );
- $args = $_SERVER['argv'];
- array_shift( $args );
- $no_username_commands = array(
- 'sanitycheck',
- 'rpchostapps',
- 'autoreindex',
- 'resetadminpassword',
- 'rpchostadd',
- 'version',
- 'cronjob',
- 'installation',
- 'batch',
- 'listaccounts',
- 'processlogs',
- 'backup',
- 'restore'
- );
- if (1 <= count( $args )) {
- $command = strtolower( array_shift( $args ) );
- if (!(count( $args )) || (substr( $args[0], 0, 2 ) == '--')) {
- if (in_array( $command, $no_username_commands )) {
- $username = 'all';
- }
- else {
- $command = false;
- $username = false;
- $options = false;
- }
- }
- else {
- $username = array_shift( $args );
- }
- $options = array( );
- }
- else {
- $command = false;
- $username = false;
- $options = false;
- }
- if (($command != 'version') && ($command != 'installation')) {
- if (!(defined( 'DB_NAME' ) && strlen( DB_NAME ))) {
- exit( 'ERR Database not yet installed' . "\n" );
- }
- try {
- $sql = new CCSQL( true );
- }
- catch (Exception $e) {
- exit( 'INF Database connection error: ' . $e->getMessage( ) . "\n" . 'ERR Could not connect to database server' . "\n" . '.' . "\n" );
- }
- $sql->plaintext_errors = true;
- }
- require SYSTEM_PATH . 'include_console.php';
- require SYSTEM_PATH . 'class_CLIApplication.php';
- require SYSTEM_PATH . 'class_ServerControl.php';
- require SYSTEM_PATH . 'class_SystemControl.php';
- COutput::register_handler( 'CLI' );
- try {
- if ($command === false) {
- show_help( );
- }
- if ($command == 'reissuelicense') {
- $command = 'cronjob';
- ..............................................................
- ...............................
- .......
Advertisement
Add Comment
Please, Sign In to add comment