Parašė Noyz· 2010 Bal. 10 13:04:01
#9
Padėkit : meta tokį.
Warning: include(local/Lithuanian/anketaLT.php) [function.include]: failed to open stream: No such file or directory in /home/varskenas/domains/cshata.net/public_html/anketa.php on line 7
Warning: include() [function.include]: Failed opening 'local/Lithuanian/anketaLT.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/varskenas/domains/cshata.net/public_html/anketa.php on line 7
anketa.php :
<?php
session_start();
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include BASEDIR."local/Lithuanian/anketaLT.php";
if(iMEMBER){
$ip=getenv('REMOTE_ADDR');
$time=date("Y-m-d H:i:s");
$email=$userdata['user_email'];
$web=$userdata['user_web'];
$sk=$userdata['user_aim'];
// Gavëjo ID pakeiskite pagal jûsø poreikius. SuperAdminas daþniausiai bûna ID 1
$gavejoID = '1';
//MOD Created by Exz0sT`. Skype: marius-xp v.2.0
if(!$puslapis){
opentable ("".$locale['001']."");
echo "<br><br><br>
<br><br><center><h3>".$locale['002']."</h3><br></center><br>
";
echo "
<form name='siustiZem' method='post' action='anketa.php?puslapis=siusti'>
<font color='red'>*</font> <b>".$locale['004']."<b><br>
<input type='radio' name='tipas' value='banneris'> ".$locale['005']."
<br>
<input type='radio'
name='tipas' value='logo'> ".$locale['006']."
<br>
<input type='radio'
name='tipas' value='kita'> ".$locale['007']."
<table>
<tr><td>
</td>
<table border='0'>
<tr><td>
<font color='red'>*</font> <b>WEB Puslapis:</b> <i>(be http://)</i>
</td><td>
<input class='adresas' value='$web' onclick=\"this.value=''\" name='WEB' type='text'>
</td></tr><tr><td>
<font color='red'>*</font> <b>El.Paðtas:</b>
</td><td>
<input type='text' value='$email' onclick=\"this.value=''\" name='emale' maxlength='35' class='style7' style='width:180px;'>
</td></tr><tr><td>
<font color='red'>*</font> <b>Skype ID:</b>
</td><td>
<input type='text' value='$sk' onclick=\"this.value=''\" name='Skype' maxlength='15' class='style7' style='width:120px;'>
</td></tr>
<tr><td>
<font color='red'>*</font> <b>Jûsø IP:</b>
</td><td>
<input disabled='disabled' type='text' name='ip' value='$ip' maxlength='20' class='style7' style='width:120px;'>
</td></tr>
<tr><td>
<font color='red'>*</font> <b>".$locale['008']."</b> <h6>".$locale['009']."</h6>
</td>
<td><textarea name='info' class='style7' rows='5' cols='30' class='textbox'></textarea></td>
</td></tr><tr><td>
</tr><tr><td colspan='2' align='center'><br>
<img src='/includes/akneta_captcha/CaptchaSecurityImages.php?width=120&height=40&characters=5' /><br />
<label for='security_code'><font color='red'>*</font> Saugos kodas:<br></label><input id='security_code' name='security_code' type='text' /><br />
<form>
<fieldset>
<legend>Taisyklës:</legend><font color='red'>*</font> Paþymëtus laukelius, bûtina ávesti!
<br><br>".$locale['reikalavimai']."
</fieldset>
</form>
".$locale['010']."
<input type='checkbox' name='taip'><br>
<input type='submit' name='siusti' style='width:70px' value='Siûsti' class='button'><input type='reset' value='Atstatyti' class='button'></td></table><br>
</form>";
closetable();}
if($puslapis == 'siusti'){
if(($_SESSION['security_code'] == $_POST['security_code']) && (!empty($_SESSION['security_code'])) ) {
unset($_SESSION['security_code']);
} else {
$err[]="<font color='red'><b>Neteisingas saugos kodas!</font></b>"; }
if(empty($WEB)){ $err[]="Neįvestas WEB Puslapis"; }
if(empty($tipas)){ $err[]="Nepasirinktas tipas"; }
if(empty($emale)){ $err[]="Neįvestas El.Paðtas"; }
if(empty($Skype)){ $err[]="Neįvestas Skype ID"; }
if(empty($info)){ $err[]="Neįvesta Informacija"; }
if(empty($taip)){ $err[]="Jûs nesutikote, kad atitinkate reikalavimus";
}
if (!$err){
$message = '
<b>Puslapis:</b> <b><a href="http://'.$WEB.'">'.$WEB.'</a></b>\n
<b>El. Paðtas:</b> <b><a href="mailto:'.$emale.'">'.$emale.'</a></b>\n
<b>Skype ID:</b> <b><a href="skype:'.$Skype.'?chat">'.$Skype.'</a></b>\n
<b>Siuntëjo IP:</b> '.$ip.'\n
<b>Tipas:</b> '.$tipas.'\n
<b>Informacija:</b> '.$info.'\n
<b>Laikas:</b> '.$time.'\n ';
dbquery("INSERT INTO ".$db_prefix."messages (message_to, message_from, message_subject, message_message, message_smileys, message_read, message_datestamp, message_folder) VALUES('".$gavejoID."','".$userdata['user_id']."','Uþpildyta anketa!','".$message."','0','0','".time()."','0')");
opentable ("".$locale['013']."");
echo "<fieldset><legend>Anketa iðsiusta sëkmingai:</legend><br><br><center><img src='".BASEDIR."images/anketa/sekmingai.png' alt='Sëkmingai'><br><br><br>".$locale['012']."<br>[ <a href='".BASEDIR."index.php'>Sugryþti á pagrindidná puslapá</a> ]<center></fieldset><br><br><br></span>";
closetable();
} else {
opentable ("".$locale['014']."");
for ($i=0;$i<count($err);$i++) {
echo "-".$err[$i]."<br/>"; }
echo '<br/>[ <a href="anketa.php?"><b> Grižti</b></a> ]';
closetable();
}
}
}else{
redirect(BASEDIR.'index.php');}
require_once "side_right.php";
require_once "footer.php";
?>
Redagavo WyPuk· 2010 Bal. 10 13:04:51