Are you a regular stikked user? Signup so you can keep track of your pastes!
  1. <?php
  2.  
  3.  
  4.  
  5. include("../members/Config.php");
  6.  
  7.  
  8.  
  9. $baseurl = 'http://www.organner.pl/nt';
  10.  
  11.  
  12.  
  13. function cleanup_vars( $array )
  14.  
  15. {
  16.  
  17.         if( !is_array( $array ) )
  18.  
  19.         {
  20.  
  21.                 return htmlspecialchars( $array );
  22.  
  23.         }
  24.  
  25.  
  26.  
  27.         $tmp = array();
  28.  
  29.  
  30.  
  31.         foreach( $array as $key => $value )
  32.  
  33.         {
  34.  
  35.                 $tmp[ $key ] = cleanup_vars( $value );
  36.  
  37.         }
  38.  
  39.  
  40.  
  41.         return $tmp;
  42.  
  43. }
  44.  
  45.  
  46.  
  47. function online_users()
  48.  
  49. {
  50.  
  51.         $ONLINE_LOG_FILE = 'online.dat';
  52.  
  53.     $myip = $_SERVER['REMOTE_ADDR'];
  54.  
  55.     $timeout = 300;
  56.  
  57.     $file = file($ONLINE_LOG_FILE);
  58.  
  59.     $count = count($file);
  60.  
  61.     $add = true;
  62.  
  63.     $online = 0;
  64.  
  65.     $fopen = fopen($ONLINE_LOG_FILE, "w");
  66.  
  67.     flock($fopen, LOCK_EX);
  68.  
  69.  
  70.  
  71.     for($i=0; $i<$count; $i++)
  72.  
  73.     {
  74.  
  75.         $data = explode('|', chop($file[$i]));
  76.  
  77.  
  78.  
  79.         if($data[0]==$myip)
  80.  
  81.         {
  82.  
  83.             fputs($fopen, $myip.'|'.time()."\n");
  84.  
  85.             $add = false;
  86.  
  87.             $online++;
  88.  
  89.         }
  90.  
  91.         else
  92.  
  93.         {
  94.  
  95.             if($data[1]>=(time() - $timeout))
  96.  
  97.             {
  98.  
  99.                 fputs($fopen, $data[0].'|'.$data[1]."\n");
  100.  
  101.                 $online++;
  102.  
  103.             }
  104.  
  105.         }
  106.  
  107.     }
  108.  
  109.  
  110.  
  111.     if($add)
  112.  
  113.     {
  114.  
  115.         fputs($fopen, $myip.'|'.time()."\n");
  116.  
  117.         $online++;
  118.  
  119.     }
  120.  
  121.  
  122.  
  123.     flock($fopen, LOCK_UN);
  124.  
  125.     fclose($fopen);
  126.  
  127.     return $online;
  128.  
  129. }
  130.  
  131.  
  132.  
  133. function GET_USER_NAME( $UserID )
  134.  
  135. {
  136.  
  137.         $Return = "";
  138.  
  139.  
  140.  
  141.         $Query = mysql_query("SELECT * FROM phpbb_users WHERE user_id = '$UserID'");
  142.  
  143.  
  144.  
  145.         while($Row = mysql_fetch_array($Query))
  146.  
  147.         {
  148.  
  149.                 $Return = $Row['username'];
  150.  
  151.         }
  152.  
  153.  
  154.  
  155.         return $Return;
  156.  
  157. }
  158.  
  159.  
  160.  
  161. function GET_POST_TEXT( $PostID )
  162.  
  163. {
  164.  
  165.         $Return = "";
  166.  
  167.  
  168.  
  169.         $Query = mysql_query("SELECT * FROM phpbb_posts_text WHERE post_id = '$PostID'");
  170.  
  171.  
  172.  
  173.         while($Row = mysql_fetch_array($Query))
  174.  
  175.         {
  176.  
  177.                 $Return = $Row['post_text'];
  178.  
  179.         }
  180.  
  181.  
  182.  
  183.         return $Return;
  184.  
  185. }
  186.  
  187.  
  188.  
  189. $Connection = mysql_connect("localhost", $PHPBB_MYSQL_USER, $PHPBB_MYSQL_PASSWORD);
  190.  
  191.  
  192.  
  193. if( !$Connection )
  194.  
  195. {
  196.  
  197.         die("Failed to connect with MYSQL!");
  198.  
  199. }
  200.  
  201.  
  202.  
  203. $ONLINE = online_users();
  204.  
  205. $VIP_MEMBERS = 0;
  206.  
  207. $TOTAL_MEMBERS = 0;
  208.  
  209.  
  210.  
  211. mysql_select_db($PHPBB_MYSQL_DATABASE);
  212.  
  213.  
  214.  
  215. $QueryResult = mysql_query("SELECT * FROM phpbb_users");
  216.  
  217.  
  218.  
  219. while($Row = mysql_fetch_assoc($QueryResult))
  220.  
  221. {
  222.  
  223.         $TOTAL_MEMBERS++;
  224.  
  225.  
  226.  
  227.         if($Row['user_rank'] == 3 || $Row['user_rank'] == 6)
  228.  
  229.         {
  230.  
  231.                 $VIP_MEMBERS++;
  232.  
  233.         }
  234.  
  235. }
  236.  
  237.  
  238.  
  239. $PageAction = $_GET['Action'];
  240.  
  241. $PageOrder = $_GET['Order'];
  242.  
  243. $PageProducts = $_GET['Products'];
  244.  
  245.  
  246.  
  247. if( !$PageAction && !$PageOrder && !$PageProducts )
  248.  
  249. {
  250.  
  251.         $PageStats = '
  252.  
  253.         <font face="Tahoma" size="2">
  254.  
  255.         <div align="center">
  256.  
  257.         <b>On-Line:</b> ['.$ONLINE.']
  258.  
  259.         <br>
  260.  
  261.         <b>Total Members:</b> ['.$TOTAL_MEMBERS.']
  262.  
  263.         <br>
  264.  
  265.         </div>
  266.  
  267.         </font>
  268.  
  269.         ';
  270.  
  271.  
  272.  
  273.         $ForumID = 6;
  274.  
  275.         $Counter = 0;
  276.  
  277.  
  278.  
  279.         $Query = mysql_query("SELECT * FROM phpbb_topics WHERE forum_id = '$ForumID' ORDER BY topic_time DESC");
  280.  
  281.  
  282.  
  283.         while($Row = mysql_fetch_array($Query))
  284.  
  285.         {
  286.  
  287.                 if($Counter == $MAIN_PAGE_DISPLAY_NEWS_AMMOUNT)
  288.  
  289.                 {
  290.  
  291.                         $PageNews .= '<br>';
  292.  
  293.                         break;
  294.  
  295.                 }
  296.  
  297.                 else
  298.  
  299.                 {
  300.  
  301.                         $Counter++;
  302.  
  303.                 }
  304.  
  305.  
  306.  
  307.                 $TopicViews = $Row['topic_views'];
  308.  
  309.                 $TopicID = $Row['topic_id'];
  310.  
  311.                 $TopicPostID = $Row['topic_first_post_id'];
  312.  
  313.                 $PosterID = $Row['topic_poster'];
  314.  
  315.                 $TopicTitle = $Row['topic_title'];
  316.  
  317.                 $TopicTime = $Row['topic_time'];
  318.  
  319.                 $PosterNick = GET_USER_NAME($PosterID);
  320.  
  321.                 $TopicText = GET_POST_TEXT($TopicPostID);
  322.  
  323.  
  324.  
  325.                 $TopicText = preg_replace('/\:[0-9a-z\:]+\]/si', ']', $TopicText);
  326.  
  327.                 $TopicText = str_replace("[b]","<strong>",$TopicText);
  328.  
  329.                 $TopicText = str_replace("[/b]","</strong>",$TopicText);
  330.  
  331.                 $TopicText = str_replace("[i]","<em>",$TopicText);
  332.  
  333.                 $TopicText = str_replace("[/i]","</em>",$TopicText);
  334.  
  335.                 $TopicText = str_replace("[u]","<u>",$TopicText);
  336.  
  337.                 $TopicText = str_replace("[/u]","</u>",$TopicText);
  338.  
  339.                 $TopicText = preg_replace('/\[quote=(.*)\](.*)\[\/quote\]/Usi','<div style=\"padding: 7px\">$2</div>',$TopicText);
  340.  
  341.                 $TopicText = str_replace("[quote]","<strong>Quote</strong><em>",$TopicText);
  342.  
  343.                 $TopicText = str_replace("[/quote]","</em>",$TopicText);
  344.  
  345.                 $TopicText = str_replace("[code]","<strong>Code</strong><em>",$TopicText);
  346.  
  347.                 $TopicText = str_replace("[/code]","</em>",$TopicText);
  348.  
  349.                 $TopicText = preg_replace('/\[list\](.*)\[\/list\]/si',"<div style=\"padding: 7px\">$1</div>",$TopicText);
  350.  
  351.                 $TopicText = preg_replace('/\[list=(.*)\](.*)\[\/list\]/si',"<div style=\"padding: 7px\">$1</div>",$TopicText);
  352.  
  353.                 $TopicText = str_replace("[img]","<img src=\"",$TopicText);
  354.  
  355.                 $TopicText = str_replace("[/img]","\" alt=\"image\" />",$TopicText);
  356.  
  357.                 $TopicText = preg_replace('/\[url\](.*)\[\/url\]/Usi','<a href="$1">$1</a>',$TopicText);
  358.  
  359.                 $TopicText = preg_replace('/\[url=(.*)\](.*)\[\/url\]/Usi','<a href="$1">$2</a>',$TopicText);
  360.  
  361.                 $TopicText = preg_replace('/\[color=(.*)\](.*)\[\/color\]/Usi','<span style="{color:$1}">$2</span>',$TopicText);
  362.  
  363.                 $TopicText = preg_replace('/\[size=(.*)\](.*)\[\/size\]/Usi','<span style="{font-size:$1pt}">$2</span>',$TopicText);
  364.  
  365.                 $TopicText = str_replace("\n", "<br/>", $TopicText);
  366.  
  367.  
  368.  
  369.                 $NewsDate = date("Y.m.d", $TopicTime);
  370.  
  371.  
  372.  
  373.                 $PageNews .= '
  374.                 <div id="news">
  375.                         <div id="lcorner"></div>
  376.                         <div id="news_topic">
  377.                                 <div class="topic"><a HREF="http://forum.organner.pl/postlink/'.$TopicPostID.'.htm#'.$TopicPostID.'">'.$TopicTitle.'</a></div>
  378.                         <div class="date">by: <a HREF="http://forum.organner.pl/profiles/'.$PosterID.'.htm">'.$PosterNick.'</a> on '.$NewsDate.' | Views: '.$TopicViews.'</div>
  379.                         </div>
  380.                         <div id="rcorner"></div>
  381.                         <div id="news_content">
  382.                                 <div class="content">'.$TopicText.'</div>
  383.                         </div>
  384.                 </div>
  385.  
  386.                 ';
  387.  
  388.         }
  389.  
  390.  
  391.  
  392.         $Site = include("templates/header.html");
  393.  
  394.                         include("templates/index.html");
  395.  
  396.                         include("templates/footer.html");
  397.  
  398.  
  399.  
  400. }
  401.  
  402. else
  403.  
  404. {
  405.  
  406.         if($PageAction == 1)
  407.  
  408.         {
  409.  
  410.                 $Site = include("templates/header.html");
  411.  
  412.                                 include("templates/products.html");
  413.  
  414.                                 include("templates/footer.html");
  415.  
  416.         }
  417.  
  418.         else if($PageAction == 2)
  419.  
  420.         {
  421.  
  422.                 $Site = include("templates/header.html");
  423.  
  424.                                 include("templates/contact.html");
  425.  
  426.                                 include("templates/footer.html");
  427.  
  428.         }
  429.  
  430. //
  431.  
  432. //      Products List
  433.  
  434. //
  435.  
  436.         if($PageProducts == 1)
  437.  
  438.         {
  439.  
  440.                 $Site = include("templates/header.html");
  441.  
  442.                                 include("templates/immunity-full-hl2.html");
  443.  
  444.                                 include("templates/footer.html");
  445.  
  446.         }
  447.  
  448.         elseif($PageProducts == 2)
  449.  
  450.         {
  451.  
  452.                 $Site = include("templates/header.html");
  453.  
  454.                                 include("templates/immunity-light-hl2.html");
  455.  
  456.                                 include("templates/footer.html");
  457.  
  458.         }
  459.  
  460.         elseif($PageProducts == 3)
  461.  
  462.         {
  463.  
  464.                 $Site = include("templates/header.html");
  465.  
  466.                                 include("templates/immunity-full-hl1.html");
  467.  
  468.                                 include("templates/footer.html");
  469.  
  470.         }
  471.  
  472.         elseif($PageProducts == 4)
  473.  
  474.         {
  475.  
  476.                 $Site = include("templates/header.html");
  477.  
  478.                                 include("templates/immunity-light-hl1.html");
  479.  
  480.                                 include("templates/footer.html");
  481.  
  482.         }
  483.  
  484.         elseif($PageProducts == 5)
  485.  
  486.         {
  487.  
  488.                 $Site = include("templates/header.html");
  489.  
  490.                                 include("templates/orgia-online.html");
  491.  
  492.                                 include("templates/footer.html");
  493.  
  494.         }
  495.  
  496.         elseif($PageProducts == 6)
  497.  
  498.         {
  499.  
  500.                 $Site = include("templates/header.html");
  501.  
  502.                                 include("templates/orgia-lan.html");
  503.  
  504.                                 include("templates/footer.html");
  505.  
  506.         }
  507.  
  508.         elseif($PageProducts == 7)
  509.  
  510.         {
  511.  
  512.                 $Site = include("templates/header.html");
  513.  
  514.                                 include("templates/immunity-sXe-hl1.html");
  515.  
  516.                                 include("templates/footer.html");
  517.  
  518.         }
  519.  
  520.        
  521.  
  522.  
  523.  
  524.         if( $PageOrder )
  525.  
  526.         {
  527.  
  528.                 if( $PageOrder >= 1 && $PageOrder <= 7 )
  529.  
  530.                 {
  531.  
  532.                         $PageText .= '
  533.  
  534.                         <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
  535.  
  536.                         <input type="hidden" name="cmd" value="_xclick">
  537.  
  538.                         <input type="hidden" name="business" value="'.$DEFINED_PAYPAL_ACCOUNT.'">
  539.  
  540.                         <p align="center">
  541.  
  542.                         ';
  543.  
  544.  
  545.  
  546.                         if($PageOrder == 1)
  547.  
  548.                         {
  549.  
  550.                                 $PageText .= '
  551.  
  552.                                 <b>[HL1] Immunity Light:</b>
  553.  
  554.                                 <br>
  555.  
  556.                                 <br>
  557.  
  558.                                 <input type="hidden" name="item_name" value="Immunity Light [HL1]">
  559.  
  560.                                 <select size="1" name="amount">
  561.  
  562.                                 <option value="'.$IMMUNITY1_PRICE_1.'">1 MONTH ['.$IMMUNITY1_PRICE_1.' EUR]</option>
  563.  
  564.                                 <option value="'.$IMMUNITY1_PRICE_3.'">3 MONTHS ['.$IMMUNITY1_PRICE_3.' EUR]</option>
  565.  
  566.                                 <option value="'.$IMMUNITY1_PRICE_6.'">6 MONTHS ['.$IMMUNITY1_PRICE_6.' EUR]</option>
  567.  
  568.                                 <option value="'.$IMMUNITY1_PRICE_12.'">12 MONTHS ['.$IMMUNITY1_PRICE_12.' EUR]</option>
  569.  
  570.                                 </select>
  571.  
  572.                                 ';
  573.  
  574.                         }
  575.  
  576.                         else if($PageOrder == 2)
  577.  
  578.                         {
  579.  
  580.                                 $PageText .= '
  581.  
  582.                                 <b>[HL1] Immunity Full:</b>
  583.  
  584.                                 <br>
  585.  
  586.                                 <br>
  587.  
  588.                                 <input type="hidden" name="item_name" value="Immunity Full [HL1]">
  589.  
  590.                                 <select size="1" name="amount">
  591.  
  592.                                 <option value="'.$IMMUNITY2_PRICE_1.'">1 MONTH ['.$IMMUNITY2_PRICE_1.' EUR]</option>
  593.  
  594.                                 <option value="'.$IMMUNITY2_PRICE_3.'">3 MONTHS ['.$IMMUNITY2_PRICE_3.' EUR]</option>
  595.  
  596.                                 <option value="'.$IMMUNITY2_PRICE_6.'">6 MONTHS ['.$IMMUNITY2_PRICE_6.' EUR]</option>
  597.  
  598.                                 <option value="'.$IMMUNITY2_PRICE_12.'">12 MONTHS ['.$IMMUNITY2_PRICE_12.' EUR]</option>
  599.  
  600.                                 </select>
  601.  
  602.                                 ';
  603.  
  604.                         }
  605.  
  606.                         else if($PageOrder == 3)
  607.  
  608.                         {
  609.  
  610.                                 $PageText .= '
  611.  
  612.                                 <b>[HL1] Orgia REBORN INTERNET:</b>
  613.  
  614.                                 <br>
  615.  
  616.                                 <br>
  617.  
  618.                                 <input type="hidden" name="item_name" value="Orgia REBORN INTERNET [HL1]">
  619.  
  620.                                 <select size="1" name="amount">
  621.  
  622.                                 <option value="'.$REBORN1_PRICE_1.'">1 MONTH ['.$REBORN1_PRICE_1.' EUR]</option>
  623.  
  624.                                 <option value="'.$REBORN1_PRICE_3.'">3 MONTHS ['.$REBORN1_PRICE_3.' EUR]</option>
  625.  
  626.                                 <option value="'.$REBORN1_PRICE_6.'">6 MONTHS ['.$REBORN1_PRICE_6.' EUR]</option>
  627.  
  628.                                 <option value="'.$REBORN1_PRICE_12.'">12 MONTHS ['.$REBORN1_PRICE_12.' EUR]</option>
  629.  
  630.                                 </select>
  631.  
  632.                                 ';
  633.  
  634.                         }
  635.  
  636.                         else if($PageOrder == 4)
  637.  
  638.                         {
  639.  
  640.                                 $PageText .= '
  641.  
  642.                                 <b>[HL1] Orgia REBORN LAN:</b>
  643.  
  644.                                 <br>
  645.  
  646.                                 <br>
  647.  
  648.                                 <input type="hidden" name="item_name" value="Orgia REBORN LAN [HL1]">
  649.  
  650.                                 <select size="1" name="amount">
  651.  
  652.                                 <option value="'.$REBORN2_PRICE_12.'">12 MONTHS ['.$REBORN2_PRICE_12.' EUR]</option>
  653.  
  654.                                 </select>
  655.  
  656.                                 ';
  657.  
  658.                         }
  659.  
  660.                         else if($PageOrder == 5)
  661.  
  662.                         {
  663.  
  664.                                 $PageText .= '
  665.  
  666.                                 <b>[HL2] Immunity Light:</b>
  667.  
  668.                                 <br>
  669.  
  670.                                 <br>
  671.  
  672.                                 <input type="hidden" name="item_name" value="Immunity Light [HL2]">
  673.  
  674.                                 <select size="1" name="amount">
  675.  
  676.                                 <option value="'.$IMMUNITY3_PRICE_1.'">1 MONTH ['.$IMMUNITY3_PRICE_1.' EUR]</option>
  677.  
  678.                                 <option value="'.$IMMUNITY3_PRICE_3.'">3 MONTHS ['.$IMMUNITY3_PRICE_3.' EUR]</option>
  679.  
  680.                                 <option value="'.$IMMUNITY3_PRICE_6.'">6 MONTHS ['.$IMMUNITY3_PRICE_6.' EUR]</option>
  681.  
  682.                                 <option value="'.$IMMUNITY3_PRICE_12.'">12 MONTHS ['.$IMMUNITY3_PRICE_12.' EUR]</option>
  683.  
  684.                                 </select>
  685.  
  686.                                 ';
  687.  
  688.                         }
  689.  
  690.                         else if($PageOrder == 6)
  691.  
  692.                         {
  693.  
  694.                                 $PageText .= '
  695.  
  696.                                 <b>[HL2] Immunity Full:</b>
  697.  
  698.                                 <br>
  699.  
  700.                                 <br>
  701.  
  702.                                 <input type="hidden" name="item_name" value="Immunity Full [HL2]">
  703.  
  704.                                 <select size="1" name="amount">
  705.  
  706.                                 <option value="'.$IMMUNITY4_PRICE_1.'">1 MONTH ['.$IMMUNITY4_PRICE_1.' EUR]</option>
  707.  
  708.                                 <option value="'.$IMMUNITY4_PRICE_3.'">3 MONTHS ['.$IMMUNITY4_PRICE_3.' EUR]</option>
  709.  
  710.                                 <option value="'.$IMMUNITY4_PRICE_6.'">6 MONTHS ['.$IMMUNITY4_PRICE_6.' EUR]</option>
  711.  
  712.                                 <option value="'.$IMMUNITY4_PRICE_12.'">12 MONTHS ['.$IMMUNITY4_PRICE_12.' EUR]</option>
  713.  
  714.                                 </select>
  715.  
  716.                                 ';
  717.  
  718.                         }
  719.  
  720.                         else if($PageOrder == 7)
  721.  
  722.                         {
  723.  
  724.                                 $PageText .= '
  725.  
  726.                                 <b>Immunity sXe/VAC2 [HL1]:</b>
  727.  
  728.                                 <br>
  729.  
  730.                                 <br>
  731.  
  732.                                 <input type="hidden" name="item_name" value="Immunity sXe [HL1]">
  733.  
  734.                                 <select size="1" name="amount">
  735.  
  736.                                 <option value="'.$IMMUNITY5_PRICE_1.'">1 MONTH ['.$IMMUNITY5_PRICE_1.' EUR]</option>
  737.  
  738.                                 <option value="'.$IMMUNITY5_PRICE_3.'">3 MONTHS ['.$IMMUNITY5_PRICE_3.' EUR]</option>
  739.  
  740.                                 <option value="'.$IMMUNITY5_PRICE_6.'">6 MONTHS ['.$IMMUNITY5_PRICE_6.' EUR]</option>
  741.  
  742.                                 <option value="'.$IMMUNITY5_PRICE_12.'">12 MONTHS ['.$IMMUNITY5_PRICE_12.' EUR]</option>
  743.  
  744.                                 </select>
  745.  
  746.                                 ';
  747.  
  748.                         }
  749.  
  750.  
  751.  
  752.                         $PageText .= '
  753.  
  754.                         <br>
  755.  
  756.                         <br>
  757.  
  758.                         <input type="hidden" name="no_shipping" value="1">
  759.  
  760.                         <input type="hidden" name="return" value="http://members.organner.pl/payment.php">
  761.  
  762.                         <input type="hidden" name="no_note" value="1">
  763.  
  764.                         <input type="hidden" name="currency_code" value="EUR">
  765.  
  766.                         <input type="hidden" name="lc" value="ENG">
  767.  
  768.                         <input type="hidden" name="bn" value="PP-BuyNowBF">
  769.  
  770.                         <input type="image" src="PP_BUTTON.gif" border="0" name="submit" alt="Pay by PayPal" width="62" height="31">
  771.  
  772.                         </p>
  773.  
  774.                         </form>
  775.  
  776.                         ';
  777.  
  778.                 }
  779.  
  780.                 else
  781.  
  782.                 {
  783.  
  784.                         $PageText .= '<p align="center"><b>We are sorry, but this product is not supported yet by our payment system!</b></p>';
  785.  
  786.                 }
  787.  
  788.         }
  789.  
  790.  
  791.  
  792. }
  793.  
  794.  
  795.  
  796. //echo($Site);
  797.  
  798.  
  799.  
  800. ?>

Reply to "Untitled"

Here you can reply to the paste above

Create a snipurl

Make Private

Feeling clever? Set some advanced options.