コード例 #1
0
if (empty($urlVars) && $q == "") {
    $artist = "";
    $genre = "";
    $pagenumber = "";
    $other = "";
} else {
    // there are url vars, so we'll set the vars that exist and set the ones that don't exist to empty
    if (array_key_exists('artist', $urlVars)) {
        $artisturl = $urlVars['artist'];
        $artist = unurlize($artisturl);
    } else {
        $artist = "";
    }
    if (array_key_exists('genre', $urlVars)) {
        $genreurl = $urlVars['genre'];
        $genre = unurlize($genreurl);
    } else {
        $genre = "";
    }
    if (array_key_exists('other', $urlVars)) {
        $other = $urlVars['other'];
    } else {
        $other = "";
    }
    if (array_key_exists('affiliate', $urlVars)) {
        $affiliate = $urlVars['affiliate'];
    } else {
        $affiliate = "";
    }
    if (array_key_exists(':number1', $urlVars)) {
        $pagenumber = $urlVars[':number1'];
コード例 #2
0
ファイル: index.php プロジェクト: seanfbrown/jinzora
        @(include_once $include_path . 'settings.php');
        // Let's let them know we are upgrading
        $upgrade = "Yes";
    }
    // Ok, it hasn't been installed so let's send them to the installer
    include_once $include_path . 'install/step1.php';
    exit;
}
// Security...
if ($cms_mode == "false" && $cms_type != "standalone") {
    die('Security breach detected.');
}
// let's fix all of our variables.
// see "url.php" for details.
writeLogData("messages", "Index: Cleaning POST and GET variables");
$_GET = unurlize($_GET);
$_POST = unpostize($_POST);
writeLogData("messages", "Index: Checking theme settings");
// Now set up our backend; this is required for all Jinzora components.
writeLogData("messages", "Index: Including backend functions");
include_once $include_path . 'backend/backend.php';
include_once $include_path . 'frontend/display.php';
// reset our this_page in case we need to add some temporary variables (frontend, etc.)
$this_page = setThisPage();
writeLogData("messages", "Index: Checking for searching");
if (isset($_GET['doSearch'])) {
    $_GET['action'] = "search";
    if (isset($_GET['song_title'])) {
        $_GET['search_query'] = $_GET['song_title'];
    }
    if (!isset($_GET['search_type'])) {
コード例 #3
0
ファイル: api.php プロジェクト: jinzora/jinzora3
include_once 'lib/jzcomp.lib.php';
include_once 'services/class.php';
$skin = "slick";
$image_dir = $root_dir . "/style/{$skin}/";
include_once 'frontend/display.php';
include_once 'frontend/blocks.php';
include_once 'frontend/icons.lib.php';
include_once 'frontend/frontends/slick/blocks.php';
include_once 'frontend/frontends/slick/settings.php';
$this_page = setThisPage();
$enable_page_caching = "false";
url_alias();
// see this method for persistent vars
$api_page = get_base_url();
// Clean up input variables
$_REQUEST = unurlize($_REQUEST);
// Let's create our user object for later
$jzUSER = new jzUser();
// Let's create our services object
// This object lets us do things like get metadata, resize images, get lyrics, etc
$jzSERVICES = new jzServices();
$jzSERVICES->loadStandardServices();
$blocks = new jzBlocks();
$display = new jzDisplay();
$jz_path = $_REQUEST['jz_path'];
$limit = isset($_REQUEST['limit']) ? $_REQUEST['limit'] : 0;
$params = array();
$params['limit'] = $limit;
if (empty($_REQUEST['request']) && (isset($_REQUEST['query']) || isset($_REQUEST['search']))) {
    $_REQUEST['request'] = 'search';
}