Advertisement
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
- *
- */
- require_once '/opt/unetlab/html/includes/init.php';
- if (php_sapi_name( ) != 'cli') {
- error_log( date( 'M d H:i:s ' ) . date( 'M d H:i:s ' ) . 'ERROR: ' . $GLOBALS['messages'][1] );
- exit( 1 );
- }
- if (posix_getuid( ) != 0) {
- error_log( date( 'M d H:i:s ' ) . date( 'M d H:i:s ' ) . 'ERROR: ' . $GLOBALS['messages'][2] );
- exit( 2 );
- }
- umask( 2 );
- $options = getopt( 'oT:D:F:I:L:a:U:' );
- if (!(isset( $options['a'] ))) {
- usage( );
- error_log( date( 'M d H:i:s ' ) . date( 'M d H:i:s ' ) . 'ERROR: ' . $GLOBALS['messages'][3] );
- exit( 3 );
- }
- $action = $options['a'];
- if (in_array( $action, array(
- 'delete',
- 'export',
- 'start',
- 'stop',
- 'wipe',
- 'hotlink',
- 'delnetwork',
- 'hotaddlink',
- 'hotdellink',
- 'html5Desktop',
- 'destroyHtml5Desktop',
- 'capture'
- ) )) {
- if (!(isset( $options['T'] ))) {
- usage( );
- error_log( date( 'M d H:i:s ' ) . date( 'M d H:i:s ' ) . 'ERROR: ' . $GLOBALS['messages'][4] );
- exit( 4 );
- }
- else if ((int) $options['T'] < 0) {
- usage( );
- error_log( date( 'M d H:i:s ' ) . date( 'M d H:i:s ' ) . 'ERROR: ' . $GLOBALS['messages'][5] );
- exit( 5 );
- }
- else {
- $tenant = (int) $options['T'];
- }
- }
- if ($action == 'uploadlic') {
- if (!(isset( $options['L'] ))) {
- usage( );
- error_log( date( 'M d H:i:s ' ) . date( 'M d H:i:s ' ) . 'ERROR: ' . $GLOBALS['messages'][79] );
- exit( 79 );
- }
- else {
- $newlic = $options['L'];
- }
- }
- if (in_array( $action, array(
- 'html5Desktop',
- 'destroyHtml5Desktop'
- ) )) {
- if (!(isset( $options['U'] ))) {
- usage( );
- exit( 4 );
- }
- else {
- $user = $options['U'];
- }
- }
- if (in_array( $action, array(
- 'delete',
- 'export',
- 'start',
- 'stop',
- 'wipe',
- 'hotlink',
- 'delnetwork',
- 'hotaddlink',
- 'hotdellink',
- 'capture'
- ) )) {
- if (!(is_file( $options['F'] ))) {
- usage( );
- error_log( date( 'M d H:i:s ' ) . date( 'M d H:i:s ' ) . 'ERROR: ' . $options['F'] . ' - ' . $GLOBALS['messages'][6] );
- exit( 6 );
- }
- try {
- $lab = new Lab( $options['F'], $tenant );
- }
- catch (Exception $e) {
- error_log( date( 'M d H:i:s ' ) . date( 'M d H:i:s ' ) . 'ERROR: ' . $GLOBALS['messages'][$e->getMessage( )] );
- error_log( date( 'M d H:i:s ' ) . date( 'M d H:i:s ' ) . 'ERROR: ' . $GLOBALS['messages'][7] );
- exit( 7 );
- }
- }
- if (isset( $options['D'] )) {
- ..........................................................................................................
- .......................................................
- ........................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement