LOUDMOUTH Posted March 25, 2009 Share Posted March 25, 2009 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 More sharing options...
Yesideez Posted March 25, 2009 Share Posted March 25, 2009 That's not really specific for radio - can also be used for anything. It's just acting like an "on/off" switch. Link to comment https://forums.phpfreaks.com/topic/151016-solved-radio-function/#findComment-793397 Share on other sites More sharing options...
fry2010 Posted March 25, 2009 Share Posted March 25, 2009 lol, that has lightened my day a little. Link to comment https://forums.phpfreaks.com/topic/151016-solved-radio-function/#findComment-793399 Share on other sites More sharing options...
LOUDMOUTH Posted March 25, 2009 Author Share Posted March 25, 2009 so Shoutcast will work with this code? Link to comment https://forums.phpfreaks.com/topic/151016-solved-radio-function/#findComment-793474 Share on other sites More sharing options...
Yesideez Posted March 25, 2009 Share Posted March 25, 2009 No idea I've never used that but all this script is doing is checking for a $_GET variable and updating the database accordingly. Link to comment https://forums.phpfreaks.com/topic/151016-solved-radio-function/#findComment-793476 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.