Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: pagelbekit truputuka :)

Parašė Lyygis· 2008 Rugp. 25 15:08:30
#1

if ($action == 'add') {
   $backlink = '../../profile.php?lookup=' . $id;
   if ($id == $userdata['user_id']) fallback($backlink);
   $result = dbquery("SELECT * FROM ".$db_prefix."friends WHERE user_id='".$userdata['user_id']."' and friend_id='".$id."'");
   if (dbrows($result) == 0) {
      $result = dbquery("INSERT INTO ".$db_prefix."friends (user_id, friend_id, datestamp) VALUES ('".$userdata['user_id']."', '".$id."', '".time()."')");
      $subject = stripinput($locale['fv100']);
      $message = $locale['fv101']."".$userdata['user_name']."".$locale['fv102'];
      $message = stripinput($message);
      $result = dbquery("INSERT INTO ".$db_prefix."messages VALUES('', '".$id."', '".$userdata['user_id']."', '".$subject."', '".$message."', '0', '0', '".time()."', '0')");
   }



zinutes turinys
$message = $locale['fv101']."".$userdata['user_name']."".$locale['fv102'];




zodziu trumpai cia yra kodas kad kai pridedi zmogu prie draugu issiuncia zinute automatiskai kad pridejo. O kaip man prideti i zinutes turini linka? pwz
<a href="belekas.php">Zinutes linkas</a>