Jump to content

[SOLVED] Radio function


LOUDMOUTH

Recommended Posts

I found this code in my files and was wondering if anyone has used this before?

 

What Radio programs work with this code?

 

???

if($_GET['radio'] == "on"){
if($user_class->admin > 0) {
	echo "Radio has been turned on.";
	$result = mysql_query("UPDATE `serverconfig` SET `radio` = 'on'");
} else {
echo "You don't have priveledges to do that...";
}
}

if($_GET['radio'] == "off"){
if($user_class->admin > 0) {
	echo "Radio has been turned off.";
	$result = mysql_query("UPDATE `serverconfig` SET `radio` = 'off'");
} else {
echo "You don't have priveledges to do that...";
}
}

Link to comment
https://forums.phpfreaks.com/topic/151016-solved-radio-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.