IPB
Your FREE membership includes:
  • A friendly community where you can come to chat
  • Receive completely FREE quality web hosting!
  • Get reviews and suggestions for your websites!
  • Take part in competitions where you can win prizes from cash, vouchers, or win special unadvertised hosting

Welcome Guest ( Log In | Register )


Shortcut links:
Profile
Personal Photo
Rating
 
Options
Options
Personal Statement
..:AcUrA:.. doesn't have a personal statement currently.
Personal Info
..:AcUrA:..
Starter Member
Age Unknown
Gender Not Set
Location Unknown
Birthday Unknown
Interests
No Information
Statistics
Joined: 31-December 06
Profile Views: 107*
Last Seen: 27th August 2007 - 10:25 PM
Local Time: Nov 21 2008, 12:21 AM
59 posts (0 per day)
Contact Information
AIM No Information
Yahoo No Information
ICQ No Information
MSN No Information
Contact Private
* Profile views updated each hour

..:AcUrA:..

Members


Topics
Posts
Comments
Friends
My Content
19 Mar 2007
Here Is The Code I Am Looking To Make Secure...

<?php
if(!$_GET[sort]){
$sort = "asc";
}else{
$sort = "$_GET[sort]";
}
if($_GET[user])
{
if($_GET[user]==Joe)
{echo" <font color='red'><b>Error:</b><br>Joe can not be edited!";}
if($_GET[user]!=Joe){
if($_GET[user]==Joe)
{echo"<font color='red'><b>Error:</b><br>Sorry, Joe can not be edited!";}
if($_GET[user]!=Joe)
{
if (!$_POST[update])
{
$user = mysql_query("SELECT * from users where username = '$_GET[user]'");
$user = mysql_fetch_array($user);
echo"
<center><form method='POST'>
<table width='100%'>
<tr>
<td align='right' width='25%'>
<font size='2'><strong>$user[username]</strong>'s Profile</font>
</td>
<td align='left'></td>
</tr>
<tr>
<td align='right' width='25%'>
<font size='2'><strong>Email Address</strong></font></td>
<td align='left'>
<input size='25' name='email' value='$user[email]'></td>
</tr>";
if($logged[level]=="sadmin" or $logged[username]=="Joe")
{
if($user[show]=="yes"){$check=" checked='checked'";}
if($user[show]=="no"){$check2=" checked='checked'";}

echo"
<tr>
<td align='right' width='25%'>
<font size='2'><strong>Change Password</strong></font></td>
<td align='left'>
<input size='25' name='pass' value='$user[password]'></td>
</tr>
<tr>
<td align='right' width='25%'>
<font size='2'><strong>Show Username</strong></font></td>
<td align='left'>
<strong>Yes: </strong><input type='radio' name='show' value='yes'$check><strong> No: </strong><input type='radio' name='show' value='no'$check2></td>
</tr>";}
echo"
<tr>
<td align='right' width='25%'>
<font size='2'><strong>User Level</strong></font></td>
<td align='left'>
<select name='level' width='25'>
<option value='$user[level]' selected>$user[level]";
if($logged[level]=="admin")
{echo"
<option value='ban'>Baned From Login
<option value='user'>User
<option value='member'>Member
<option value='mod'>Male Mod
<option value='fmod'>Female Mod
<option value='smod'>Super Mod";}
if($logged[level]=="sadmin" or $logged[username]=="Joe")
{echo"
<option value='ban'>Baned From Login
<option value='user'>User
<option value='member'>Member
<option value='mod'>Male Mod
<option value='fmod'>Female Mod
<option value='smod'>Super Mod
<option value='admin'>Admin";}
if($logged[username]=="Joe")
{echo"
<option value='sadmin'>Super Admin";}
echo"
</select>
</td>
</tr>
<tr>
<td align='center'><input type='button' value='Back' onclick='history.back()'>
</td>
<td align='left'>
<input type='submit' name='update' value='Update'></td>
</tr>
</table>
</form>
</center>";
}
else
{
if($logged[level]=='sadmin')
{
$email = $_POST[email];
$level = $_POST[level];
$pass = $_POST[pass];
$show = $_POST[show];
$sql = mysql_query("update users set password = '$pass', email = '$email', level = '$level' where username ='$_GET[user]'");
$sql5=mysql_query("UPDATE `users` SET `show` = '$show' WHERE `username` = '$_GET[user]' LIMIT 1");
$insert2 = mysql_query("INSERT INTO `adminlog` (`user`, `action`) VALUES ('$logged[username]', 'Edited user $_GET[user], E-Mail is now: $email, Level is now: $level')");
if($sql && $sql5 && $insert2){echo"$_GET[user] was updated!";}
}
if($logged[level]=='admin')
{
$email = $_POST[email];
$level = $_POST[level];
echo ("$_GET[user]'s profile has been updated.");
$sql = mysql_query("update users set email = '$email', level = '$level' where username ='$_GET[user]'");
$insert2 = mysql_query("INSERT INTO `adminlog` (`user`, `action`) VALUES ('$logged[username]', 'Edited user $_GET[user], E-Mail is now: $email, Level is now: $level')");
if($sql && $insert2){echo"$_GET[user] was updated!";}
}
}
}}}
else
{
echo"<font size='1'><center><b>Members Registered</b></center>";
$getusers = mysql_query("Select * from users order by id $sort");
while($users = mysql_fetch_array($getusers))
{
if($users[username] == "Joe" or $users[username] == "System")
{echo"";}
else{
if($users[username] == $logged[username])
{echo"";}
else{
if($logged[level]=="admin" && $users[level]=="sadmin")
{echo"";}
else{
echo("<center><a href='admin.php?tool=1&user=$users[username]'>$users[username]</a><br /></center>");
}}}}
echo("<br /><center><strong>Sort by:</strong> <a href='admin.php?tool=1&sort=asc'>Ascending</a>, <a href='admin.php?tool=1&sort=desc'>Descending</a></center></font>");
}
?>
19 Mar 2007
ok, I am having trouble running this script every 5 mins. I tried a cron job but it didnt work. I may have dont it wrong tho. Here is the php insert I am trying to run every 5mins.

$insert2 = mysql_query("INSERT INTO `messages` (`userid`, `message`) VALUES ('1', 'Testing Message')");

It works if I include it in a page like this...

<?
$insert2 = mysql_query("INSERT INTO `messages` (`userid`, `message`) VALUES ('1', 'Testing Message')");
?>

but not wen I did it on a cron job. I also didnt add in the <? or ?> on the cron job. Could that be the problem? If not can someone help me figure it out? Thank you!
28 Feb 2007
Hey Guys, I Have Been Looking All Over The Net For A Tutorial On How To Create A Chat. I Am Looking For Something Similar To phpmychat That Has Permissions Such As User, Member, Mod, Or Admin. Every One Of The Tutorials I See That Are "Chats" Are Just Shoutboxes. If Someone Could Help That Would Be Great. Thank You!
31 Dec 2006
I have all the posts and topics I need to get the starter hosting but wen I go to create the subdomain it says that there is an error. So I am just wondering if I have to have you guys set that up or not. If so I would like the subdomain to b acreations.tfcph.com if possible. Thank you for the help and great forum! smile.gif
31 Dec 2006
techtuts.com has many tutorials that could help u guys! smile.gif
Last Visitors
..:AcUrA:.. has no visitors to display.

Comments
Other users have left no comments for ..:AcUrA:...

Friends
There are no friends to display.
© GrandForums.com