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


PHP returnglobal函数代码示例

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


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

示例1: run

 public function run($args)
 {
     global $connect;
     $field = $args[0];
     if (isset($_SESSION['srid'])) {
         $srid = $_SESSION['srid'];
     }
     $sid = returnglobal('sid');
     return retrieve_Answer($field, $_SESSION['dateformats']['phpdate']);
 }
开发者ID:portokallidis,项目名称:Metamorphosis-Meducator,代码行数:10,代码来源:dFunctionInsertans.php

示例2: copied

            $CopyConditionsMessage = "<div class='warningheader'>(" . $clang->gT("No conditions could be copied (due to duplicates)") . ")</div>";
        }
    }
    LimeExpressionManager::UpgradeConditionsToRelevance($surveyid);
    // do for whole survey, since don't know which questions affected.
}
//END PROCESS ACTIONS
$cquestions = array();
$canswers = array();
//BEGIN: GATHER INFORMATION
// 1: Get information for this question
if (!isset($qid)) {
    $qid = returnglobal('qid');
}
if (!isset($surveyid)) {
    $surveyid = returnglobal('sid');
}
$thissurvey = getSurveyInfo($surveyid);
$query = "SELECT * " . "FROM {$dbprefix}questions, " . "{$dbprefix}groups " . "WHERE {$dbprefix}questions.gid={$dbprefix}groups.gid " . "AND qid={$qid} " . "AND parent_qid=0 " . "AND {$dbprefix}questions.language='" . GetBaseLanguageFromSurveyID($surveyid) . "'";
$result = db_execute_assoc($query) or safe_die("Couldn't get information for question {$qid}<br />{$query}<br />" . $connect->ErrorMsg());
while ($rows = $result->FetchRow()) {
    $questiongroupname = $rows['group_name'];
    $questiontitle = $rows['title'];
    $questiontext = $rows['question'];
    $questiontype = $rows['type'];
}
// 2: Get all other questions that occur before this question that are pre-determined answer types
// To avoid natural sort order issues,
// first get all questions in natural sort order
// , and find out which number in that order this question is
$qquery = "SELECT * " . "FROM {$dbprefix}questions, " . "{$dbprefix}groups " . "WHERE {$dbprefix}questions.gid={$dbprefix}groups.gid " . "AND parent_qid=0 " . "AND {$dbprefix}questions.sid={$surveyid} " . "AND {$dbprefix}questions.language='" . GetBaseLanguageFromSurveyID($surveyid) . "' " . "AND {$dbprefix}groups.language='" . GetBaseLanguageFromSurveyID($surveyid) . "' ";
开发者ID:ddrmoscow,项目名称:queXS,代码行数:31,代码来源:conditionshandling.php

示例3: returnglobal

 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 *
 * $Id: dumplabel.php 10925 2011-09-02 14:12:02Z c_schmitz $
 */
// DUMP THE RELATED DATA FOR A SINGLE QUESTION INTO A SQL FILE FOR IMPORTING LATER ON OR
// ON ANOTHER SURVEY SETUP DUMP ALL DATA WITH RELATED QID FROM THE FOLLOWING TABLES
// 1. questions
// 2. answers
//Ensure script is not run directly, avoid path disclosure
include_once "login_check.php";
require_once "export_data_functions.php";
$lids = returnglobal('lids');
$lid = returnglobal('lid');
if (!$lid && !$lids) {
    die('No LID has been provided. Cannot dump label set.');
}
if ($lid) {
    $lids = array($lid);
}
$lids = array_map('sanitize_int', $lids);
$fn = "limesurvey_labelset_" . implode('_', $lids) . ".lsl";
$xml = getXMLWriter();
header("Content-Type: text/html/force-download");
header("Content-Disposition: attachment; filename={$fn}");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
开发者ID:himanshu12k,项目名称:ce-www,代码行数:31,代码来源:dumplabel.php

示例4: sendcacheheaders

 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 *
 * $Id: listcolumn.php 11664 2011-12-16 05:19:42Z tmswhite $
 */
include_once "login_check.php";
sendcacheheaders();
if (!isset($surveyid)) {
    $surveyid = returnglobal('sid');
}
if (!isset($column)) {
    $column = returnglobal('column');
}
if (!isset($order)) {
    $order = returnglobal('order');
}
if (!isset($sql)) {
    $sql = $_SESSION['sql'];
}
if (!$surveyid) {
    //NOSID
    exit;
}
if (!$column) {
    //NOCOLUMN
    exit;
}
$aColumnNames = $connect->MetaColumnNames("{$dbprefix}survey_{$surveyid}");
if (!isset($aColumnNames[strtoupper($column)])) {
    safe_die('Invalid column name');
开发者ID:rkaldung,项目名称:LimeSurvey,代码行数:31,代码来源:listcolumn.php

示例5: array

 * DATA LIST is held in the $fields array, while the actual data is written to a
 * to a temporary location, updating length (size) values in the $fields array as
 * the tmp file is generated (uses @fwrite's return value rather than strlen).
 * Final output renders $fields to a DATA LIST, and then stitches in the tmp file data.
 *
 * Optimization opportunities remain in the VALUE LABELS section, which runs a query / column
 */
include_once 'login_check.php';
//for scale 1=nominal, 2=ordinal, 3=scale
$typeMap = array('5' => array('name' => '5 Point Choice', 'size' => 1, 'SPSStype' => 'F', 'Scale' => 3), 'B' => array('name' => 'Array (10 Point Choice)', 'size' => 1, 'SPSStype' => 'F', 'Scale' => 3), 'A' => array('name' => 'Array (5 Point Choice)', 'size' => 1, 'SPSStype' => 'F', 'Scale' => 3), 'F' => array('name' => 'Array (Flexible Labels)', 'size' => 1, 'SPSStype' => 'F'), '1' => array('name' => 'Array (Flexible Labels) Dual Scale', 'size' => 1, 'SPSStype' => 'F'), 'H' => array('name' => 'Array (Flexible Labels) by Column', 'size' => 1, 'SPSStype' => 'F'), 'E' => array('name' => 'Array (Increase, Same, Decrease)', 'size' => 1, 'SPSStype' => 'F', 'Scale' => 2), 'C' => array('name' => 'Array (Yes/No/Uncertain)', 'size' => 1, 'SPSStype' => 'F'), 'X' => array('name' => 'Boilerplate Question', 'size' => 1, 'SPSStype' => 'A', 'hide' => 1), 'D' => array('name' => 'Date', 'size' => 10, 'SPSStype' => 'SDATE'), 'G' => array('name' => 'Gender', 'size' => 1, 'SPSStype' => 'F'), 'U' => array('name' => 'Huge Free Text', 'size' => 1, 'SPSStype' => 'A'), 'I' => array('name' => 'Language Switch', 'size' => 1, 'SPSStype' => 'A'), '!' => array('name' => 'List (Dropdown)', 'size' => 1, 'SPSStype' => 'F'), 'W' => array('name' => 'List (Flexible Labels) (Dropdown)', 'size' => 1, 'SPSStype' => 'F'), 'Z' => array('name' => 'List (Flexible Labels) (Radio)', 'size' => 1, 'SPSStype' => 'F'), 'L' => array('name' => 'List (Radio)', 'size' => 1, 'SPSStype' => 'F'), 'O' => array('name' => 'List With Comment', 'size' => 1, 'SPSStype' => 'F'), 'T' => array('name' => 'Long free text', 'size' => 1, 'SPSStype' => 'A'), 'K' => array('name' => 'Multiple Numerical Input', 'size' => 1, 'SPSStype' => 'F'), 'M' => array('name' => 'Multiple choice', 'size' => 1, 'SPSStype' => 'F'), 'P' => array('name' => 'Multiple choice with comments', 'size' => 1, 'SPSStype' => 'F'), 'Q' => array('name' => 'Multiple Short Text', 'size' => 1, 'SPSStype' => 'F'), 'N' => array('name' => 'Numerical Input', 'size' => 3, 'SPSStype' => 'F', 'Scale' => 3), 'R' => array('name' => 'Ranking', 'size' => 1, 'SPSStype' => 'F'), 'S' => array('name' => 'Short free text', 'size' => 1, 'SPSStype' => 'F'), 'Y' => array('name' => 'Yes/No', 'size' => 1, 'SPSStype' => 'F'), ':' => array('name' => 'Multi flexi numbers', 'size' => 1, 'SPSStype' => 'F', 'Scale' => 3), ';' => array('name' => 'Multi flexi text', 'size' => 1, 'SPSStype' => 'A'), '|' => array('name' => 'File upload', 'size' => 1, 'SPSStype' => 'A'), '*' => array('name' => 'Equation', 'size' => 1, 'SPSStype' => 'A'));
if (!isset($surveyid)) {
    $surveyid = returnglobal('sid');
}
$filterstate = incompleteAnsFilterstate();
$quexsfilterstate = questionnaireSampleFilterstate();
$spssver = returnglobal('spssver');
if (is_null($spssver)) {
    if (!isset($_SESSION['spssversion'])) {
        $_SESSION['spssversion'] = 2;
        //Set default to 2, version 16 or up
    }
    $spssver = $_SESSION['spssversion'];
} else {
    $_SESSION['spssversion'] = $spssver;
}
$length_varlabel = '255';
// Set the max text length of Variable Labels
$length_vallabel = '120';
// Set the max text length of Value Labels
switch ($spssver) {
    case 1:
开发者ID:ddrmoscow,项目名称:queXS,代码行数:31,代码来源:export_data_spss.php

示例6: form_csv_upload

function form_csv_upload($error=false)
{
    global $surveyid, $tokenoutput,$scriptname, $clang, $encodingsarray;

    if ($error) {$tokenoutput .= $error . "<br /><br />\n";}
    asort($encodingsarray);
    $charsetsout='';
    foreach  ($encodingsarray as $charset=>$title)
    {
        $charsetsout.="<option value='$charset' ";
        if ($charset=='auto') {$charsetsout.=" selected ='selected'";}
        $charsetsout.=">$title ($charset)</option>";
    }
    $separator = returnglobal('separator');
    if (empty($separator) || $separator == 'auto') $selected = " selected = 'selected'"; else $selected = '';
    $separatorout = "<option value='auto'$selected>".$clang->gT("Auto detect")."</option>";
    if ($separator == 'comma') $selected = " selected = 'selected'"; else $selected = '';
    $separatorout .= "<option value='comma'$selected>".$clang->gT("Comma")."</option>";
    if ($separator == 'semicolon') $selected = " selected = 'selected'"; else $selected = '';
    $separatorout .= "<option value='semicolon'$selected>".$clang->gT("Semicolon")."</option>";
    $tokenoutput .= "<form id='tokenimport' enctype='multipart/form-data' action='$scriptname?action=tokens' method='post'><ul>\n"
    . "<li><label for='the_file'>".$clang->gT("Choose the CSV file to upload:")."</label><input type='file' id='the_file' name='the_file' size='35' /></li>\n"
    . "<li><label for='csvcharset'>".$clang->gT("Character set of the file:")."</label><select id='csvcharset' name='csvcharset' size='1'>$charsetsout</select></li>\n"
    . "<li><label for='separator'>".$clang->gT("Separator used:")."</label><select id='separator' name='separator' size='1'>"
    . $separatorout
    . "</select></li>\n"
    . "<li><label for='filterblankemail'>".$clang->gT("Filter blank email addresses:")."</label><input type='checkbox' id='filterblankemail' name='filterblankemail' checked='checked' /></li>\n"
    . "<li><label for='filterduplicatetoken'>".$clang->gT("Filter duplicate records:")."</label><input type='checkbox' id='filterduplicatetoken' name='filterduplicatetoken' checked='checked' /></li>"
    . "<li id='lifilterduplicatefields'><label for='filterduplicatefields[]'>".$clang->gT("Duplicates are determined by:")."</label>"
    . "<select id='filterduplicatefields[]' name='filterduplicatefields[]' multiple='multiple' size='5'>"
    . "<option selected='selected'>firstname</option>"
    . "<option selected='selected'>lastname</option>"
    . "<option selected='selected'>email</option>"
    . "<option>token</option>"
    . "<option>language</option>";
    $aTokenAttr=GetAttributeFieldNames($surveyid);
    foreach ($aTokenAttr as $thisattrfieldname)
    {
        $tokenoutput.="<option>$thisattrfieldname</option>";
    }

    $tokenoutput .= "</select> "
    . "</li></ul>\n"
    . "<p><input class='submit' type='submit' value='".$clang->gT("Upload")."' />\n"
    . "<input type='hidden' name='subaction' value='upload' />\n"
    . "<input type='hidden' name='sid' value='$surveyid' />\n"
    . "</p></form>\n\n";
} # END form
开发者ID:nmklong,项目名称:limesurvey-cdio3,代码行数:48,代码来源:tokens.php

示例7: ajaxlabelsetpicker

 /**
  * This function prepares the data for labelset
  *
  * @access public
  * @return void
  */
 public function ajaxlabelsetpicker()
 {
     $match = (int) returnglobal('match');
     $surveyid = returnglobal('sid');
     if ($match == 1) {
         $language = GetBaseLanguageFromSurveyID($surveyid);
     } else {
         $language = null;
     }
     $resultdata = getlabelsets($language);
     echo ls_json_encode($resultdata);
 }
开发者ID:ryu1inaba,项目名称:LimeSurvey,代码行数:18,代码来源:question.php

示例8: include_once

 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 *
 * $Id: fck_LimeReplacementFields.php 10567 2011-07-22 19:07:09Z mot3 $
 */

include_once("login_check.php");

if(!isset($_SESSION['loginID']))
{
    die ("Unauthenticated Access Forbiden");
}

$surveyid=returnglobal('sid');
if (!isset($gid)) {$gid=returnglobal('gid');}
if (!isset($qid)) {$qid=returnglobal('qid');}
$fieldtype=preg_replace("/[^_.a-zA-Z0-9-]/", "",$_GET['fieldtype']);
$action=preg_replace("/[^_.a-zA-Z0-9-]/", "",$_GET['editedaction']);

//$InsertansUnsupportedtypes=Array('TEST-A','TEST-B','TEST-C','TEST-D');
$InsertansUnsupportedtypes=Array(); // Currently all question types are supported

$replFields=Array();
$isInstertansEnabled=false;

$limereplacementoutput="\t\t<script language=\"javascript\">\n"
. "\t\t\$(document).ready(function ()\n"
. "\t\t\t{\n"
. "\t\t\t\tLoadSelected() ;\n"
. "\t\t\t\tmydialog.SetOkButton( true ) ;\n"
. "\n"
开发者ID:nmklong,项目名称:limesurvey-cdio3,代码行数:31,代码来源:fck_LimeReplacementFields.php

示例9: array_diff

 $aValidFields = array_diff($aValidFields, $dontimportfields);
 $queryOldValues = "SELECT " . implode(", ", array_map("db_quote_id", $aValidFields)) . " FROM {$oldtable} ";
 $resultOldValues = db_execute_assoc($queryOldValues) or safe_die("Error:<br />{$queryOldValues}<br />" . $connect->ErrorMsg());
 $iRecordCount = $resultOldValues->RecordCount();
 $aSRIDConversions = array();
 while ($row = $resultOldValues->FetchRow()) {
     $iOldID = $row['id'];
     unset($row['id']);
     $sInsertSQL = "INSERT into {$activetable} (" . implode(",", array_map("db_quote_id", array_keys($row))) . ") VALUES (" . implode(",", array_map("db_quoteall", array_values($row))) . ")";
     $result = $connect->Execute($sInsertSQL) or safe_die("Error:<br />{$sInsertSQL}<br />" . $connect->ErrorMsg());
     $aSRIDConversions[$iOldID] = $connect->Insert_Id($activetable, "id");
 }
 $_SESSION['flashmessage'] = sprintf($clang->gT("%s old response(s) were successfully imported."), $iRecordCount);
 $sOldTimingsTable = substr($oldtable, 0, strrpos($oldtable, '_')) . '_timings' . substr($oldtable, strrpos($oldtable, '_'));
 $sNewTimingsTable = db_table_name_nq("survey_{$surveyid}_timings");
 if (tableExists(sStripDBPrefix($sOldTimingsTable)) && tableExists(sStripDBPrefix($sNewTimingsTable)) && returnglobal('importtimings') == 'Y') {
     // Import timings
     $aFieldsOldTimingTable = array_values($connect->MetaColumnNames($sOldTimingsTable, true));
     $aFieldsNewTimingTable = array_values($connect->MetaColumnNames($sNewTimingsTable, true));
     $aValidTimingFields = array_intersect($aFieldsOldTimingTable, $aFieldsNewTimingTable);
     $queryOldValues = "SELECT " . implode(", ", $aValidTimingFields) . " FROM {$sOldTimingsTable} ";
     $resultOldValues = db_execute_assoc($queryOldValues) or safe_die("Error:<br />{$queryOldValues}<br />" . $connect->ErrorMsg());
     $iRecordCountT = $resultOldValues->RecordCount();
     $aSRIDConversions = array();
     while ($row = $resultOldValues->FetchRow()) {
         if (isset($aSRIDConversions[$row['id']])) {
             $row['id'] = $aSRIDConversions[$row['id']];
         }
         $sInsertSQL = "INSERT into {$sNewTimingsTable} (" . implode(",", array_map("db_quote_id", array_keys($row))) . ") VALUES (" . implode(",", array_map("db_quoteall", array_values($row))) . ")";
         $result = $connect->Execute($sInsertSQL) or safe_die("Error:<br />{$sInsertSQL}<br />" . $connect->ErrorMsg());
     }
开发者ID:ddrmoscow,项目名称:queXS,代码行数:31,代码来源:importoldresponses.php

示例10: array

        return array();
    } else {
        return $answerlist;
    }
}
$js_admin_includes[] = '../scripts/jquery/jquery.tablesorter.min.js';
$js_admin_includes[] = 'scripts/quotas.js';
if (bHasSurveyPermission($surveyid, 'quotas', 'read')) {
    if (isset($_POST['quotamax'])) {
        $_POST['quotamax'] = sanitize_int($_POST['quotamax']);
    }
    if (!isset($action)) {
        $action = returnglobal('action');
    }
    if (!isset($subaction)) {
        $subaction = returnglobal('subaction');
    }
    if (!isset($quotasoutput)) {
        $quotasoutput = "";
    }
    //if (!isset($_POST['autoload_url']) || empty($_POST['autoload_url'])) {$_POST['autoload_url']=0;} //queXS Removal
    if ($subaction == "insertquota" && bHasSurveyPermission($surveyid, 'quotas', 'create')) {
        if (!isset($_POST['quota_limit']) || $_POST['quota_limit'] < 0 || empty($_POST['quota_limit']) || !is_numeric($_POST['quota_limit'])) {
            $_POST['quota_limit'] = 0;
        }
        array_walk($_POST, 'db_quote', true);
        $query = "INSERT INTO " . db_table_name('quota') . " (sid,name,qlimit,action,autoload_url)\n            VALUES ('{$surveyid}','{$_POST['quota_name']}','{$_POST['quota_limit']}','1', '1')";
        $connect->Execute($query) or safe_die("Error inserting limit" . $connect->ErrorMsg());
        $quotaid = $connect->Insert_Id(db_table_name_nq('quota'), "id");
        //Get the languages used in this survey
        $langs = GetAdditionalLanguagesFromSurveyID($surveyid);
开发者ID:ddrmoscow,项目名称:queXS,代码行数:31,代码来源:quota.php

示例11:

    $fieldsarray["{SURVEYURL}"]="<a href='$publicurl/index.php?lang=".$baselang."&sid=$surveyid&token=$newtoken'>".htmlspecialchars("$publicurl/index.php?lang=".$baselang."&sid=$surveyid&token=$newtoken")."</a>";
    $fieldsarray["{OPTOUTURL}"]="<a href='$publicurl/optout.php?lang=".$baselang."&sid=$surveyid&token=$newtoken'>".htmlspecialchars("$publicurl/optout.php?lang=".$baselang."&sid=$surveyid&token=$newtoken")."</a>";
}
else
{
    $useHtmlEmail = false;
    $fieldsarray["{SURVEYURL}"]="$publicurl/index.php?lang=".$baselang."&sid=$surveyid&token=$newtoken";
    $fieldsarray["{OPTOUTURL}"]="$publicurl/optout.phplang=".$baselang."&sid=$surveyid&token=$newtoken";
}

$message=ReplaceFields($message, $fieldsarray);
$subject=ReplaceFields($subject, $fieldsarray);

$html=""; //Set variable

if (SendEmailMessage($message, $subject, returnglobal('register_email'), $from, $sitename,$useHtmlEmail,getBounceEmail($surveyid)))
{
    // TLR change to put date into sent
    //	$query = "UPDATE {$dbprefix}tokens_$surveyid\n"
    //			."SET sent='Y' WHERE tid=$tid";
    $today = date_shift(date("Y-m-d H:i:s"), "Y-m-d H:i", $timeadjust);
    $query = "UPDATE {$dbprefix}tokens_$surveyid\n"
    ."SET sent='$today' WHERE tid=$tid";
    $result=$connect->Execute($query) or safe_die ("$query<br />".$connect->ErrorMsg());     //Checked
    $html="<center>".$clang->gT("Thank you for registering to participate in this survey.")."<br /><br />\n".$clang->gT("An email has been sent to the address you provided with access details for this survey. Please follow the link in that email to proceed.")."<br /><br />\n".$clang->gT("Survey Administrator")." {ADMINNAME} ({ADMINEMAIL})";
    $html=ReplaceFields($html, $fieldsarray);
    $html .= "<br /><br /></center>\n";
}
else
{
    $html="Email Error";
开发者ID:nmklong,项目名称:limesurvey-cdio3,代码行数:31,代码来源:register.php

示例12: returnglobal

/*
 * LimeSurvey
 * Copyright (C) 2007 The LimeSurvey Project Team / Carsten Schmitz
 * All rights reserved.
 * License: GNU/GPL License v2 or later, see LICENSE.php
 * LimeSurvey is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 *
 * $Id: deletesurvey.php 10470 2011-07-10 13:00:39Z c_schmitz $
 */
//Ensure script is not run directly, avoid path disclosure
include_once "login_check.php";
$deleteok = returnglobal('deleteok');
$surveyid = (int) $surveyid;
$deletesurveyoutput = "<br />\n";
$deletesurveyoutput .= "<div class='messagebox ui-corner-all'>\n";
$deletesurveyoutput .= "<div class='header ui-widget-header'>" . $clang->gT("Delete survey") . "</div>\n";
if (!isset($surveyid) || !$surveyid) {
    $deletesurveyoutput .= "<br /><font color='red'><strong>" . $clang->gT("Error") . "</strong></font><br />\n";
    $deletesurveyoutput .= $clang->gT("You have not selected a survey to delete") . "<br /><br />\n";
    $deletesurveyoutput .= "<input type='submit' value='" . $clang->gT("Main Admin Screen") . "' onclick=\"window.open('{$scriptname}', '_top')\">\n";
    $deletesurveyoutput .= "</td></tr></table>\n";
    $deletesurveyoutput .= "</body>\n</html>";
    return;
}
if (!isset($deleteok) || !$deleteok) {
    $deletesurveyoutput .= "\t<div class='warningheader'>\n" . $clang->gT("Warning") . "</div><br />\n";
    $deletesurveyoutput .= "\t<strong>" . $clang->gT("You are about to delete this survey") . " ({$surveyid})</strong><br /><br />\n";
开发者ID:portokallidis,项目名称:Metamorphosis-Meducator,代码行数:31,代码来源:deletesurvey.php

示例13: returnglobal

}
//LabelID
if (!isset($code)) {
    $code = returnglobal('code');
}
// ??
if (!isset($action)) {
    $action = returnglobal('action');
}
//Desired action
if (!isset($subaction)) {
    $subaction = returnglobal('subaction');
}
//Desired subaction
if (!isset($editedaction)) {
    $editedaction = returnglobal('editedaction');
}
// for html editor integration
if ($action != 'showprintablesurvey' && substr($action, 0, 4) != 'ajax') {
    $adminoutput = "<div id='wrapper'>";
} else {
    $adminoutput = '';
}
if ($casEnabled == true) {
    include_once "login_check_cas.php";
} else {
    include_once 'login_check.php';
}
if ($action == 'CSRFwarn') {
    include 'access_denied.php';
}
开发者ID:portokallidis,项目名称:Metamorphosis-Meducator,代码行数:31,代码来源:admin.php

示例14: ajaxlabelsetpicker

 /**
  * This function prepares the data for labelset
  *
  * @access public
  * @return void
  */
 public function ajaxlabelsetpicker()
 {
     $match = (int) returnglobal('match');
     $surveyid = returnglobal('sid');
     if ($match == 1) {
         $language = GetBaseLanguageFromSurveyID($surveyid);
     } else {
         $language = null;
     }
     $resultdata = getlabelsets($language);
     // Label set title really don't need HTML
     foreach ($resultdata as &$aResult) {
         $aResult = array_map('flattenText', $aResult);
     }
     header('Content-type: application/json');
     echo ls_json_encode($resultdata);
 }
开发者ID:CSCI-462-01-2016,项目名称:LimeSurvey,代码行数:23,代码来源:questions.php

示例15: stripslashes

//if (get_magic_quotes_gpc())
//$_POST  = array_map('stripslashes', $_POST);
if (isset($_POST['method']) && get_magic_quotes_gpc())
{
    $_POST['method']  = stripslashes($_POST['method']);
}

$labelsoutput='';
if($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $_SESSION['USER_RIGHT_MANAGE_LABEL'] == 1)
{

    $js_admin_includes[]='scripts/labels.js';
    if (isset($_POST['sortorder'])) {$postsortorder=sanitize_int($_POST['sortorder']);}

    if (!isset($action)) {$action=returnglobal('action');}
    if (!isset($lid)) {$lid=returnglobal('lid');}

    //DO DATABASE UPDATESTUFF
    if ($action == "updateset") {updateset($lid);}
    if ($action == "insertlabelset") {$lid=insertlabelset();}
    if ($action == "modlabelsetanswers") {modlabelsetanswers($lid);}
    if ($action == "deletelabelset") {if (deletelabelset($lid)) {$lid=0;}}
    if ($action == "importlabels")
    {
        include("importlabel.php");
    }
    if ($action == "importlabelresources")
    {
        include("import_resources_zip.php");
        if (isset($importlabelresourcesoutput)) {$labelsoutput.= $importlabelresourcesoutput;}
        return;
开发者ID:nmklong,项目名称:limesurvey-cdio3,代码行数:31,代码来源:labels.php


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