SHARE
TWEET

Untitled

a guest Dec 22nd, 2012 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*********************/
  3. /*                   */
  4. /*  Dezend for PHP5  */
  5. /*         NWS       */
  6. /*      Nulled.WS    */
  7. /*                   */
  8. /*********************/
  9.  
  10. echo "";
  11. include( "conf.php" );
  12. $counter_host = $host;
  13. $counter_user = $user;
  14. $counter_password = $password;
  15. $counter_database = $dbname;
  16. $counter_expire = 600;
  17. $counter_connected = true;
  18. $link = @_obfuscate_d2FvGCEwFSEpEm87Cgÿÿ( $counter_host, $counter_user, $counter_password );
  19. if ( $link )
  20. {
  21.     $counter_connected = false;
  22.     echo "Counter: "._obfuscate_LGZ3P20BE2Z1ZGsÿ( );
  23. }
  24. else
  25. {
  26.     $db_selected = @_obfuscate_dV8nHXo4cm0pXD41cWds( $counter_database, $link );
  27.     if ( $db_selected )
  28.     {
  29.         $counter_connected = false;
  30.         echo "Counter: "._obfuscate_LGZ3P20BE2Z1ZGsÿ( );
  31.     }
  32. }
  33. if ( $counter_connected == true )
  34. {
  35.     $ignore = false;
  36.     $sql = "select * from counter_values";
  37.     $res = _obfuscate_CXIZARoUBQt7HD8ÿ( $sql );
  38.     if ( _obfuscate_KCVjO3d2Xxk4YnRnIXEÿ( $res ) == 0 )
  39.     {
  40.         $sql = "INSERT INTO `counter_values` (`id`, `day_id`, `day_value`, `yesterday_id`, `yesterday_value`, `week_id`, `week_value`, `month_id`, `month_value`, `year_id`, `year_value`, `all_value`, `record_date`, `record_value`) VALUES ('1', '".date( "z" )."',  '1', '".( date( "z" ) - 1 )."', '0', '".date( "W" )."', '1', '".date( "n" )."', '1', '".date( "Y" )."',  '1',  '1',  NOW(),  '1')";
  41.         _obfuscate_CXIZARoUBQt7HD8ÿ( $sql );
  42.         $sql = "select * from counter_values";
  43.         $res = _obfuscate_CXIZARoUBQt7HD8ÿ( $sql );
  44.         $ignore = true;
  45.     }
  46.     $row = _obfuscate_d2Z8CDYQc2J4dS9fARs0enkÿ( $res );
  47.     $day_id = $row['day_id'];
  48.     $day_value = $row['day_value'];
  49.     $yesterday_id = $row['yesterday_id'];
  50.     $yesterday_value = $row['yesterday_value'];
  51.     $week_id = $row['week_id'];
  52.     $week_value = $row['week_value'];
  53.     $month_id = $row['month_id'];
  54.     $month_value = $row['month_value'];
  55.     $year_id = $row['year_id'];
  56.     $year_value = $row['year_value'];
  57.     $all_value = $row['all_value'];
  58.     $record_date = $row['record_date'];
  59.     $record_value = $row['record_value'];
  60.     $counter_agent = isset( $_SERVER['HTTP_USER_AGENT'] ) ? addslashes( trim( $_SERVER['HTTP_USER_AGENT'] ) ) : "";
  61.     $counter_time = time( );
  62.     $counter_ip = trim( addslashes( $_SERVER['REMOTE_ADDR'] ) );
  63.     if ( 0 < substr_count( $counter_agent, "bot" ) )
  64.     {
  65.         $ignore = true;
  66.     }
  67.     if ( $ignore == false )
  68.     {
  69.         $sql = "delete from counter_ips where unix_timestamp(NOW())-unix_timestamp(visit) > ".$counter_expire;
  70.         _obfuscate_CXIZARoUBQt7HD8ÿ( $sql );
  71.     }
  72.     if ( $ignore == false )
  73.     {
  74.         $sql = "select * from counter_ips where ip = '".$counter_ip."'";
  75.         $res = _obfuscate_CXIZARoUBQt7HD8ÿ( $sql );
  76.         if ( _obfuscate_KCVjO3d2Xxk4YnRnIXEÿ( $res ) == 0 )
  77.         {
  78.             $sql = "INSERT INTO counter_ips (ip, visit) VALUES ('".$counter_ip."', NOW())";
  79.             _obfuscate_CXIZARoUBQt7HD8ÿ( $sql );
  80.         }
  81.         else
  82.         {
  83.             $ignore = true;
  84.             $sql = "update counter_ips set visit = NOW() where ip = '".$counter_ip."'";
  85.             _obfuscate_CXIZARoUBQt7HD8ÿ( $sql );
  86.         }
  87.     }
  88.     $sql = "select * from counter_ips";
  89.     $res = _obfuscate_CXIZARoUBQt7HD8ÿ( $sql );
  90.     $online = _obfuscate_KCVjO3d2Xxk4YnRnIXEÿ( $res );
  91.     if ( $ignore == false )
  92.     {
  93.         if ( $day_id == date( "z" ) - 1 )
  94.         {
  95.             $yesterday_value = $day_value;
  96.             $yesterday_id = date( "z" ) - 1;
  97.         }
  98.         else if ( $yesterday_id != date( "z" ) - 1 )
  99.         {
  100.             $yesterday_value = 0;
  101.             $yesterday_id = date( "z" ) - 1;
  102.         }
  103.         if ( $day_id == date( "z" ) )
  104.         {
  105.             ++$day_value;
  106.         }
  107.         else
  108.         {
  109.             $day_value = 1;
  110.             $day_id = date( "z" );
  111.         }
  112.         if ( $week_id == date( "W" ) )
  113.         {
  114.             ++$week_value;
  115.         }
  116.         else
  117.         {
  118.             $week_value = 1;
  119.             $week_id = date( "W" );
  120.         }
  121.         if ( $month_id == date( "n" ) )
  122.         {
  123.             ++$month_value;
  124.         }
  125.         else
  126.         {
  127.             $month_value = 1;
  128.             $month_id = date( "n" );
  129.         }
  130.         if ( $year_id == date( "Y" ) )
  131.         {
  132.             ++$year_value;
  133.         }
  134.         else
  135.         {
  136.             $year_value = 1;
  137.             $year_id = date( "Y" );
  138.         }
  139.         ++$all_value;
  140.         if ( $record_value < $day_value )
  141.         {
  142.             $record_value = $day_value;
  143.             $record_date = date( "Y-m-d H:i:s" );
  144.         }
  145.         $sql = "update counter_values set day_id = '".$day_id."', day_value = '{$day_value}', yesterday_id = '{$yesterday_id}', yesterday_value = '{$yesterday_value}', week_id = '{$week_id}', week_value = '{$week_value}', month_id = '{$month_id}', month_value = '{$month_value}', year_id = '{$year_id}', year_value = '{$year_value}', all_value = '{$all_value}', record_date = '{$record_date}', record_value = '{$record_value}' where id = 1";
  146.         _obfuscate_CXIZARoUBQt7HD8ÿ( $sql );
  147.     }
  148.     echo "\n\n";
  149. }
  150. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top