Guest User

menu.php

a guest
Aug 5th, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1. <?php
  2.  
  3. function punkty(){
  4.     require 'config/polacz.php';
  5.     $nick = $_SESSION['logged_nick'];
  6.     $checkpoints = mysql_fetch_array(mysql_query("SELECT points FROM users WHERE nick='$nick'"));
  7.  
  8.     if($checkpoints['points'] == 0){
  9.         echo("0");
  10.     }else {
  11.         print($checkpoints['points']);
  12.     }
  13.     mysql_close($connection);
  14. }
  15.  
  16.  
  17. if($_GET['sufiks_sms'] != NULL){
  18. ?>
  19. <div id="menu" style="opacity: 1.0; font-size: 120%">
  20.         <a class="link2" href="index.php">Powrót do opcji SMS Shopu</a>
  21. </div>
  22. <?php
  23. }else{
  24. ?>
  25. <div id="menu" style="opacity: 1.0; font-size: 120%">
  26.         <a class="link2" href="index.php">SMS Shop</a>
  27. </div>
  28. <?php
  29. }
  30. ?>
Advertisement
Add Comment
Please, Sign In to add comment