Navigacija

Vartotojų tinkle

Prisijungusių svečių: 366
Prisijungusių narių: 0
Prisijungusių narių nėra

Registruoti nariai: 25,956
Naujausias narys: saulyzas

Naujausi straipsniai

Paskutiniai nariai

MaFetas 2 savaitės
ozzWANTED 3 savaitės
saulyzas 5 savaitės
TOMIJUS 6 savaitės
Reikalas15 savaitės
Jaunelis21 savaitės
lanis22 savaitės
And2s22 savaitės
Memento Mori27 savaitės
Quwqkibor30 savaitės
asirija34 savaitės
tomeem36 savaitės
weberiz39 savaitės
mRokass41 savaitės
kartoonas42 savaitės
grunskiz45 savaitės
Bruksnys46 savaitės
illusion46 savaitės
ordo47 savaitės
Jurgaila47 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 18.117.94.180
Naujienų: 529
Straipsnių: 235
Temų: 52,588
Postų: 522,537
Postų pask. parą: 0
Shout'ų pask. parą: 0
P.S.C. pask. parą: 0
Nuorodų kataloge: 13

Lankomumo Statistika

Peržiūrų šiandien: 22

Iš viso peržiūrų: 22948724

Prisijungti

REGISTRUOTIS
Nario vardas

Slaptažodis



Pamiršai slaptažodį?
Paprašyk naujo

Aktyvuoti save

Šaukykla

Jei norite rašyti žinutes, turite prisijungti.

ozzWANTED
2024 Lap. 30 15:11:14
Taip, vis dar up šypsosi

MaFetas
2024 Lap. 13 22:11:57
hey how, geras dar veikiantis saitas?

Jaunelis
2024 Lie. 25 11:07:43
Oho vis dar veikia svetainė akinanti šypsen Šimtas metų, matau Šaukykloje nuostalgija. Smagu panaršyt po forumą ir pažiūrėt senas temas šypsosi

And2s
2024 Lie. 17 19:07:04
2008 pirmą kart čia patekau, man buvo 10m ir čia pramokau programavimo.. smagu skaityti senas žinutes, tokia nostalgija akinanti šypsen ačiū Ozz kad saugoji šitą kultūrinį reliktą šypsosi

ozzWANTED
2024 Sau. 17 01:01:00
Desperatiškus komentarus šaukykloje su accountu po mėnesio prasibuvimo, ištryniau. Pasaulis ir taip juodas. Įjungiam šviesą, prašviesės. šypsosi

Šaukyklos archyvas

Apklausa

Ar esate patenkinti lietuviško vertimo kokybe?

Taip!

Taip, bet yra ką taisyti (parašysiu komentaruose)

Ne

Norėdamas balsuoti turite prisijungti.
Archyvas
Reklama 400x60
user_gold_panel
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Bendri PHP-F klausimai

Autorius: Haked Peržiūrų: 3454      Spausdinti temą
2008 Rugp. 7 23:08:38          1 žinutė iš 10
Spausdinti pranešimą
Man reikia, kad rodytu kiek monetų turi tik neišeina įterpti šio kodo:
$userpoints=dbarray(dbquery("SELECT * FROM ".$db_prefix."users_points WHERE owner_id='".$userdata[user_id]."'"));
//display the result
echo "<img src='".THEME."images/bullet.gif'> Pinigų: <b>$userpoints[points_total]</b><br>";




o čia meniu:

openside("Meniu");
?>
<tr>
<td class="side-body">

<table width="290" align="center" cellpadding="0" cellspacing="1">

<tbody><tr>
<td width="5" align="left">
<img src="/images/meniu/pagrindinis.gif" border="0">
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/index.php" class="white">Naujienos</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/phpBB3" class="white">Diskusijos</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/viewpage.php?page_id=7" class="white">IRC chat</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/photogallery.php" class="white">Jūsų nuotraukos</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/articles.php" class="white">Idomybės</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/downloads.php" class="white">Failų galerija</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/contact.php" class="white">Kontaktai</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/search.php" class="white">Paieška</a>
<br>


<img src="/images/meniu/pramogos.gif" border="0">
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/infusions/sf_gift_system/brows_gifts.php" class="white">Dovanok dovanas</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/infusions/roulette/index.php" class="white">Rusiška ruletė</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/infusions/wordscramble/wordscramble.php" class="white">Žodžių spelionė</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/infusions/aw_chess/index.php" class="white">Šachmatai</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/viewpage.php?page_id=7" class="white">Meilės kaukuliatorius</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/viewpage.php?page_id=5" class="white">Nemokami sms</a>

<br>
<br>
</td><td width="5" align="left">
<img src="/images/meniu/pateikimai.gif" border="0">
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/submit.php?stype=p" class="white">Pridėti nuotrauką</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/submit.php?stype=n" class="white">Pridėti naujieną</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/viewpage.php?page_id=11" class="white">Pridėti straipsnelį</a>
<br>

<img src="/images/meniu/pinigai.gif" border="0">
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/infusions/user_gold_panel/" class="white">Pervesti / Dovanoti</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/viewpage.php?page_id=8" class="white">Nusipirkti / Parduoti</a>
<br>
čia man reikia, kad būtu.
<br>

<img src="/images/meniu/kita.gif" border="0">
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/viewpage.php?page_id=6" class="white">Userbar'ai</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/viewpage.php?page_id=7" class="white">Parama</a>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</td>
</tr>
</tbody></table>
</td>

</tr>
<?
closeside();




Koks yra tavo vardas?
2008 Rugp. 7 23:08:42          2 žinutė iš 10
Spausdinti pranešimą
$userpoints=dbarray(dbquery("SELECT * FROM ".$db_prefix."users_points WHERE owner_id='".$userdata[user_id]."'"));

openside("Meniu");
?>
<tr>
<td class="side-body">

<table width="290" align="center" cellpadding="0" cellspacing="1">

<tbody><tr>
<td width="5" align="left">
<img src="/images/meniu/pagrindinis.gif" border="0">
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/index.php" class="white">Naujienos</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/phpBB3" class="white">Diskusijos</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/viewpage.php?page_id=7" class="white">IRC chat</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/photogallery.php" class="white">Jūsų nuotraukos</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/articles.php" class="white">Idomybės</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/downloads.php" class="white">Failų galerija</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/contact.php" class="white">Kontaktai</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/search.php" class="white">Paieška</a>
<br>


<img src="/images/meniu/pramogos.gif" border="0">
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/infusions/sf_gift_system/brows_gifts.php" class="white">Dovanok dovanas</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/infusions/roulette/index.php" class="white">Rusiška ruletė</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/infusions/wordscramble/wordscramble.php" class="white">Žodžių spelionė</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/infusions/aw_chess/index.php" class="white">Šachmatai</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/viewpage.php?page_id=7" class="white">Meilės kaukuliatorius</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/viewpage.php?page_id=5" class="white">Nemokami sms</a>

<br>
<br>
</td><td width="5" align="left">
<img src="/images/meniu/pateikimai.gif" border="0">
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/submit.php?stype=p" class="white">Pridėti nuotrauką</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/submit.php?stype=n" class="white">Pridėti naujieną</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/viewpage.php?page_id=11" class="white">Pridėti straipsnelį</a>
<br>

<img src="/images/meniu/pinigai.gif" border="0">
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/infusions/user_gold_panel/" class="white">Pervesti / Dovanoti</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/viewpage.php?page_id=8" class="white">Nusipirkti / Parduoti</a>
<br>
<img src="".THEME."images/bullet.gif"> Pinigų: <b>$userpoints[points_total]</b><br>
<br>

<img src="/images/meniu/kita.gif" border="0">
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/viewpage.php?page_id=6" class="white">Userbar'ai</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/viewpage.php?page_id=7" class="white">Parama</a>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</td>
</tr>
</tbody></table>
</td>

</tr>
<?
closeside();




Bandyk laimę
2008 Rugp. 7 23:08:43          3 žinutė iš 10
Spausdinti pranešimą
$userpoints=dbarray(dbquery("SELECT * FROM ".$db_prefix."users_points WHERE owner_id='".$userdata[user_id]."'"));
openside("Meniu");
echo "<tr>
<td class='side-body'>
<table width='290' align='center' cellpadding='0' cellspacing='1'>
<tbody>
<tr>
<td width='5' align='left'>
<img src='/images/meniu/pagrindinis.gif'>
<br>
<img src='".THEME."images/bullet.gif'> <a href='index.php' class='white'>Naujienos</a>
<br>
<img src='".THEME."images/bullet.gif'> <a href='phpBB3' class='white'>Diskusijos</a>
<br>
<img src='".THEME."images/bullet.gif'> <a href='viewpage.php?page_id=7' class='white'>IRC chat</a>
<br>
<img src='".THEME."images/bullet.gif'> <a href='photogallery.php' class='white'>Jūsų nuotraukos</a>
<br>
<img src='".THEME."images/bullet.gif'> <a href='articles.php' class='white'>Idomybės</a>
<br>
<img src='".THEME."images/bullet.gif'> <a href='downloads.php' class='white'>Failų galerija</a>
<br>
<img src='".THEME."images/bullet.gif'> <a href='contact.php' class='white'>Kontaktai</a>
<br>
<img src='".THEME."images/bullet.gif'> <a href='search.php' class='white'>Paieška</a>
<br>
<img src='images/meniu/pramogos.gif'>
<br>
<img src='".THEME."images/bullet.gif'> <a href='infusions/sf_gift_system/brows_gifts.php' class='white'>Dovanok dovanas</a>
<br>
<img src='".THEME."images/bullet.gif'> <a href='infusions/roulette/index.php' class='white'>Rusiška ruletė</a>
<br>
<img src='".THEME."images/bullet.gif'> <a href='infusions/wordscramble/wordscramble.php' class='white'>Žodžių spelionė</a>
<br>
<img src='".THEME."images/bullet.gif'> <a href='infusions/aw_chess/index.php' class='white'>Šachmatai</a>
<br>
<img src='".THEME."images/bullet.gif'> <a href='viewpage.php?page_id=7' class='white'>Meilės kaukuliatorius</a>
<br>
<img src='".THEME."images/bullet.gif'> <a href='viewpage.php?page_id=5' class='white'>Nemokami sms</a>
<br>
<br>
</td>
<td width='5' align='left'>
<img src='/images/meniu/pateikimai.gif'>
<br>
<img src='".THEME."images/bullet.gif'> <a href='submit.php?stype=p' class='white'>Pridėti nuotrauką</a>
<br>
<img src='".THEME."images/bullet.gif'> <a href='submit.php?stype=n' class='white'>Pridėti naujieną</a>
<br>
<img src='".THEME."images/bullet.gif'> <a href='viewpage.php?page_id=11' class='white'>Pridėti straipsnelį</a>
<br>
<img src='".THEME."images/bullet.gif'>
<br>
<img src='".THEME."images/bullet.gif'> <a href='infusions/user_gold_panel/' class='white'>Pervesti / Dovanoti</a>
<br>
<img src='".THEME."images/bullet.gif'> <a href='viewpage.php?page_id=8' class='white'>Nusipirkti / Parduoti</a>
<br>
<img src='".THEME."images/bullet.gif'> Pinigų: <b>$userpoints[points_total]</b><br>
<br>
<img src='images/meniu/kita.gif'>
<br>
<img src='".THEME."images/bullet.gif'> <a href='viewpage.php?page_id=6' class='white'>Userbar'ai</a>
<br>
<img src='".THEME."images/bullet.gif'> <a href='viewpage.php?page_id=7' class='white'>Parama</a>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</td>
</tr>
</tbody>
</table>
</td>
</tr>";
closeside();



Pamėgink, bet negarantuoju, kad nebus klaidų. :)
EDIT: pataisiau


Redagavo Pongis 2008 Rugp. 7 23:08:13
2008 Rugp. 7 23:08:42          4 žinutė iš 10
Spausdinti pranešimą
aciu

Koks yra tavo vardas?

Redagavo Haked 2008 Rugp. 7 23:08:13
2008 Rugp. 7 23:08:41          5 žinutė iš 10
Spausdinti pranešimą
$userpoints=dbarray(dbquery("SELECT * FROM ".$db_prefix."users_points WHERE owner_id='".$userdata[user_id]."'"));

openside("Meniu");
?>
<tr>
<td class="side-body">

<table width="290" align="center" cellpadding="0" cellspacing="1">

<tbody><tr>
<td width="5" align="left">
<img src="/images/meniu/pagrindinis.gif" border="0">
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/index.php" class="white">Naujienos</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/phpBB3" class="white">Diskusijos</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/viewpage.php?page_id=7" class="white">IRC chat</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/photogallery.php" class="white">Jūsų nuotraukos</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/articles.php" class="white">Idomybės</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/downloads.php" class="white">Failų galerija</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/contact.php" class="white">Kontaktai</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/search.php" class="white">Paieška</a>
<br>


<img src="/images/meniu/pramogos.gif" border="0">
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/infusions/sf_gift_system/brows_gifts.php" class="white">Dovanok dovanas</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/infusions/roulette/index.php" class="white">Rusiška ruletė</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/infusions/wordscramble/wordscramble.php" class="white">Žodžių spelionė</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/infusions/aw_chess/index.php" class="white">Šachmatai</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/viewpage.php?page_id=7" class="white">Meilės kaukuliatorius</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/viewpage.php?page_id=5" class="white">Nemokami sms</a>

<br>
<br>
</td><td width="5" align="left">
<img src="/images/meniu/pateikimai.gif" border="0">
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/submit.php?stype=p" class="white">Pridėti nuotrauką</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/submit.php?stype=n" class="white">Pridėti naujieną</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/viewpage.php?page_id=11" class="white">Pridėti straipsnelį</a>
<br>

<img src="/images/meniu/pinigai.gif" border="0">
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/infusions/user_gold_panel/" class="white">Pervesti / Dovanoti</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/viewpage.php?page_id=8" class="white">Nusipirkti / Parduoti</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> Pinigų: <b>$userpoints[points_total]</b><br></a>
<br>

<img src="/images/meniu/kita.gif" border="0">
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/viewpage.php?page_id=6" class="white">Userbar'ai</a>
<br>
<img src="/themes/apipi/images/bullet.gif" border="0"> <a href="/viewpage.php?page_id=7" class="white">Parama</a>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</td>
</tr>
</tbody></table>
</td>

</tr>
<?
closeside();



2008 Rugp. 7 23:08:27          6 žinutė iš 10
Spausdinti pranešimą
kad jau tema apie tai kur man reikia pagalbos tai ir as prasysiu kitokios pagalbos, man reikia kad prisiregistravusiui nariui duotu pinigu pagal viena kodeli kodelis :
 //Start usergold addon
paygold($userdata['user_name'],$userdata['user_id'],$user_gold_reply);
//end usergold addon




Register.php failas :
<?php
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include LOCALE.LOCALESET."register.php";
include LOCALE.LOCALESET."user_fields.php";

if (iMEMBER) fallback("index.php");

if ($settings['enable_registration']) {

if (isset($activate)) {
   if (!preg_match("/^[0-9a-z]{32}$/", $activate)) fallback("index.php");
   $result = dbquery("SELECT * FROM ".$db_prefix."new_users WHERE user_code='$activate'");
   if (dbrows($result) != 0) {
      $data = dbarray($result);
      $user_info = unserialize($data['user_info']);
      $activation = $settings['admin_activation'] == "1" ? "2" : "0";
      $result = dbquery("INSERT INTO ".$db_prefix."users (user_name, user_password, user_email, user_hide_email, user_location, user_birthdate, user_aim, user_icq, user_msn, user_yahoo, user_web, user_theme, user_offset, user_avatar, user_sig, user_posts, user_joined, user_lastvisit, user_ip, user_rights, user_groups, user_level, user_status) VALUES('".$user_info['user_name']."', '".$user_info['user_password']."', '".$user_info['user_email']."', '".$user_info['user_hide_email']."', '', '0000-00-00', '', '', '', '', '', 'Default', '0', '', '', '0', '".time()."', '0', '".USER_IP."', '', '', '101', '$activation')");
      $result = dbquery("DELETE FROM ".$db_prefix."new_users WHERE user_code='$activate'");   
      opentable($locale['401']);
      if ($settings['admin_activation'] == "1") {
         echo "<center><br>\n".$locale['455']."<br><br>\n".$locale['453']."<br><br>\n</center>\n";
      } else {
         echo "<center><br>\n".$locale['455']."<br><br>\n".$locale['452']."<br><br>\n</center>\n";
      }
      closetable();
   } else {
      fallback("index.php");
   }
} else if (isset($_POST['register'])) {
   $error = "";
   $username = stripinput(trim(eregi_replace(" +", " ", $_POST['username'])));
   $email = stripinput(trim(eregi_replace(" +", "", $_POST['email'])));
   $password1 = stripinput(trim(eregi_replace(" +", "", $_POST['password1'])));
   
   if ($username == "" || $password1 == "" || $email == "") $error .= $locale['402']."<br>\n";
   
   if (!preg_match("/^[-0-9A-Z_@\s]+$/i", $username)) $error .= $locale['403']."<br>\n";
   
   if (preg_match("/^[0-9A-Z@]{6,20}$/i", $password1)) {
      if ($password1 != $_POST['password2']) $error .= $locale['404']."<br>\n";
   } else {
      $error .= $locale['405']."<br>\n";
   }
 
   if (!preg_match("/^[-0-9A-Z_\.]{1,50}@([-0-9A-Z_\.]+\.){1,50}([0-9A-Z]){2,4}$/i", $email)) {
      $error .= $locale['406']."<br>\n";
   }
   
   $email_domain = substr(strrchr($email, "@"), 1);
   $result = dbquery("SELECT * FROM ".$db_prefix."blacklist WHERE blacklist_email='".$email."' OR blacklist_email='$email_domain'");
   if (dbrows($result) != 0) $error = $locale['411']."<br>\n";
   
   $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_name='$username'");
   if (dbrows($result) != 0) $error = $locale['407']."<br>\n";
   
   $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_email='".$email."'");
   if (dbrows($result) != 0) $error = $locale['408']."<br>\n";
   
   if ($settings['email_verification'] == "1") {
      $result = dbquery("SELECT * FROM ".$db_prefix."new_users");
      while ($new_users = dbarray($result)) {
         $user_info = unserialize($new_users['user_info']);
         if ($new_users['user_email'] == $email) { $error = $locale['409']."<br>\n"; }
         if ($user_info['user_name'] == $username) { $error = $locale['407']."<br>\n"; break; }
      }
   }
   
   if ($settings['display_validation'] == "1") {
      if (!check_captcha($_POST['captcha_encode'], $_POST['captcha_code'])) {
         $error .= $locale['410']."<br />\n";
      }
   }
   
   $user_hide_email = isNum($_POST['user_hide_email']) ? $_POST['user_hide_email'] : "1";
   
   if ($settings['email_verification'] == "0") {
      $user_location = isset($_POST['user_location']) ? stripinput(trim($_POST['user_location'])) : "";
      if ($_POST['user_month'] != 0 && $_POST['user_day'] != 0 && $_POST['user_year'] != 0) {
         $user_birthdate = (isNum($_POST['user_year']) ? $_POST['user_year'] : "0000")
         ."-".(isNum($_POST['user_month']) ? $_POST['user_month'] : "00")
         ."-".(isNum($_POST['user_day']) ? $_POST['user_day'] : "00");
      } else {
         $user_birthdate = "0000-00-00";
      }
   }
   if ($error == "") {
      if ($settings['email_verification'] == "1") {
         require_once INCLUDES."sendmail_include.php";
         mt_srand((double)microtime()*1000000); $salt = "";
         for ($i=0;$i<=7;$i++) { $salt .= chr(rand(97, 122)); }
         $user_code = md5($email.$salt);
         $activation_url = $settings['siteurl']."register.php?activate=".$user_code;
         if (sendemail($username,$email,$settings['siteusername'],$settings['siteemail'],$locale['449'], $locale['450'].$activation_url)) {
            $user_info = serialize(array(
               "user_name" => $username,
               "user_password" => md5(md5($password1)),
               "user_email" => $email,
               "user_hide_email" => isNum($_POST['user_hide_email']) ? $_POST['user_hide_email'] : "1"
            ));
            $result = dbquery("INSERT INTO ".$db_prefix."new_users (user_code, user_email, user_datestamp, user_info) VALUES('$user_code', '".$email."', '".time()."', '$user_info')");
            opentable($locale['400']);
            echo "<center><br>\n".$locale['454']."<br><br>\n</center>\n";
            closetable();
         } else {
            opentable($locale['456']);
            echo "<center><br>\n".$locale['457']."<br><br>\n</center>\n";
            closetable();
         }
      } else {
         $activation = $settings['admin_activation'] == "1" ? "2" : "0";
         $result = dbquery("INSERT INTO ".$db_prefix."users (user_name, user_password, user_email, user_hide_email, user_location, user_birthdate, user_aim, user_icq, user_msn, user_yahoo, user_web, user_theme, user_offset, user_avatar, user_sig, user_posts, user_joined, user_lastvisit, user_ip, user_rights, user_groups, user_level, user_status) VALUES('$username', '".md5(md5($password1))."', '".$email."', '$user_hide_email', '$user_location', '$user_birthdate', '$user_aim', '$user_icq', '$user_msn', '$user_yahoo', '$user_web', '$user_theme', '$user_offset', '', '$user_sig', '0', '".time()."', '0', '".USER_IP."', '', '', '101', '$activation')");
         opentable($locale['400']);
         if ($settings['admin_activation'] == "1") {
            echo "<center><br>\n".$locale['451']."<br><br>\n".$locale['453']."<br><br>\n</center>\n";
         } else {
            echo "<center><br>\n".$locale['451']."<br><br>\n".$locale['452']."<br><br>\n</center>\n";
         }
         closetable();
      }
   } else {
      opentable($locale['456']);
      echo "<center><br>\n".$locale['458']."<br><br>\n$error<br>\n<a href='".FUSION_SELF."'>".$locale['459']."</a></div></br>\n";
      closetable();
   }
} else {
   if ($settings['email_verification'] == "0") {
      $theme_files = makefilelist(THEMES, ".|..", true, "folders");
      array_unshift($theme_files, "Default");
      $offset_list = "";
      for ($i=-13;$i<17;$i++) {
         if ($i > 0) { $offset="+".$i; } else { $offset=$i; }
         $offset_list .= "<option".($offset == "0" ? " selected" : "").">$offset</option>\n";
      }
   }
   opentable($locale['400']);
   echo "<center>".$locale['500']."\n";
   if ($settings['email_verification'] == "1") echo $locale['501']."\n";
   echo $locale['502'];
   if ($settings['email_verification'] == "1") echo "\n".$locale['503'];
   echo "</center><br>
<table align='center' cellpadding='0' cellspacing='0'>
<form name='inputform' method='post' action='".FUSION_SELF."' onSubmit='return ValidateForm(this)'>
<tr>
<td class='tbl'>".$locale['u001']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'><input type='text' name='username' maxlength='30' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u002']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'><input type='password' name='password1' maxlength='20' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u004']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'><input type='password' name='password2' maxlength='20' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u005']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'><input type='text' name='email' maxlength='100' class='textbox' style='width:200px;'></td>
</tr>
<tr>
<td class='tbl'>".$locale['u006']."</td>
<td class='tbl'><input type='radio' name='user_hide_email' value='1'>".$locale['u007']."
<input type='radio' name='user_hide_email' value='0' checked>".$locale['u008']."</td>
</tr>\n";
   if ($settings['display_validation'] == "1") {
      echo "<tr>\n<td class='tbl'>".$locale['504']."</td>\n<td class='tbl'>";
      echo make_captcha();
      echo "</td>
</tr>
<tr>
<td class='tbl'>".$locale['505']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'><input type='text' name='captcha_code' class='textbox' style='width:100px'></td>
</tr>\n";
   }
   if ($settings['email_verification'] == "0") {
   }
   echo "
<tr>
<td align='center' colspan='2'><br>
<input type='submit' name='register' value='".$locale['506']."' class='button'>
</td>
</tr>
</form>
</table>";
echo "<center><table>
<tr>
<td>
<center><b>Kai užsiregistruosite, redaguokite profilį ir uzpildykite visus laukelius, kad kiti žinotu informacija apie jus.</b></center><br>
<center>Sėkmes naudojant Frends Pažinčių portalą</center>
</td>
</tr></table></center>";
   closetable();
   echo "<script language='JavaScript'>
function ValidateForm(frm) {
   if (frm.username.value==\"\") {
      alert(\"".$locale['550']."\");
      return false;
   }
   if (frm.password1.value==\"\") {
      alert(\"".$locale['551']."\");
      return false;
   }
   if (frm.email.value==\"\") {
      alert(\"".$locale['552']."\");
      return false;
   }
}
</script>\n";
}

} else {
   opentable($locale['400']);
   echo "<center><br>\n".$locale['507']."<br><br>\n</center>\n";
   closetable();
}

require_once "side_right.php";
require_once "footer.php";
?>





Redagavo Langas 2008 Rugp. 8 11:08:32
2008 Rugp. 8 11:08:53          7 žinutė iš 10
Spausdinti pranešimą
Padėkite Prašau labaimerkia akį

2008 Rugp. 8 12:08:33          8 žinutė iš 10
Spausdinti pranešimą
Tai kaip readme.txt parasyta paskaityk sudeliokm ir veiks viskas


www.stylingparts.eu-viskas jūsų automobiliams už geriausią kainą.
2008 Rugp. 9 11:08:58          9 žinutė iš 10
Spausdinti pranešimą
readme faile nera padaryta kad prisireginus duotu bapkiu, todel tiliau tumerkia akį šypsosi

2008 Rugp. 9 12:08:39          10 žinutė iš 10
Spausdinti pranešimą
padėkit prašau labai, negi php nemokat ? žliumbia

Peršokti į forumą: