setDimension(640,480); $myMovie->setBackground($br[0],$br[1],$br[2]); $r = mysql_query("select * from users where id=$id"); if ( mysql_num_rows($r) == 0 ) { $id= MY_MAIN_ID; $r = mysql_query("select * from users where id=$id"); }; $f=mysql_fetch_array($r); // $kodir= $f['kodir']; $pokazal= $f['pokazal']; $reftext= $f['reftext']; $tmp= $f['upline']; if ( $f['status']=="blocked" ) { die ("document.write('". iconv( 'WINDOWS-1251', $kodir, '

Promotron.net: Ваш аккаунт приостановлен

'). "')"); } $r_random_site= mysql_query("select * from users where status='registered' AND NOT id=$id AND pokazan0) { $link_prmtr= 'http://'. $srv. '/?fid='. iid_by_id($id); $text_prmtr= convtext( /* $id.' - '. */ $reflinktext[$reftext] ); $toppadding= 100; $overShape0 = new SWFShape(); $overShape0->setRightFill(255, 255, 240); $overShape0->drawLine(640, 0); $overShape0->drawLine(0, 30); $overShape0->drawLine(-640, 0); $overShape0->drawLine(0, -30); $hitShape0 = new SWFShape(); $hitShape0->setRightFill(255, 255, 240); $hitShape0->drawLine(640, 0); $hitShape0->drawLine(0, 40); $hitShape0->drawLine(-640, 0); $hitShape0->drawLine(0, -40); $b0 = new SWFButton(); $b0->setOver($overShape0); $b0->setDown($hitShape0); $b0->setHit($hitShape0); $b0->setAction(new SWFAction("getURL('$link_prmtr', '_blank');")); $but0=$myMovie->add($b0); $but0->moveTo(0, 20 ); $myText0= new SWFText(); $myText0->setFont($myFont); $myText0->setColor($tr[0],$tr[1],$tr[2]); $myText0->setHeight(26); $myText0->addString( $text_prmtr ); $line0= $myMovie->add($myText0); $line0->moveTo( 10, 44 ); } else $toppadding= 80; for ($i=0;$i<7;$i++) { if ( mt_rand(1,10)<8 ) $hid= hid_by_id ($uid[$i]); else { $f_random_site= mysql_fetch_array($r_random_site); $hid= hid_by_id ($f_random_site['id']); $uid[$i]= $f_random_site['id']; $ads[$i]= ($f_random_site['txt']); } $link[$i]= "http://$srv/go.php?hid=$hid"; $text[$i]= convtext( /* $uid[$i]. ' - '. */ $ads[$i] ); $overShape[$i] = new SWFShape(); $overShape[$i]->setRightFill(255, 255, 240); $overShape[$i]->drawLine(640, 0); $overShape[$i]->drawLine(0, 30); $overShape[$i]->drawLine(-640, 0); $overShape[$i]->drawLine(0, -30); $hitShape[$i] = new SWFShape(); $hitShape[$i]->setRightFill(255, 255, 249); $hitShape[$i]->drawLine(640, 0); $hitShape[$i]->drawLine(0, 40); $hitShape[$i]->drawLine(-640, 0); $hitShape[$i]->drawLine(0, -40); $b[$i] = new SWFButton(); $b[$i]->setOver($overShape[$i]); $b[$i]->setDown($hitShape[$i]); $b[$i]->setHit($hitShape[$i]); $b[$i]->setAction(new SWFAction("getURL('$link[$i]', '_blank');")); $but[$i]=$myMovie->add($b[$i]); $but[$i]->moveTo(0, $toppadding + 60*$i - 24 ); $myText[$i]= new SWFText(); $myText[$i]->setFont($myFont); $myText[$i]->setColor($tr[0],$tr[1],$tr[2]); $myText[$i]->setHeight(24); $myText[$i]->addString( $text[$i] ); $line[$i]= $myMovie->add( $myText[$i] ); $line[$i]->moveTo( 10, 60*$i+ $toppadding ); }; // увеличиваем число показов объявления mysql_query ('insert into users (id) values ('.implode($uid,'),(').') on duplicate key update pokazan= pokazan+1') or die( mysql_error() ); if ( !empty($_SERVER['HTTP_REFERER']) ) { // увеличиваем число "pokazal" mysql_query ("update users set pokazal=".($pokazal+7)." where id=".$id); // и записываем лог статистики mysql_query ("insert into vyzov values ($id, NOW(), '$_SERVER[HTTP_REFERER]', '$_SERVER[REMOTE_ADDR]')"); } nocash(); header('Content-type: application/x-shockwave-flash'); $myMovie->output(); function convtext( $txt ) { return $txt; $cyrlat = array( "Є"=>"YE","І"=>"I","Ѓ"=>"G","і"=>"i", "Ї"=>"YI", "№"=>"#","є"=>"ye","ѓ"=>"g", "А"=>"A","Б"=>"B","В"=>"V","Г"=>"G","Д"=>"D", "Е"=>"E","Ё"=>"YO","Ж"=>"ZH", "З"=>"Z","И"=>"I","Й"=>"J","К"=>"K","Л"=>"L", "М"=>"M","Н"=>"N","О"=>"O","П"=>"P","Р"=>"R", "С"=>"S","Т"=>"T","У"=>"U","Ф"=>"F","Х"=>"X", "Ц"=>"C","Ч"=>"CH","Ш"=>"SH","Щ"=>"SCH","Ъ"=>"'", "Ы"=>"Y","Ь"=>"","Э"=>"E","Ю"=>"YU","Я"=>"YA", "а"=>"a","б"=>"b","в"=>"v","г"=>"g","д"=>"d", "е"=>"e","ё"=>"yo","ж"=>"zh", "з"=>"z","и"=>"i", "ї"=>"yi", "й"=>"j","к"=>"k","л"=>"l", "м"=>"m","н"=>"n","о"=>"o","п"=>"p","р"=>"r", "с"=>"s","т"=>"t","у"=>"u","ф"=>"f","х"=>"x", "ц"=>"c","ч"=>"ch","ш"=>"sh","щ"=>"sch","ъ"=>"", "ы"=>"y","ь"=>"","э"=>"e","ю"=>"yu","я"=>"ya","«"=>"","»"=>"","—"=>"-" ); return strtr( $txt, $cyrlat ); // foreach ($cyrlat as $bukva=>$lat) { // $file_name= str_replace($cyrnum[$bukva], $lat, $file_name); } ?>