Registrazione chiusa
-
-
Non lo capito.. puoi essere più preciso?:?
-
canreg esiste e controlla se nella tabella ibwf_settings il valore del record con nome 'reg' è uguale a 1, probabilmente nella tua tabella è =0 prova a metterlo = 1:
[COLOR=#000000][COLOR=#ff8000]///////////////////////////if registration is allowed [/COLOR][COLOR=#007700]function [/COLOR][COLOR=#0000bb]canreg[/COLOR][COLOR=#007700]() { [/COLOR][COLOR=#0000bb]$getreg [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]mysql_fetch_array[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]mysql_query[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"SELECT value FROM ibwf_settings WHERE name='reg'"[/COLOR][COLOR=#007700])); if([/COLOR][COLOR=#0000bb]$getreg[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000bb]0[/COLOR][COLOR=#007700]]==[/COLOR][COLOR=#dd0000]'1'[/COLOR][COLOR=#007700]) { return [/COLOR][COLOR=#0000bb]true[/COLOR][COLOR=#007700]; }else { return [/COLOR][COLOR=#0000bb]false[/COLOR][COLOR=#007700]; } }[/COLOR][/COLOR]esegui la query sotto:
UPDATE ibwf_settings SET value=1 WHERE name='reg'
-
A si grazie non l'avevo vista. Alora, nella cartella database c'è
value text latin1_swedish_ciNocosa dovrei fare? non sono molto pratico
se mi puoi guidare passo dopo passo. Mai ho provato a settare. Da dove devo cominciare? -
più che "non pratico" direi che sei a digiuno

Non posso aiutarti passo passo, spiacente, sarebbero mille passi ora che arrivi alla soluzione.ti dico in due passi cosa fare il resto ci arrivi da te se riesci.
- apri phpmyadmin (accedi al tuo database)
- lanci l'update che ti ho dato prima
in bocca al lupo.
-
lanci... nel senso che me lo dovrei salvare nel mio pc.. e poi importare nel mio database?? Gia' ci sono nel mio database.
-
lanci significa cliccare sul tastino SQL di phpmyadmin e incollare nel campo di testo
UPDATE ibwf_settings SET value=1 WHERE name='reg'poi invii e se il ragionamento è giusto dovrebbe fungere

-
Grazie massi.. funziona:)
-
Mi sono registrato con successo,, mi sono pure loggato e quando ento mi dice che non sono loggato o la sessione è scaduta.. penso che disogna impostare la cartella del database, come i messaggi precedenti.. metto il codice
////////////////////////////////////////////IS LOGGED? function islogged($sid) { //delete old sessions first $deloldses = mysql_query("DELETE FROM ibwf_ses WHERE expiretm<'".time()."'"); //does sessions exist? $sesx = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_ses WHERE id='".$sid."'")); if($sesx[0]>0) { if(!isuser(getuid_sid($sid))) { return false; } //yip it's logged in //first extend its session expirement time $xtm = time() + (60*getsxtm()); $extxtm = mysql_query("UPDATE ibwf_ses SET expiretm='".$xtm."' WHERE id='".$sid."'"); return true; }else{ //nope its session must be expired or something return false; } } ////////////////////////Get user nick from session id function getnick_sid($sid) { $uid = mysql_fetch_array(mysql_query("SELECT uid FROM ibwf_ses WHERE id='".$sid."'")); $uid = $uid[0]; return getnick_uid($uid); } ////////////////////////Get user id from session id function getuid_sid($sid) { $uid = mysql_fetch_array(mysql_query("SELECT uid FROM ibwf_ses WHERE id='".$sid."'")); $uid = $uid[0]; return $uid; } -
Mi sono registrato con successo,, mi sono pure loggato e quando ento mi dice che non sono loggato o la sessione è scaduta.. penso che disogna impostare la cartella del database, come i messaggi precedenti.. metto il codice
////////////////////////////////////////////IS LOGGED? function islogged($sid) { //delete old sessions first $deloldses = mysql_query("DELETE FROM ibwf_ses WHERE expiretm<'".time()."'"); //does sessions exist? $sesx = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_ses WHERE id='".$sid."'")); if($sesx[0]>0) { if(!isuser(getuid_sid($sid))) { return false; } //yip it's logged in //first extend its session expirement time $xtm = time() + (60*getsxtm()); $extxtm = mysql_query("UPDATE ibwf_ses SET expiretm='".$xtm."' WHERE id='".$sid."'"); return true; }else{ //nope its session must be expired or something return false; } } ////////////////////////Get user nick from session id function getnick_sid($sid) { $uid = mysql_fetch_array(mysql_query("SELECT uid FROM ibwf_ses WHERE id='".$sid."'")); $uid = $uid[0]; return getnick_uid($uid); } ////////////////////////Get user id from session id function getuid_sid($sid) { $uid = mysql_fetch_array(mysql_query("SELECT uid FROM ibwf_ses WHERE id='".$sid."'")); $uid = $uid[0]; return $uid; }
Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.
Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.
Con il tuo contributo, questo post potrebbe essere ancora migliore 💗
Registrati Accedi