Originally posted by Storm
View Post
Lavalair patchwork
Collapse
This is a sticky topic.
X
X
-
It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
-
Originally posted by ori View Postits just more secure your not trying to create sessions on every page its just checking the session and if banned
when block someone to access you`r website, give him redirect (with headers) to session delete. block check only in login. delete everywhere else, cause its junk code then. no more safety with that, only useless rows. its like to create a new section and never use it.Nous Ne Dansos Pas, Nous Sommes Le Danse.!
Comment
-
This is nice but...
If you want to change lavalair script how about to recode it to PHP4 or PHP5 ?clean all DEPRECATED functions?clean all crap css from script an move that to css file not in script?how about to move damn forum code from index.php to forum php?
Provably you got it.here how I can see everyone just inventing hot water which is invented long ago .I have lava in php4,css3 and jquery,run like bullet and no holes so main problem here is that most of you are to lazy to inpruve script ,just waiting who will do it for your serlf and you will just put your name in footer copyright .
Lava code is simple to learn and so far you can invented 100 of new modules for it but you did not, still smashing your heads how to protect it.
But that is just my opinion and dont take it for serious ....admins feel free to delete this post like you did with other one few days ago ,I want get angry becouse I know the truth is allways hurting peoples feelings
Comment
-
Originally posted by stefan998 View PostDoes anyone knows how to protect admin from banning
PHP Code:$uid = getuid_sid($sid);
$perm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$uid."'"));
$trgtperm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE name='".$user."'"));
if($trgtperm>$perm){
echo "<b><img src="../images/notok.gif" alt="x"/><br/>Error!!!<br/>Permission Denied...</b><br/>";
echo "<br/>U Cannot Ip-ban $user<br/>";
echo "<a href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt=""/>Home</a>";
echo "</p>";
}else
{
your other codes goes here
}
Last edited by thunderwap; 21.05.15, 04:45.sigpic
WANT GOOD CHEAP HOSTING WITH 99% UPTIME? THEN PM ME FOR DETAILS!!
Comment
-
Originally posted by thunderwap View Post
use this code in admnproc inside $action==ipban
PHP Code:$uid = getuid_sid($sid);
$perm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$uid."'"));
$trgtperm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE name='".$user."'"));
if($trgtperm>$perm){
echo "<b><img src="../images/notok.gif" alt="x"/><br/>Error!!!<br/>Permission Denied...</b><br/>";
echo "<br/>U Cannot Ip-ban $user<br/>";
echo "<a href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt=""/>Home</a>";
echo "</p>";
}else
{
your other codes goes here
}
PHP Code:$uid = getuid_sid($sid);
$perm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$uid."'"));
$trgtperm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE name='".$user."'"));
if($trgtperm[0]>$perm[0]){
echo "<b><img src="../images/notok.gif" alt="x"/><br/>Error!!!<br/>Permission Denied...</b><br/>";
echo "<br/>U Cannot Ip-ban $user<br/>";
echo "<a href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt=""/>Home</a>";
echo "</p>";
}else
{
your other codes goes here
}
http://wapx.amob.com
Applications, Games, Wallpapers, Ringtones, Videos, Themes, Screensaver and More!!!
Comment
-
Its been long i coded a mobile site, whats the best mobile script now can some one please help mehttp://myfacepals.com
MYFACEPALS SOCIAL NETWORKsigpic
Comment
Comment