本文整理汇总了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);
}