Guest User

Untitled

a guest
Apr 26th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. $sql = $db->query("SELECT user_shortlink FROM ".$prefix."users WHERE user_shortlink=\"".escapestr($_POST["shortlink"])."\" and user_id <> \"".$authinfo["user_id"]."\";");
  2. if ($db->rows($sql) == 1)
  3. {
  4.     $error = 1;
  5.     $message .= "Адрес занят!<br/>";
  6. }
  7. $db->freeresult($sql);
  8.  
  9.  
  10. // Пример с unset
  11.  
  12. $tpl = new File();
  13. $tpls = $tpl->makefilelist(TEMPLATES, ".|..", true, "", "folders");
  14. echo $tpl->makefileopts($tpls, $authinfo["user_template"]);
  15. unset($tpl);
  16. unset($authinfo);
Add Comment
Please, Sign In to add comment