All pastes #607652 Raw Edit

Anonymous

public php v1 · immutable
·published 2007-07-07 20:10 UTC
rendered paste body
<?phpfunction mirc_var($string){        //function to convert sertant mirc stuffs        //its just a replace...        //NOTE: this WILL do newline and whatnot so remove that if needed!        global $nick;        global $addr;        global $addr_server;        global $chan;        global $name;        global $me;        global $port;        global $s_string;        $from = array();        $to = array();        $from[] = '$address';          $to[] = $addr;        $from[] = '$nick';             $to[] = $nick;        $from[] = '$server';           $to[] = $addr_server;        $from[] = '$serverip';         $to[] = '127.0.0.1';        $from[] = '$status';           $to[] = 'connected';        $from[] = '$show';             $to[] = '$true';        $from[] = '$ulevel';           $to[] = '1';        $from[] = '$snicks';           $to[] = 'weekend';        $from[] = '$snotify';          $to[] = 'weekend';        $from[] = '$sreq';             $to[] = 'ask';        $from[] = '$ssl';              $to[] = '$true';        $from[] = '$sslready';         $to[] = '$true';        $from[] = '$ticks';            $to[] = '42569'.rand(111,999);        $from[] = '$time';             $to[] = date("H:i:s");        $from[] = '$timestamp';        $to[] = date("[H:i:s]");        $from[] = '$timestampfmt';     $to[] = '[HH:nn:ss]';        $from[] = '$timezone';         $to[] = '25200';        $from[] = '$titlebar';         $to[] = '';        $from[] = '$url';              $to[] = 'http://www.hackthissite.org';        $from[] = '$usermode';         $to[] = '+iwghrsOxqBzt';        $from[] = '$vcmdver';          $to[] = '$null';        $from[] = '$vcmdstat';         $to[] = '0';        $from[] = '$version';          $to[] = (($version == 4) ? '6.21' : '6.17');        $from[] = '$wid';              $to[] = '6';        $from[] = '$site';             $to[] = '';        $from[] = '$wildsite';         $to[] = '';        $from[] = '$active';           $to[] = $chan;        $from[] = '$activecid';        $to[] = '1';        $from[] = '$cid';              $to[] = '1';        $from[] = '$activewid';        $to[] = '7';        $from[] = '$agentname';        $to[] = '';        $from[] = '$anick';            $to[] = 'moo2';        $from[] = '$aop';              $to[] = '$false';        $from[] = '$appactive';        $to[] = '$true';        $from[] = '$appstate';         $to[] = 'maximized';        $from[] = '$avoice';           $to[] = '$false';        $from[] = '$away';             $to[] = '$false';        $from[] = '$cb';               $to[] = 'password: nice try ;)';        $from[] = '$cr';               $to[] = "\r";        $from[] = '$crlf';             $to[] = "\r\n";        $from[] = '$chan';             $to[] = $chan;        $from[] = '$chanmodes';        $to[] = 'beI,kfL,lj,psmntirRcOAQKVCuzNSMTG';        $from[] = '$chantypes';        $to[] = '#';        $from[] = '$cid';              $to[] = '1';        $from[] = '$cmdbox';           $to[] = '$false';        $from[] = '$creq';             $to[] = 'ask';        $from[] = '$ctime';            $to[] = time();        $from[] = '$date';             $to[] = date("d/m/Y");        $from[] = '$adate';            $to[] = date("m/d/Y");        $from[] = '$day';              $to[] = date("l");        $from[] = '$daylight';         $to[] = ((date("I") == 1) ? "3600" : "0");        $from[] = '$dccignore';        $to[] = '$false';        $from[] = '$dccport';          $to[] = '59';        $from[] = '$dlevel';           $to[] = '1';        $from[] = '$emailaddr';        $to[] = 'moo@cowland.com';        $from[] = '$ferr';             $to[] = '0';        $from[] = '$filtered';         $to[] = '0';        $from[] = '$fulladdress';      $to[] = $addr;        $from[] = '$fulldate';         $to[] = date("D M j G:i:s Y");        $from[] = '$fullname';         $to[] = $name;        $from[] = '$gmt';              $to[] = time();        $from[] = '$highlight';        $to[] = '$false';        $from[] = '$host';             $to[] = 'www.hackthissite.org';        $from[] = '$idle';             $to[] = '0';        $from[] = '$ip';               $to[] = '127.0.0.1';        $from[] = '$lf';               $to[] = "\n";        $from[] = '$locked';           $to[] = '$false';        $from[] = '$logdir';           $to[] = 'C:\mirc\logs\\';        $from[] = '$logstamp';         $to[] = date("[H:i:s]");        $from[] = '$logstampfnt';      $to[] = '[HH:nn:ss]';        $from[] = '$ltimer';           $to[] = '4'; //as if moo uses /timers...        $from[] = '$me';               $to[] = $me;        $from[] = '$mididir';          $to[] = 'C:\mirc\sounds\\';        $from[] = '$mircdir';          $to[] = 'C:\mirc\\';        $from[] = '$mircexe';          $to[] = 'C:\mirc\mirc.exe';        $from[] = '$mircini';          $to[] = 'C:\mirc\mirc.ini';        $from[] = '$mnick';            $to[] = $me;        $from[] = '$network';          $to[] = 'HackThisSite';        $from[] = '$os';               $to[] = 'XP';        $from[] = '$passivedcc';       $to[] = '$false';        $from[] = '$port';             $to[] = $port;        $from[] = '$portable';         $to[] = '$false';        $from[] = '$prefix';           $to[] = '~&@%+';        $from[] = '$rawline';          $to[] = $s_string;        $from[] = '$script';           $to[] = 'script.mrc';        $from[] = '$scriptdir';        $to[] = 'C:\mirc\\';        $from[] = '$scriptline';       $to[] = '40';        //that should do..        return str_replace($from, $to, $string);}?>