Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 1.1.5.0
- * @ Author : DeZender
- * @ Release on : 09.06.2012
- * @ Official site : http://DeZender.Net
- *
- */
- session_start( );
- require_once( 'include/lib.inc.php' );
- require_once( 'include/lib_router.inc.php' );
- sql_login( );
- test_access( $PHPSESSID );
- require_once( 'include/lib_diskusage.php' );
- unset( $_SESSION[securityAlerts] );
- unset( $_SESSION[updateAlerts] );
- $_SESSION['updateAlerts'] = $_SESSION['securityAlerts'] = array( );
- if (isset( $_GET['saveBeta'] )) {
- set_config( 'show_beta_version', $_GET['saveBeta'] );
- }
- if (isset( $_GET['clearVoipexError'] )) {
- set_config( 'voipex_error', 0 );
- }
- if (get_config( 'show_beta_version' )) {
- $betaChecked = 'checked';
- }
- $handle = @fopen( 'http://update.ispadmin.cz/online_info.txt', 'r' );
- if ($handle) {
- $online_info = fread( $handle, 8192 );
- fclose( $handle );
- } else {
- $online_info = '';
- }
- if ($online_info != '') {
- $arr_online_info = explode( chr( 10 ), $online_info );
- foreach ($arr_online_info as $index => $item) {
- $arr_online_info[$index] = explode( '|', $item );
- }
- foreach ($arr_online_info as $index => $item) {
- if (strpos( $arr_online_info[$index][0], '_' ) !== false) {
- $val = substr( $arr_online_info[$index][0], 1 );
- if ($val == 1) {
- $query = 'DELETE FROM mikrotik_version';
- @sql_go( $query );
- foreach ($arr_online_info as $sInd => $sItem) {
- if ($sItem[0] == 1) {
- $version = explode( '.', $sItem[1] );
- if (!isset( $sItem[5] )) {
- $sItem[5] = '';
- }
- $ispVers = explode( ',', $sItem[5] );
- if (( $sItem[5] == '' || in_array( VERSION, $ispVers ) )) {
- $query = '' . 'INSERT INTO mikrotik_version (main_version,version,status,cz_info,en_info)
- VALUES(\'' . $version['0'] . '\',\'' . $version['1'] . '\',\'' . $sItem['2'] . '\',\'' . $sItem['3'] . '\',\'' . $sItem['4'] . '\')';
- @sql_go( $query );
- continue;
- }
- continue;
- }
- }
- }
- $query = '' . 'SELECT * FROM online_info WHERE section = ' . $val;
- $result = @sql_go( $query );
- if (mysql_num_rows( $result )) {
- $row = mysql_fetch_assoc( $result );
- if ($row['valid_to'] == $arr_online_info[$index][1]) {
- continue;
- }
- $query = 'UPDATE online_info SET valid_to=\'' . $arr_online_info[$index][1] . ( '' . '\', alert=\'1\', shown_admin_id=\'\' WHERE section = ' . $val );
- @sql_go( $query );
- continue;
- }
- $query = '' . 'INSERT INTO online_info (section,valid_to,alert,shown_admin_id) VALUES(\'' . $val . '\',\'' . $arr_online_info[$index][1] . '\',1,\'\')';
- @sql_go( $query );
- continue;
- }
- }
- }
- $rok = date( 'Y', time( ) );
- $mesic = date( 'm', time( ) );
- $xaccounttable = 'ipaccount_' . $rok . '_' . $mesic;
- sql_go( '' . 'CREATE TABLE IF NOT EXISTS ' . $xaccounttable . ' (
- `id` int(11) NOT NULL default \'0\',
- `den` smallint(6) NOT NULL default \'0\',
- `mesic` smallint(6) NOT NULL default \'0\',
- `rok` smallint(6) NOT NULL default \'0\',
- `in_bytes` bigint(20) NOT NULL default \'0\',
- `out_bytes` bigint(20) NOT NULL default \'0\',
- `ins_time` int(11) NOT NULL default \'0\',
- `rtrid` int(11) NOT NULL default \'0\',
- KEY `id` (`id`),
- KEY `in_bytes` (`in_bytes`),
- KEY `out_bytes` (`out_bytes`),
- KEY `mesic` (`mesic`),
- KEY `den` (`den`),
- KEY `rok` (`rok`),
- KEY `rtrid` (`rtrid`)
- ) ENGINE=MyISAM;
- ' );
- if (!file_exists( 'tmp' )) {
- mkdir( 'tmp' );
- }
- unset( $_SESSION[ISPADMIN_LATEST_VERSION] );
- unset( $_SESSION[ISPADMIN_LATEST_BETA_VERSION] );
- $handle = @fopen( 'http://update.ispadmin.eu/latest.txt', 'r' );
- if ($handle) {
- $last_version = fread( $handle, 8192 );
- fclose( $handle );
- $last_version = preg_replace( '/
- /', '', $last_version );
- $_SESSION['ISPADMIN_LATEST_VERSION'] = $last_version;
- } else {
- $last_version = 12;
- }
- .....................................................................
- .........................................
- .................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement