当前位置: 首页>>代码示例>>PHP>>正文


PHP getGetValue函数代码示例

本文整理汇总了PHP中getGetValue函数的典型用法代码示例。如果您正苦于以下问题:PHP getGetValue函数的具体用法?PHP getGetValue怎么用?PHP getGetValue使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了getGetValue函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: invoke

 /**
  * Invokes the whole application.
  */
 public function invoke()
 {
     $this->_pageKey = getGetValue('page', 'accounts');
     $this->_subKey = getGetValue('sub');
     $sessionLang = jpWotSession::get('active_language');
     if (empty($sessionLang)) {
         jpWotSession::set('active_language', strtolower(trim(jpWotConfig::$lang)));
     }
     $changeLang = getPostValue('lang');
     if (isset($changeLang['current'], $changeLang['new']) && $changeLang['current'] != $changeLang['new']) {
         jpWotSession::set('active_language', $changeLang['new']);
         $langKey = $changeLang['new'];
     } else {
         $langKey = jpWotSession::get('active_language');
     }
     $langKey = $this->getIniLanguageKey($langKey);
     $language = jpWotLanguage::getInstance();
     $language->load('main', BPATH, $langKey);
     $language->load('filter', BPATH, $langKey);
     $language->load($this->_pageKey, BPATH, $langKey);
     $controller = $this->getControllerInstance();
     $page = getPostValue('request');
     if (!empty($page)) {
         $controller->setRequestData($page);
     }
     $controller->index();
 }
开发者ID:KANU82,项目名称:wot-stats-search-engine,代码行数:30,代码来源:app.php

示例2: Page

<?php

// Include common functions and declarations
require_once "../../include/common.php";
// Create page object
$pageObject = new Page(getGetValue("pageId"));
// Determine if user has permission to edit page
if (!$pageObject->hasEditPermission()) {
    $login->printLoginForm();
    exit;
}
// Delete page
if (!empty($_POST["deletePage"])) {
    // Delete page
    $pageObject->deletePage($pageObject->id);
    // Redirect to page index
    redirect(scriptUrl . "/" . folderPage . "/" . filePageIndex);
} else {
    if (!empty($_GET["save"])) {
        $errors = $pageObject->savePage();
        // Redirect to page index if referer is empty
        if (!$errors->hasErrors()) {
            $referer = getPostValue("referer");
            redirect(!empty($referer) ? $referer : $pageObject->getPageLink());
        }
    }
}
// Add navigation links
$site->addNavigationLink(scriptUrl . "/" . folderAdmin, $lAdminIndex["Header"]);
$site->addNavigationLink(scriptUrl . "/" . folderPage, $lPageIndex["Header"]);
if (!empty($pageObject->id)) {
开发者ID:gkathir15,项目名称:catmis,代码行数:31,代码来源:editPage.php

示例3: array

$MAX_HEIGHT = $MAX_WIDTH = 600;
$DEFAULTS = array('color1' => 'ccc', 'color2' => 'eee', 'colors' => 32, 'direction' => 90, 'height' => 50, 'percent' => 15, 'width' => 50);
if (empty($PHP_SELF) && !empty($_SERVER) && !empty($_SERVER['PHP_SELF'])) {
    $PHP_SELF = $_SERVER['PHP_SELF'];
}
// are we calling this file directly with GET parameters
if (!empty($_GET) && !empty($PHP_SELF) && preg_match("/\\/includes\\/gradient.php/", $PHP_SELF)) {
    if (function_exists('getGetValue')) {
        $base = getGetValue('base');
        $color1 = getGetValue('color1');
        $color2 = getGetValue('color2');
        $direction = getGetValue('direction');
        $height = getGetValue('height');
        $numcolors = getGetValue('colors');
        $percent = getGetValue('percent');
        $width = getGetValue('width');
    } else {
        $base = !empty($_GET['base']) ? $_GET['base'] : '';
        $color1 = !empty($_GET['color1']) ? $_GET['color1'] : '';
        $color2 = !empty($_GET['color2']) ? $_GET['color2'] : '';
        $direction = !empty($_GET['direction']) ? $_GET['direction'] : '';
        $height = !empty($_GET['height']) ? $_GET['height'] : '';
        $numcolors = !empty($_GET['colors']) ? $_GET['colors'] : '';
        $percent = !empty($_GET['percent']) ? $_GET['percent'] : '';
        $width = !empty($_GET['width']) ? $_GET['width'] : '';
    }
    create_image('', $base, $height, $percent, $width, $direction, $numcolors, $color1, $color2);
}
/* Turn an HTML color (like 'AABBCC') into an array of decimal RGB values.
 *
 * Parameters:
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:gradient.php

示例4: load_user_preferences

if (!empty($last_login)) {
    $login = '';
}
if (empty($webcalendar_login)) {
    $webcalendar_login = '';
}
if ($REMEMBER_LAST_LOGIN == 'Y' && empty($login)) {
    $last_login = $login = $webcalendar_login;
}
load_user_preferences('guest');
$WebCalendar->setLanguage();
$cookie_path = str_replace('login.php', '', $PHP_SELF);
//echo "Cookie path: $cookie_path\n";
// Look for action=logout
$logout = false;
$action = getGetValue('action');
if (!empty($action) && $action == 'logout') {
    $logout = true;
    $return_path = '';
    SetCookie('webcalendar_login', '', 0, $cookie_path);
    SetCookie('webcalendar_last_view', '', 0, $cookie_path);
} else {
    if (empty($return_path)) {
        // see if a return path was set
        $return_path = get_last_view(false);
    }
}
if (!empty($return_path)) {
    $return_path = clean_whitespace($return_path);
    $url = $return_path;
} else {
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:login.php

示例5: getGetValue

<?php

/* $Id: usersel.php,v 1.34.2.3 2008/10/15 03:05:11 cknudsen Exp $ */
include_once 'includes/init.php';
// input args in URL
// users:  list of comma-separated users
// form:   name of form on parent page
// listid: element id of user selection object in form
//         ... to be used like form.elements[$listid]
$users = getGetValue('users');
$form = getGetValue('form');
$listid = getGetValue('listid');
$progErrStr = translate('Program Error No XXX specified!');
if (empty($form)) {
    echo str_replace('XXX', translate('form'), $progErrStr);
    exit;
}
if (empty($listid)) {
    echo str_replace('XXX', translate('listid'), $progErrStr);
    exit;
}
// Parse $users.
$exp = split(',', $users);
$groups = $selected = $sql_params = array();
for ($i = 0, $cnt = count($exp); $i < $cnt; $i++) {
    $selected[$exp[$i]] = 1;
}
$owner = $is_nonuser_admin || $is_assistant ? $user : $login;
// Load list of groups.
$sql = 'SELECT wg.cal_group_id, wg.cal_name FROM webcal_group wg';
if ($USER_SEES_ONLY_HIS_GROUPS == 'Y') {
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:usersel.php

示例6: translate

// translate ( 'Program Error' ) translate ( 'No XXX specified!' )
$noXStr = translate('Program Error No XXX specified!');
if (empty($users)) {
    echo str_replace('XXX', translate('user'), $noXStr);
    exit;
} elseif (empty($year)) {
    echo str_replace('XXX', translate('year'), $noXStr);
    exit;
} elseif (empty($month)) {
    echo str_replace('XXX', translate('month'), $noXStr);
    exit;
} elseif (empty($day)) {
    echo str_replace('XXX', translate('day'), $noXStr);
    exit;
}
print_header(array('js/availability.php/false/' . "{$month}/{$day}/{$year}/" . getGetValue('form')), '', 'onload="focus();"', true, false, true);
$next_url = $prev_url = '?users=' . $users;
$time = mktime(0, 0, 0, $month, $day, $year);
$date = date('Ymd', $time);
$next_url .= strftime('&amp;year=%Y&amp;month=%m&amp;day=%d', $time + 86400);
$prev_url .= strftime('&amp;year=%Y&amp;month=%m&amp;day=%d', $time - 86400);
$span = ($WORK_DAY_END_HOUR - $WORK_DAY_START_HOUR) * 3 + 1;
$users = explode(',', $users);
$nextStr = translate('Next');
$prevStr = translate('Previous');
echo '
    <div style="width:99%;">
      <a title="' . $prevStr . '" class="prev" href="' . $prev_url . '"><img src="images/leftarrow.gif" class="prev" alt="' . $prevStr . '" /></a>
      <a title="' . $nextStr . '" class="next" href="' . $next_url . '"><img src="images/rightarrow.gif" class="next" alt="' . $nextStr . '" /></a>
      <div class="title">
        <span class="date">';
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:availability.php

示例7: getGetValue

<?php

// Include common functions and declarations
require_once "include/common.php";
// Get values
$id = getGetValue("pageId");
// If id is empty attempt to fetch sectionId (for backwards compatibility)
if (empty($id)) {
    $id = getGetValue("sectionId");
}
// Get parameters for readable URLs
$parameters = getURLParameters(filePage);
// Create Page object
$page = new Page();
if (!empty($id)) {
    $page->init($id);
} else {
    if (sizeof($parameters) > 0) {
        if (!empty($parameters[0])) {
            $page->init(!empty($parameters[1]) ? $parameters[1] : 0, $parameters[0]);
            if (empty($page->id) && !empty($parameters[1])) {
                $page->init($parameters[1]);
            }
        }
    }
}
// If page not set create default page
if (empty($page->id)) {
    if (constant("pageDefaultPage") != 0) {
        $page->init(pageDefaultPage);
    } else {
开发者ID:gkathir15,项目名称:catmis,代码行数:31,代码来源:index.php

示例8: getGetValue

<?php

/* $Id: datesel.php,v 1.31 2005/03/11 13:59:51 cknudsen Exp $ */
include_once $gfplugins . 'webcalendar/www/includes/init.php';
// month and year are being overwritten so we will copy vars to fix.
// this will make datesel.php still work where ever it is called from.
// The values $fday, $fmonth and $fyear hold the form variable names
// to update when the user selects a date.  (This is needed in
// the js/datesel.php file that gets included below.)
$fday = getGetValue("fday");
$fmonth = getGetValue("fmonth");
$fyear = getGetValue("fyear");
$INC = array('js/datesel.php');
print_header($INC, '', '', true);
if (strlen($date) > 0) {
    $thisyear = substr($date, 0, 4);
    $thismonth = substr($date, 4, 2);
} else {
    $thismonth = date("m");
    $thisyear = date("Y");
}
$next = mktime(3, 0, 0, $thismonth + 1, 1, $thisyear);
$nextyear = date("Y", $next);
$nextmonth = date("m", $next);
$nextdate = date("Ym", $next) . "01";
$prev = mktime(3, 0, 0, $thismonth - 1, 1, $thisyear);
$prevyear = date("Y", $prev);
$prevmonth = date("m", $prev);
$prevdate = date("Ym", $prev) . "01";
?>
开发者ID:neymanna,项目名称:fusionforge,代码行数:30,代码来源:datesel.php

示例9: dbi_free_result

        $mimetype = $doc->getMimeType();
        $owner = $doc->getLogin();
        $size = $doc->getSize();
        $type = $doc->getType();
    }
    dbi_free_result($res);
}
// Make sure this user is allowed to look at this file.
// If the blob is associated with an event, then the user must be able
// to view the event in order to access this file.
// TODO: move all this code (and code in view_entry.php) to a common
// function named can_view_event or something similar.
$can_view = false;
$is_my_event = false;
$is_private = $is_confidential = false;
$log = getGetValue('log');
$show_log = !empty($log);
if (empty($id)) {
    $can_view = true;
}
// not associated with an event
if (!empty($id) && empty($error)) {
    if ($is_admin || $is_nonuser_admin || $is_assistant) {
        $can_view = true;
    }
    if (empty($id) || $id <= 0 || !is_numeric($id)) {
        $error = str_replace('XXX', $id, $invalidIDStr);
    }
    if (empty($error)) {
        // is this user a participant or the creator of the event?
        $res = dbi_execute('SELECT we.cal_id FROM webcal_entry we,
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:doc.php

示例10: getValue

}
// Delete groups
$deleteGroups = getValue("deleteGroups");
if (!empty($deleteGroups)) {
    $groups = getValue("groups");
    for ($i = 0; $i < sizeof($groups); $i++) {
        $group = new Group($groups[$i]);
        $group->deleteGroup();
    }
    // Redirect to group index
    redirect(!empty($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : scriptUrl . "/" . folderGroups . "/" . fileGroupIndex);
}
// Set number of groups to display per page
$groupLimit = 30;
// Get page number
$page = getGetValue("page");
if (!empty($page)) {
    $page = $page - 1;
}
// Get search parameters
$search_string = getValue("searchString");
// Add navigation links
$site->addNavigationLink(scriptUrl . "/" . folderAdmin, $lAdminIndex["Header"]);
$site->addNavigationLink(scriptUrl . "/" . folderGroups . "/" . fileGroupIndex, $lGroupIndex["Header"]);
// Print common header
$site->printHeader();
// Print page description
echo "<p>" . $lGroupIndex["HeaderText"] . "</p>";
// Fetch groups
$result = $dbi->query("SELECT id FROM `" . groupTableName . "`" . (!empty($search_string) ? " WHERE name LIKE " . $dbi->quote($search_string . "%") . " OR description LIKE " . $dbi->quote($search_string . "%") : "") . " ORDER BY name LIMIT " . $page * $groupLimit . "," . $groupLimit);
if ($result->rows() || !empty($search_string)) {
开发者ID:gkathir15,项目名称:catmis,代码行数:31,代码来源:index.php

示例11: getGetValue

<?php

// Include common functions and declarations
require_once "../../include/common.php";
// Get content type and content identifier
$moduleContentTypeId = getGetValue("moduleContentTypeId");
$moduleContentId = getGetValue("moduleContentId");
$revisionNumber = getValue("revisionNumber");
$textfieldIndex = getGetValue("textfieldIndex");
if (!empty($moduleContentTypeId) && !empty($moduleContentId)) {
    if (!$login->hasEditPermission($moduleContentTypeId, $moduleContentId)) {
        $login->printLoginForm();
        exit;
    }
    // Get info on module type
    $moduleId = 0;
    $title = "";
    $result = $dbi->query("SELECT moduleId, title FROM " . moduleContentTypeTableName . " WHERE id=" . $dbi->quote($moduleContentTypeId));
    if ($result->rows()) {
        list($moduleId, $title) = $result->fetchrow_array();
    }
    // Get module content type object
    $moduleContentTypeObject = $module->getModuleContentTypeObject($moduleContentTypeId);
    // Revert to previous revision
    if (!empty($_POST["revert"])) {
        if (method_exists($moduleContentTypeObject, "restoreRevision")) {
            $moduleContentTypeObject->restoreRevision($moduleContentId, $revisionNumber);
        } else {
            if (method_exists($moduleContentTypeObject, "setText")) {
                $text = method_exists($moduleContentTypeObject, "getText") ? $moduleContentTypeObject->getText($moduleContentId, $textfieldIndex) : "";
                if (!empty($revisionNumber)) {
开发者ID:gkathir15,项目名称:catmis,代码行数:31,代码来源:index.php

示例12: require_valide_referring_url

<?php

/* $Id: del_layer.php,v 1.20.2.2 2012/02/28 02:07:45 cknudsen Exp $ */
include_once 'includes/init.php';
require_valide_referring_url();
$id = getGetValue('id');
if ($ALLOW_VIEW_OTHER != 'Y' || empty($id)) {
    print_header();
    echo print_not_auth(7) . print_trailer();
    exit;
}
$id = getGetValue('id');
$updating_public = false;
if ($is_admin && !empty($public) && $PUBLIC_ACCESS == 'Y') {
    $updating_public = true;
    $layer_user = '__public__';
} else {
    $layer_user = $login;
}
load_user_layers($layer_user, 1);
if (strlen($layers[$id]['cal_layeruser']) > 0 && ($is_admin || $readonly == 'N')) {
    $layeruser = $layers[$id]['cal_layeruser'];
    dbi_execute('DELETE FROM webcal_user_layers WHERE cal_login = ?
    AND cal_layeruser = ?', array($layer_user, $layeruser));
}
do_redirect('layers.php' . ($updating_public ? '?public=1' : ''));
开发者ID:rhertzog,项目名称:lcs,代码行数:26,代码来源:del_layer.php

示例13: translate

    //end if ($c)
    //test db_cachedir directory for write permissions
    if (strlen($db_cachedir) > 0) {
        if (!@is_dir($db_cachedir)) {
            $response_msg2 = $failureStr . $cachedirStr . ' ' . translate('does not exist');
        } else {
            if (!@is_writable($db_cachedir)) {
                $response_msg2 = $failureStr . $cachedirStr . ' ' . translate('is not writable');
            } else {
            }
        }
    }
}
// Is this a Timezone Convert?
//Manual tzoffset input in URL
$tzoffset = getGetValue('tzoffset');
if (!empty($tzoffset)) {
    $action = 'tz_convert';
}
// If so, run it
if (!empty($action) && $action == 'tz_convert' && !empty($_SESSION['validuser'])) {
    $cutoffdate = getIntValue('cutoffdate');
    $db_persistent = false;
    $db_type = $settings['db_type'];
    $db_host = $settings['db_host'];
    $db_database = $settings['db_database'];
    $db_login = $settings['db_login'];
    $db_password = $settings['db_password'];
    $db_cachedir = getPostValue('form_db_cachedir');
    // Avoid false visibilty of single user login
    $onload = 'auth_handler();';
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:index.php

示例14: getDatabaseFileExtension

<?php

// Include common functions and declarations
include "../include/common.lite.php";
// Get file id
$id = !empty($_GET["fileId"]) ? $_GET["fileId"] : "";
if (!empty($id)) {
    $extension = getDatabaseFileExtension($id);
    if (!empty($extension)) {
        $file = filePath . "/" . $id . "." . $extension;
        if (file_exists($file)) {
            // Determine whether to generate a thumbnail
            $imageWidth = getGetValue("imageWidth");
            if (!empty($imageWidth)) {
                // Generate cached thumbnail
                $imageUrl = $cache->generateThumbnail("", str_replace(scriptPath . "/", "", $file), "file_" . $id, $imageWidth);
                if (!empty($imageUrl)) {
                    redirect($imageUrl);
                }
            }
            // If file is outside web root get contents
            if (false) {
                // Make file stay in cache for 30 days.
                header("Expires: " . date("D, j M Y H:i:s", time() + 86400 * 30) . " UTC");
                header("Cache-Control: Public");
                header("Pragma: Public");
                // File not cached or cache outdated, we respond '200 OK' and output the file
                header('Last-Modified: ' . gmdate('D, d M Y H:i:s', filemtime($file)) . ' GMT', true, 200);
                header('Content-Length: ' . filesize($file));
                header('Content-Type: ' . $fileObject->type);
                header('Content-Disposition: attachment; filename="' . basename($fileObject->name) . '"');
开发者ID:gkathir15,项目名称:catmis,代码行数:31,代码来源:getFile.php

示例15: printBlog

 /** 
  * Print blog index.
  * @param	$categoryId	Identifier of category.
  */
 function printBlog($categoryId = -1)
 {
     global $dbi, $login, $site;
     if (!empty($this->id)) {
         if ($this->hasReadPermission()) {
             // Include language
             include scriptPath . "/" . folderBlog . "/include/language/" . $this->language . "/general.php";
             if (!empty($this->id)) {
                 // Get get values
                 $day = getGetValue("day");
                 $month = getGetValue("month");
                 $year = getGetValue("year");
                 // Add meta links
                 if ($this->hasAdministerPermission()) {
                     $site->addMetaLink(scriptUrl . "/" . folderBlog . "/" . fileBlogEdit . "?blogId=" . $this->id, $lBlog["EditBlog"], "edit");
                     $site->addMetaLink(scriptUrl . "/" . folderUsers . "/" . fileEditPermissions . "?moduleContentTypeId=" . blogContentId . "&amp;moduleContentId=" . $this->id, $lBlog["EditPermissions"], "permission");
                 }
                 $site->addMetaLink($this->getBlogLink(), "", "direct");
                 $site->addMetaLink($this->getBlogLink() . "&amp;print=1", "", "print");
                 $site->addMetaLink(scriptUrl . "/" . fileSendToFriend . "?url=" . urlencode($this->getBlogLink()) . "&amp;title=" . urlencode($this->title) . "&amp;summary=" . urlencode(validateTextLength($this->description, 100)), "", "recommend");
                 // Add navigation links
                 $site->addNavigationLink(scriptUrl . "/" . folderBlog . "/" . fileBlogIndex, $lBlogIndex["Header"]);
                 $site->addNavigationLink($this->getBlogLink(), $this->title);
                 if ($categoryId != -1) {
                     $category = new Category($categoryId);
                     $site->addNavigationLink(scriptUrl . "/" . folderBlog . "/" . fileBlog . "?blogId=" . $this->id . "&amp;categoryId=" . $categoryId, $categoryId == 0 ? $lBlogPost["Uncategorized"] : $category->title);
                 } else {
                     if (!empty($month) && !empty($year)) {
                         $site->addNavigationLink(scriptUrl . "/" . folderBlog . "/" . fileBlog . "?blogId=" . $this->id . "&amp;month=" . $month . "&amp;year=" . $year, intToMonth($month) . " " . $year);
                     }
                 }
                 // Register rss feeds
                 $site->registerRSSFeed(scriptUrl . "/" . folderBlog . "/" . fileBlogPostRSS . "?blogId=" . $this->id, $this->title);
                 $site->registerRSSFeed(scriptUrl . "/" . folderBlog . "/" . fileBlogCommentRSS . "?blogId=" . $this->id, $this->title . " - " . $lBlogPost["Comments"]);
                 // Set website path
                 $site->setPath(folderBlog);
                 // Print common header
                 $site->printHeader();
                 // Print blog body
                 $this->printBlogBody($categoryId);
                 // Print common footer
                 $site->printFooter();
             }
         } else {
             $login->printLoginForm();
             exit;
         }
     } else {
         redirect(scriptUrl . "/" . folderBlog . "/" . fileBlogIndex);
     }
 }
开发者ID:gkathir15,项目名称:catmis,代码行数:55,代码来源:Blog.class.php


注:本文中的getGetValue函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。