Help me pls. I d0nt know the code how to disabled the private profile in profile, im using retrivewap script can anybody give me a code how to disabled or index so i can upload on my cpanel, tnx a lot
private profile
Collapse
X
-
a little code for lazy boys
PHP Code:
if(isset($_GET['en'])){ $mode = 1; $msg = "Your profile is now private to users"; }else{ $mode = 0; $msg = "Your profile is now public to users"; }
$res = mysql_query("UPDATE ibwf_users SET viewprofile='".$mode."' WHERE id='".getuid_sid($sid)."'");
if($res)
echo "$msg<br/>";
else
echo "The database doesnt work!<br/>";
//usage
if($row['viewprofile']==0)
echo "<a href=\"file_name.php?action=action_name&en&sid=$sid\">Make profile private</a><br/>";
else
echo "<a href=\"file_name.php?action=action_name&dis&sid=$sid\">Make profile public</a><br/>";
Last edited by i0nutzxp; 18.03.10, 05:28.<?php unlink('World/Europe/Romania.country'); ?>
Comment
Comment