本文整理匯總了PHP中main::log_mysql_query方法的典型用法代碼示例。如果您正苦於以下問題:PHP main::log_mysql_query方法的具體用法?PHP main::log_mysql_query怎麽用?PHP main::log_mysql_query使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類main
的用法示例。
在下文中一共展示了main::log_mysql_query方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: substr
// udb: cleardb
// udb: cleardb
case substr($text, 0, 8) == $cs . "cleardb" && defined('ADMIN') && ADMIN == 'admin':
$mp3updatedb->cleardb();
$mp3updatedb->cleardb_logging($cfg);
break;
// udb: clearcache
// udb: clearcache
case substr($text, 0, 11) == $cs . "clearcache" && defined('ADMIN') && ADMIN == 'admin':
system('rm -Rf ' . $mp3play->checkfileSlash($cfg["dir_content"]) . '*.*');
system('rm -Rf ' . $mp3play->checkfileSlash($cfg["streamroot"]) . '*.m3u');
break;
// shoutbox: clearsb
// shoutbox: clearsb
case substr($text, 0, 8) == $cs . "clearsb" && defined('ADMIN') && ADMIN == 'admin':
$mp3->log_mysql_query("DELETE FROM " . $cfg["mysql"]["table_sb"]);
break;
// main: logout
// main: logout
case substr($text, 0, 7) == $cs . "logout" && defined('USER'):
session_destroy();
break;
// main: phpinfo();
// main: phpinfo();
case substr($text, 0, 8) == $cs . "phpinfo" && defined('ADMIN') && ADMIN == 'admin':
phpinfo();
exit;
break;
// main: gpl
// main: gpl
case substr($text, 0, 8) == $cs . "license" || substr($text, 0, 7) == "license" || substr($text, 0, 3) == "gpl" || substr($text, 0, 4) == $cs . "gpl":
示例2: elseif
} elseif (isset($irray["playlist_ids"]) && !empty($irray["playlist_ids"]) && $irray["pl_action"] == "rem_sel") {
$mp3playlist_in->remove_songids($irray["playlist_ids"]);
// clear all
} elseif (isset($irray["playlist_play"]) && !empty($irray["playlist_play"]) && $irray["pl_action"] == "new_playlist") {
$mp3playlist_in->pl_clear();
// save as static playlist
} elseif (isset($irray["playlist_play"]) && !empty($irray["playlist_play"]) && $irray["pl_action"] == "save_all" && isset($irray["save_plname"]) && !empty($irray["save_plname"])) {
$mp3playlist_in->save_playlist($irray["playlist_play"], $irray["save_plname"]);
}
break;
// logout
// logout
case isset($irray["logout"]):
session_destroy();
break;
// play random song
// play random song
case isset($irray["random"]):
$result = $mp3->log_mysql_query("SELECT COUNT(id) FROM " . $cfg["mysql"]["table_files"]);
$row = mysql_fetch_array($result);
$randsong = rand('1', $row["0"]);
$m3ufile = $mp3play->playsongs($randsong);
$is_play = true;
break;
}
// switch
if (isset($is_play) && $is_play) {
include "play.php";
} else {
$mp3->sendHeader('index.php?pathid=' . (isset($_GET['backid']) ? $_GET['backid'] : 0), 1);
}