vi scongiuro.... nn ce nessuno che puo aiutarmi??
vi scongiuro.... nn ce nessuno che puo aiutarmi??
nosfe sn fiduciosissimo in te... so che lo sai cosa devo fare...![]()
cmq ho trovato la parte dove descrive ...$user_currently_loged_plain...
Codice PHP:// and a variable where u get the plain username (only use for scripting!)
$user_currently_loged_plain = @$HTTP_SESSION_VARS["id"];
if ($user_current_level < 0){
$user_current_Rank = "ADMIN";}
else{
$user_current_Rank = @$ranks[$user_current_level];
}
inoltre ti so dire anche altre cose
1)
Name of currently logged in user --- <?PHP echo ($user_currently_loged); ?>
2)
The rank of the currently logged in user --- <?PHP echo ($user_current_Rank); ?>
3)
The accesslevel of the current user --- <?PHP echo ($user_current_level); ?>
4)
The number of new PM's --- <?PHP echo ($user_current_ammount_new); ?>
scusa la domanda, forse è un po' stupida... Le variabili che ottieni con $HTTP_GET_VARS fanno parte della querystring oppure sono variabili di altro genere a me sconosciute??
se fanno parte della querystring, puoi provare a sostituire $HTTP_GET_VARS con $_REQUEST... anche se non so se risolve qualcosa!
jerry sono ancora convinto che le register_globals siano su off e che quindi non ti prende le get con http_get_vars.
Fai una cosa, fai l'eco della query di cancellazione e vediamo cosa esce.
Questa:
Codice PHP:function deletemessage($messageID, $box){
global $DBprefix;
// make a correct query
if ($box == "Outbox"){
$query = "DELETE from ".$DBprefix.$box." WHERE messageID='$messageID' AND sender='$user_currently_loged_plain'";
}else{
$query = "DELETE from ".$DBprefix.$box." WHERE messageID='$messageID' AND adres='$user_currently_loged_plain'";
}
//aggiungi qui
echo $query;
$query = "";
$result = mysql_query($query);
scusa intendo di non avere capito alla perfezzionevista la mia probabileinesperienza
![]()
se tu intendi le $_get le ho cambiate....![]()
diciamo che sn di difficile comprensione e non ho per quanto mi dispiace capito come fare le get le ho cambiate ma solo al inizio del documento non so se devo cambiarle anche in altri posti...??
da cosi:
li ho messi cosi:Codice PHP:$action = @$HTTP_GET_VARS["action"];
$messageID = @$HTTP_GET_VARS["messageID"];
$box = @$HTTP_GET_VARS["box"];
$sortby = @$HTTP_GET_VARS["sortby"];
$direction = @$HTTP_GET_VARS["direction"];
$toAdres = @$HTTP_POST_VARS["adres"];
$title = @$HTTP_POST_VARS["title"];
$message = @$HTTP_POST_VARS["message"];
$adres = @$HTTP_GET_VARS["adres"];
intendi la configurazione del database??Codice PHP:$action = @$_GET["action"];
$messageID = @$_GET["messageID"];
$box = @$_GET["box"];
$sortby = @$_GET["sortby"];
$direction = @$_GET["direction"];
$toAdres = @$_GET["adres"];
$title = @$_GET["title"];
$message = @$_GET["message"];
$adres = @$_GET["adres"];
se non ho capito male tela posto...
Codice PHP:<?PHP
// These variables are needed to connect to the database, if your not sure about these data contact your hosting company.
// since this is VERY important to the log-in system
// if you are using a local system to to test, the server is (almost) always localhost.
// for tripod users: don't fill in a username / password. Only your databasename
// for tripod users: username_country_db so that would be (example) utimer_nl_db
// for tripod users: if you are unsure check in the FAQ of tripod
$server = "localhost"; // often localhost
$username = "********"; // Your MySQL server username
$password = "********"; // Your MySQL server password
$database = "********"; // If you fill in nothing database 'members' will be used. If 'members' doesn't exist it will be created.
$DBprefix = "ALS"; // the prefix for the tables in the database (can be left blank)
// The ranks for the members. The first in the list is userlevel is 1, every item after (seperate with comma's) increases with one.
// so the example below is: 1 = newbie, 2=new member, 3=member, 4=high member, 5=very high member, ect
$ranks = array(
1=>"newbie",
2=>"new member",
3=>"member",
4=>"high member",
5=>"very high member",
6=>"supreme member",
7=>"ultra member",
8=>"godlike member",
9=>"god member",
10=>"low god",
11=>"medium god",
12=>"high god",
13=>"very high god",
14=>"supreme god",
15=>"ultra god",
16=>"perfect"
);
// script options:
$usernameLengthMIN = 1; // Sets the minium nubmer of characters in the username
$usernameLengthMAX = 20; // Sets the maxium number of characters in the username (max 20 chars!)
$passwordLengthMIN = 3; // Sets the minium nubmer of characters in the password
$passwordLengthMAX = 8; // Sets the maxium number of characters in the password (max 20 chars!)
$UseMailConfirm = true; // Only set this to false if your host does not support mail()
$AllowForgotPassword = true; // Only set this to false if your host does not support mail()
$UsernameValCharOnly = true; // If set on true the user can only use usernames with A to Z, a to z, 0 to 9
$passwordValCharOnly = true; // If set on true the user can only use passwords with A to Z, a to z, 0 to 9
$allowChangePassword = true; // If set on false the user cant change passwords
$makeAdminOnlyActivate = false; // Set this to true if you want to activate al accounts by hand throught the admin screen
$allowResend = true; // Set this to false if you don't want the users to be able to have the activation code resend
// Note that the form will be visible anyway and that if $UseMailConfirm = false if wont be send either
$TripodSupport = false; // Only set this to true if you are hosted on tripod.
// ErrorStrings:
$couldNotConnectMysql = "Could not connect MySQL
\n please check your settings in config.php";
$couldNotOpenDatabase = "Could not open database
\n please check your settings in config.php";
$disabledFeatures = "The adminstrator of this site has disabled this feature";
$incorrectLogin = "Incorrect login";
$underAttackReLogin = "This account was under attack. Therefore it was locked. To terminate the lock log-in with you correct loginname and password. After this log-in the lock will be terminated and you can you use our account as normal
NOTE: make sure you do not make any type errors. This would activate the lock again.";
$underAttackPleaseWait = "This account is under attack. Please wait an until the account is released again.";
$accountNotActivated = "This account has not been activated yet.";
$incorrectUserMailaders = "The username / e-mail-combination you entered is incorrect.";
$activationCodeHasBeenResend = "Your activationcode has been resend to your mailadres.";
$incorrectUserActcode ="The username/activation-combination you entered is not correct. Please try again.";
// The content of the activation email
// also possible is to put a link in that message like :
// [url]http://[/url] your url /activate.php?username=$username1&actnum=$actnum
// this would allow the user to direcly submit there activation without having to enter
// al the data again in the activation form.
// use %p to print the activation number, use %a if you want the use the % sign
$email_message_content = "Your activation number: %p";
// also set the title of the message
$email_message_title = "Login sytem";
// and we put the sender in this mail.
// syntax: "From: YOUR SENDER"
// note this will also be used for the forgot password mail.
$email_message_header = "From: Sign-up script";
// the content of the forgot password mail:
// use %p to print the password, use %a if you want to use the % sign
$message_forgot_password = "Your password:\n %p";
// and here you can give a title (subject) for the forgot password mail.
$title_forgot_password = "Password request";
// +---------------------------------------------------------------------------------------------------------+ //
// +--------------------------- Below this line you do not need to edit the code! ---------------------------+ //
// +---------------------------------------------------------------------------------------------------------+ //
// if the prefix is not empty add an _ (underscore)
if ($DBprefix != ""){$DBprefix = $DBprefix . "_";}
// Code to make sure that the $database field was filled and code to connect to the database
if ($database == ""){
// Check it the database exist
$query = "use members";
// If this query is succesfull, and returns a 1. this means that the database members can be used.
// If it returns 'null' then it doesn't exist.
if (mysql_query($query) == null){
//if it doesn't exist we create it and connect to it.
$query = "CREATE DATABASE members";
$result = mysql_query($query);
if ($result == 1){
$conn = mysql_connect($server,$username,$password) or die ($couldNotConnectMysql);
mysql_select_db($database,$conn) or die ($couldNotOpenDatabase);
}else{echo "Error while creating database (Errornumber ". mysql_errno() .": \"". mysql_error() ."\")
";}
}
else{
// It already exist so we will connect to it.
$database= "members";
$conn = mysql_connect($server,$username,$password) or die ($couldNotConnectMysql);
mysql_select_db($database,$conn) or die ($couldNotOpenDatabase);
}
}
else{
// connect or show an error.
$conn = mysql_connect($server,$username,$password) or die ($couldNotConnectMysql);
mysql_select_db($database,$conn) or die ($couldNotOpenDatabase);
}
?>
devo dire che non ce un documento sql che richiude le tabelle ma nel documento di installazione si trova qualche informazione guarda se possono servirti?? fammi sapere
Codice PHP:
<?PHP
// check if we have to update or even preupdate:
$action = $HTTP_GET_VARS["action"];
$preUpdate = $HTTP_GET_VARS["preUpdate"];
$special = $HTTP_GET_VARS["special"];
// let the config.php connect to the database.
include("config.php");
// do if pre-update if needed
if ($preUpdate == true){
$queryX = "ALTER TABLE signup MODIFY actnum VARCHAR(20)";
$resultX = mysql_query($queryX);
// check it it was succesfull
if ($resultX == 1){echo "signup Table succesfully altered.
";}
// if it wasn't succesfull print the errornumer (with mysql_errno()) and an description of the error (with mysql_error())
else{echo "Error while altering signup table (Errornumber ". mysql_errno() .": \"". mysql_error() ."\")
";}
}
// if we update we rename the table... else we create one
if ($action == "update"){
$query = "RENAME TABLE signup TO ".$DBprefix."signup";
$result = mysql_query($query);
// check it it was succesfull
if ($result == 1){echo "signup Table succesfully renamed.
";}
// if it wasn't succesfull print the errornumer (with mysql_errno()) and an description of the error (with mysql_error())
else{echo "Error while renaming signup table (Errornumber ". mysql_errno() .": \"". mysql_error() ."\")
";}
}
else{
// make the signup table
$query = "CREATE TABLE ".$DBprefix."signup(username VARCHAR(20), password VARCHAR(20), mailadres VARCHAR(100), actnum VARCHAR(20), userlevel TINYINT, signupdate VARCHAR(16), lastlogin VARCHAR(16), lastloginfail BIGINT,numloginfail TINYINT)";
$result = mysql_query($query);
// check it it was succesfull
if ($result == 1){echo "signup Table succesfully created.
";}
// if it wasn't succesfull print the errornumer (with mysql_errno()) and an description of the error (with mysql_error())
else{echo "Error while creating signup table (Errornumber ". mysql_errno() .": \"". mysql_error() ."\")
";}
}
// create the inbox
$query4 = "CREATE TABLE `".$DBprefix."inbox`(`messageID` SMALLINT NOT NULL AUTO_INCREMENT,`adres` VARCHAR(20) NOT NULL ,`sender` VARCHAR(20) NOT NULL ,`DateRecieved` DATETIME NOT NULL ,`title` VARCHAR(30) NOT NULL ,`message` TEXT NOT NULL,`isRead` TINYINT NOT NULL,PRIMARY KEY ( `messageID` ));";
$result4 = mysql_query($query4);
// check it it was succesfull
if ($result4 == 1){echo "inbox Table succesfully created.
";}
// if it wasn't succesfull print the errornumer (with mysql_errno()) and an description of the error (with mysql_error())
else{echo "Error while creating inbox table (Errornumber ". mysql_errno() .": \"". mysql_error() ."\")
";}
// create the old messages folder
$query5 = "CREATE TABLE `".$DBprefix."OldMessages`(`messageID` SMALLINT NOT NULL AUTO_INCREMENT,`adres` VARCHAR(20) NOT NULL ,`sender` VARCHAR(20) NOT NULL ,`DateRecieved` DATETIME NOT NULL ,`title` VARCHAR(30) NOT NULL ,`message` TEXT NOT NULL,`isRead` TINYINT NOT NULL,PRIMARY KEY ( `messageID` ));";
$result5 = mysql_query($query5);
// check it it was succesfull
if ($result5 == 1){echo "oldMessages Table succesfully created.
";}
// if it wasn't succesfull print the errornumer (with mysql_errno()) and an description of the error (with mysql_error())
else{echo "Error while creating oldMessages table (Errornumber ". mysql_errno() .": \"". mysql_error() ."\")
";}
// create the outbo folder
$query6 = "CREATE TABLE `".$DBprefix."Outbox`(`messageID` SMALLINT NOT NULL AUTO_INCREMENT,`adres` VARCHAR(20) NOT NULL ,`sender` VARCHAR(20) NOT NULL ,`DateSend` DATETIME NOT NULL ,`title` VARCHAR(30) NOT NULL ,`message` TEXT NOT NULL,PRIMARY KEY ( `messageID` ));";
$result6 = mysql_query($query6);
// check it it was succesfull
if ($result6 == 1){echo "outbox Table succesfully created.
";}
// if it wasn't succesfull print the errornumer (with mysql_errno()) and an description of the error (with mysql_error())
else{echo "Error while creating outbox table (Errornumber ". mysql_errno() .": \"". mysql_error() ."\")
";}
// create the news database
$query7 = "CREATE TABLE `".$DBprefix."news`(`newsID` SMALLINT NOT NULL AUTO_INCREMENT,`title` VARCHAR(20) NOT NULL ,`message` TEXT NOT NULL ,`poster` VARCHAR(30) NOT NULL ,`postDate` DATETIME NOT NULL,PRIMARY KEY ( `newsID` ));";
$result7 = mysql_query($query7);
// check it it was succesfull
if ($result7 == 1){echo "news Table succesfully created.
";}
// if it wasn't succesfull print the errornumer (with mysql_errno()) and an description of the error (with mysql_error())
else{echo "Error while creating news table (Errornumber ". mysql_errno() .": \"". mysql_error() ."\")
";}
// we only have to create an admin account on fresh install... not after an update
if ($action != "update"){
// check if there isn't an admin account already.
$query3 = "Select * from ".$DBprefix."signup where username='admin'";
$result3 = mysql_query($query3);
if ($row3 = mysql_fetch_array($result3)){
echo "Error while creating admin account, it already exist.
";
}
else
{
// determin the time
$datetime = date("d-m-Y G:i ");
// create the admin account
$query2 = "INSERT INTO ".$DBprefix."signup VALUES ('admin','admin','-','0','-1','$datetime','0','0','0')";
$result2 = mysql_query($query2);
// check it it was succesfull
if ($result2 == 1){echo "Admin account succesfully created.
";}
// if it wasn't succesfull print the errornumer (with mysql_errno()) and an description of the error (with mysql_error())
else{echo "Error while creating admin account (Errornumber ". mysql_errno() ." :\"". mysql_error() ."\")
";}
}
}else{
// the query was succesfull, this because something that is already correct, can't fail :)
$result2 == 1;
}
// Print htat the installation is done if so, else print a failure message
if ($result == 1 && $result2 == 1 && $result4 == 1 && $result5 == 1 && $result6 == 1 && $result7 == 1){echo "Installation succesfull!";}else
{echo "There where some errors while installing Advance Login System";}
echo "
[b] DO NOT FORGET TO REMOVE THIS FILE AFTER THE INSTALLATION!!! [/b]";
?>
xke ti da tanti errori?? vuol dire che lo script è sbagliato??![]()
cn sn gli arry???
mi dovete dare un po di recupero ghgh
si volentieri spero che cosi tu possa darmi una mano + grande!! almeno spero!!![]()
eccolo [http://derryk.altervista.org/original biboh.rar]
devi copiare ed incollare il link seno nn funziona
se ti do un sito dv funzia che faccia mi faresti???