Mam oto taki register w webspela. I jest problem a ja jestem lajkiem (IMG:
style_emoticons/default/biggrin.gif) Otóż jest napis np. Username ( tylko go nie widać ponieważ litery są białe, a tło tabelki też jest białe...) i 2gi problem jest taki że w ogóle nie ma security code. I moja prośba do Was. Co mam zmienić aby te litery miały czarny kolor i w którym pliku to mam zmienić, oraz proszę o usunięcie danych z pliku register.php tak aby nie trzeba było wpisywać tego kodu. Z góry dziękuję i pozdrawiam (IMG:
style_emoticons/default/biggrin.gif) a i jeżeli chcecie zobaczyć szablon strony to
www/bluebunny.pl Wejdźcie do rejestracji i zobaczcie (IMG:
style_emoticons/default/biggrin.gif)
<?php
/*
########################################################################
# #
# Version 4 / / / #
# -----------__---/__---__------__----__---/---/- #
# | /| / /___) / ) (_ ` / ) /___) / / #
# _|/_|/__(___ _(___/_(__)___/___/_(___ _/___/___ #
# Free Content / Management System #
# / #
# #
# #
# Copyright 2005-2006 by webspell.org #
# #
# visit webSPELL.org, webspell.info to get webSPELL for free #
# - Script runs under the GNU GENERAL PUBLIC LICENSE #
# - It's NOT allowed to remove this copyright-tag #
# #
# Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at), #
# Far Development by Development Team - webspell.org #
# #
# visit webspell.org #
# #
########################################################################
*/
eval ("\$title_register = \"".gettemplate
("title_register")."\";");
if($_POST['save']) {
//register_globals = off
$pwd1 = $_POST['pwd1'];
$pwd2 = $_POST['pwd2'];
$mail = $_POST['mail'];
$country = $_POST['country'];
$CAPCLASS = new Captcha;
if(!$CAPCLASS->check_captcha($_POST['captcha'], $_POST['captcha_hash'])) $error[]="The security code was wrong!";
// prüfung username
$ergebnis = safe_query("SELECT * FROM ".PREFIX."user WHERE username = '$username' ");
if($num) $error[]="username already in use!";
// prüfung mail
$ergebnis = safe_query("SELECT * FROM ".PREFIX."user WHERE email = '$mail' ");
if($num) $error[]="mailadress already in use!";
// prüfung nickname
$ergebnis = safe_query("SELECT * FROM ".PREFIX."user WHERE nickname = '$nickname' ");
if($num) $error[]="nickname already in use!";
if(!(strlen(trim($username)))) $error[]="you have to enter a username!"; elseif( strlen(trim($username)) > 30
) $error[]="your username is too long! (max 30 chars)";
// prüfung passwort
if($pwd1 == $pwd2) {
if(!(strlen(trim($pwd1)))) $error[]="you have to enter a password!"; }
else $error[]="your repeated password is not valid!";
// prüfung e-mail
$sem = '^[a-z0-9_\.-]+@[a-z0-9_-]+\.[a-z0-9_\.-]+$';
if(!(eregi($sem, $mail))) $error[]="your e-mail is not valid!";
// prüfung nickname
if(!(strlen(trim($nickname)))) $error[]="you have to enter your nickname!";
echo'<b>There has been errors!</b><br><br>'; foreach($error as $err) {
}
echo'<br><br><input type="button" class="button" onClick="java script:history.back()" value="Back">'; }
else {
// insert in db
$activationkey = 1;
safe_query("INSERT INTO `".PREFIX."user` (`registerdate`, `lastlogin`, `username`, `password`, `nickname`, `email`, `newsletter`, `activated`, `country`) VALUES ('$registerdate', '$registerdate', '$username', '$md5pwd', '$nickname', '$mail', '1', '".$activationkey."', '$country')");
// insert in user_groups
safe_query("INSERT INTO ".PREFIX."user_groups ( userID ) values('$insertid' )");
echo "Your registration was successful, you are able to login now!";
}}
elseif($_GET['key']) {
safe_query("UPDATE `".PREFIX."user` SET activated='1' WHERE activated='".$_GET['key']."'");
if(mysql_affected_rows()) redirect
('index.php?site=login','Your account has been activated successfully.<br>You are now able to login.'); else redirect('index.php?site=login','Your activation key ist wrong!');
}
else {
$bg1=BG_1;
$bg2=BG_2;
$bg3=BG_3;
$bg4=BG_4;
$CAPCLASS = new Captcha;
$captcha = $CAPCLASS->create_captcha();
$hash = $CAPCLASS->get_hash();
$CAPCLASS->clear_oldcaptcha();
eval ("\$register = \"".gettemplate
("register")."\";"); }
?>
pomo
że ktoś?
Ten post edytował batman 30.07.2010, 14:03:20
Powód edycji: [batman]: Proszę nie podbijać tematu, inaczej powędruje do kosza.