100+ results results for 'php glob repo:mvriel/Docblox' (1907 ms)
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 36{ 37 const PRICE_SCOPE_GLOBAL = 0; 38 const PRICE_SCOPE_WEBSITE = 1; 42 const CONFIG_PARSE_URL_DIRECTIVES = 'catalog/frontend/parse_url_directives'; 43 const XML_PATH_CONTENT_TEMPLATE_FILTER = 'global/catalog/content/tempate_filter'; 44 const XML_PATH_DISPLAY_PRODUCT_COUNT = 'catalog/layered_navigation/display_product_count'; 239 /** 240 * Is Global Price 241 *eventapi.html.md https://gitlab.com/ggsaavedra/PredictionIO | Markdown | 412 lines
37 38INFO: By default, the Event Server is bound to 0.0.0.0, which serves global 39traffic. To tighten security, you may use `pio eventserver --ip 127.0.0.1` to 109 </div> 110 <div data-tab="PHP SDK" data-lang="php"> 111```php 111```php 112<?php 113 require_once("vendor/autoload.php"); 204 </div> 205 <div data-tab="PHP SDK" data-lang="php"> 206```php 206```php 207<?php 208 require_once("vendor/autoload.php");catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
1<?php 2/** 153 // debug info 154 global $USER; 155 233 // add debug info 234 global $USER; 235css.js https://gitlab.com/wilane/Booktype | JavaScript | 455 lines
6 * Licensed under the MIT License at: 7 * http://www.opensource.org/licenses/mit-license.php 8 * 10 11(function (global) { 12 44 * 45 * Global configuration options: 46 * 101 // doc will be undefined during a build 102 doc = global.document, 103 // find the head element and set it to it's standard property if nec.class-config.php https://gitlab.com/ngochuynh1991/cuacuon | PHP | 414 lines
1<?php 2/** 40 WPSEO_Options::reset(); 41 wp_redirect( admin_url( 'admin.php?page=wpseo_dashboard' ) ); 42 } 55 wp_enqueue_style( 'thickbox' ); 56 wp_enqueue_style( 'global' ); 57 wp_enqueue_style( 'wp-admin' ); 357 ?> 358 <div id="<?php echo esc_attr( $id ); ?>" class="yoastbox"> 359 <h1><?php echo $title; ?></h1> 359 <h1><?php echo $title; ?></h1> 360 <?php echo $content; ?> 361 </div> 361 </div> 362 <?php 363 }question.php https://gitlab.com/gregtyka/lfmawordpress | PHP | 406 lines
8 // Base class for custom post type to extends 9 learn_press_include( 'custom-post-types/abstract.php' ); 10 196 if (0 == $title.val().length) { 197 alert('<?php _e( 'Please enter the title of the question', 'learnpress' );?>'); 198 $title.focus(); 200 } else if ($('.lpr-question-types').length && ( 0 == $('.lpr-question-types').val().length )) { 201 alert('<?php _e( 'Please a type of question', 'learnpress' );?>'); 202 $('.lpr-question-types').focus(); 222 <?php foreach ( $questions as $type => $name ): ?> 223 <option value="<?php echo $type; ?>"><?php echo $name; ?></option> 224 <?php endforeach; ?> 389 global $pagenow, $post_type; 390 if ( !is_admin() || ( $pagenow != 'edit.php' ) || ( LP()->question_post_type != $post_type ) ) { 391 return false;BotApi.php https://gitlab.com/rasadeghnasab/advisor-telegrambot | PHP | 482 lines
1<?php 2 103 104 isset($this->keyboard_configs['global_buttons']) && $current_state->last_state != null ? $this->keyboardGlobalButtons() : $this->keyboard; 105 if ($current_state->body == 'قبل از نمایش نتیجه') { 105 if ($current_state->body == 'قبل از نمایش نتیجه') { 106 $this->keyboardGlobalButtons(['']); 107 } 185 $this->getKeyboard($current_state, $question); 186 $this->keyboardGlobalButtons(['global_buttons' => '']); 187 $this->keyboardMarkup(); 222 $this->getKeyboard($current_state, $question); 223 $this->keyboardGlobalButtons(['global_buttons' => '']); 224 $this->keyboardMarkup(); 249 $this->getKeyboard($currentState, $question); 250// $this->keyboardGlobalButtons(['global_buttons' => '']); 251 $this->keyboardMarkup();VarCloner.php https://gitlab.com/alamgircsejnu/AMS-Project-Laravel | PHP | 324 lines
1<?php 2 40 $cookie = (object) array(); // Unique object used to detect hard references 41 $gid = uniqid(mt_rand(), true); // Unique string used to detect the special $GLOBALS variable 42 $a = null; // Array cast for nested structures 127 128 // Copies of $GLOBALS have very strange behavior, 129 // let's detect them with some black magic 132 133 // Happens with copies of $GLOBALS 134 if (isset($v[$gid])) { 148 case 'object': 149 if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) { 150 $stub = new Stub(); 164 } else { 165 $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE)); 166 }class-wpb-map.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 563 lines
1<?php 2/** 12 * This class maps shortcodes settings to VC editors. You can manage add new shortcodes or manage default shortcodes 13 * mapped in config/map.php. For developers it is possible to use API functions to add update settings attributes. 14 * 14 * 15 * @see config/map.php 16 * @see include/helpers/helpers_api.php 88 protected static function getSettings() { 89 global $current_user; 90 126 * You need to shortcode's tag and settings to map correctly. 127 * Default shortcodes are mapped in config/map.php file. 128 * The best way is to call this method with "init" action callback function of WP. 541 /** 542 * Sorting method for WPBMap::generateUserData method. Called by usort php function. 543 * @deprecated - use Vc_Sort::sortByKey since 4.4grid.locale-en.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 224 lines
6 * Dual licensed under the MIT and GPL licenses: 7 * http://www.opensource.org/licenses/mit-license.php 8 * http://www.gnu.org/licenses/gpl.html 11/*jslint white: true */ 12/*global jQuery */ 13(function ($) { 158 masks: { 159 // see http://php.net/manual/en/function.date.php for PHP format used in jqGrid 160 // and see http://docs.jquery.com/UI/Datepicker/formatDate 160 // and see http://docs.jquery.com/UI/Datepicker/formatDate 161 // and https://github.com/jquery/globalize#dates for alternative formats used frequently 162 // one can find on https://github.com/jquery/globalize/tree/master/lib/cultures many 163 // information about date, time, numbers and currency formats used in different countries 164 // one should just convert the information in PHP format 165 // short date:cURL.php https://gitlab.com/x33n/ampache | PHP | 349 lines
1<?php 2/** 25 * 26 * @var array cURL information array, see {@see http://php.net/curl_getinfo} 27 */ 127 * @param array $requests Request data 128 * @param array $options Global options 129 * @return array Array of Requests_Response objects (may contain Requests_Exception or string responses as well) 313 * @param string $url 314 * @param array|object $data Data to build query using, see {@see http://php.net/http_build_query} 315 * @return string URL with dataquestiontype.php https://gitlab.com/JrLucena/moodle | PHP | 284 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 27 28require_once($CFG->dirroot . '/question/type/ddimageortext/questiontypebase.php'); 29 58 public function save_question_options($formdata) { 59 global $DB, $USER; 60 $context = $formdata->context; 146 public function move_files($questionid, $oldcontextid, $newcontextid) { 147 global $DB; 148 $fs = get_file_storage(); 170 protected function delete_files($questionid, $contextid) { 171 global $DB; 172 $fs = get_file_storage();class.php https://gitlab.com/alexprowars/bitrix | PHP | 524 lines
1<?php 2 117 { 118 global $USER; 119 186 { 187 global $APPLICATION; 188 $templateName = null; 316 317 global $USER; 318 390 { 391 global $USER; 392 423 { 424 global $USER; 425class-storefront-woocommerce.php https://gitlab.com/leobelizquierdo/cabotsubmitter-wordpress | PHP | 339 lines
1<?php 2/** 73 public function woocommerce_scripts() { 74 global $storefront_version; 75 101 </script> 102 <?php 103 }css_editor.js https://gitlab.com/oxidigitaluser/liguelista | JavaScript | 343 lines
8// Safety first 9/** global window.i18nLocale */ 10if (_.isUndefined(window.vc)) var vc = {atts: {}}; 11(function ($) { 12 var preloaderUrl = ajaxurl.replace(/admin\-ajax\.php/, 'images/wpspin_light.gif'), 13 template_options = {ServerDatabasesControllerTest.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 315 lines
14 15require_once 'test/libraries/stubs/ResponseStub.php'; 16require_once 'test/PMATestCase.php'; 20 * 21 * @package PhpMyAdmin-test 22 */ 41 42 $GLOBALS['table'] = "table"; 43 $GLOBALS['replication_info']['master']['status'] = false; 120 $this->assertContains( 121 '<form class="ajax" action="server_databases.php" ', 122 $html 153 $this->assertRegExp( 154 '/title="phpmyadmin"[[:space:]]*value="phpmyadmin"/', 155 $htmlDbSearchTest.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 270 lines
12require_once 'libraries/database_interface.inc.php'; 13require_once 'test/PMATestCase.php'; 14 20 * 21 * @package PhpMyAdmin-test 22 */ 88 89 $GLOBALS['dbi'] = $dbi; 90 163 . '</td><td><a name="browse_search" class="ajax" ' 164 . 'href="sql.php?db=pma&table' 165 . '=table1&goto=db_sql.php&pos=0&is_js_confirmed=0&' 175 . '<a name="delete_search" class="ajax" href' 176 . '="sql.php?db=pma&table=table1&goto=db_sql.php&pos=0' 177 . '&is_js_confirmed=0&sql_query=column2&server=0&'ListCommand.php https://gitlab.com/ntphuc/BackendFeedy | PHP | 278 lines
1<?php 2 17use Psy\Command\ListCommand\FunctionEnumerator; 18use Psy\Command\ListCommand\GlobalVariableEnumerator; 19use Psy\Command\ListCommand\InterfaceEnumerator; 76 77 new InputOption('globals', 'g', InputOption::VALUE_NONE, 'Include global variables.'), 78 new InputOption('internal', 'n', InputOption::VALUE_NONE, 'Limit to internal functions and classes.'), 150 new FunctionEnumerator($mgr), 151 new GlobalVariableEnumerator($mgr), 152 new InterfaceEnumerator($mgr), 249 250 foreach (array('globals', 'vars', 'constants', 'functions', 'classes', 'interfaces', 'traits') as $option) { 251 if ($input->getOption($option)) { 259 // if a target is passed, classes, functions, etc don't make sense 260 foreach (array('vars', 'globals', 'functions', 'classes', 'interfaces', 'traits') as $option) { 261 if ($input->getOption($option)) {header.php https://gitlab.com/kaouech/theme | PHP | 198 lines
1<?php include 'config.php' ?> 2<!DOCTYPE html> 56<body> 57<?php if (!isset($no_visible_elements) || !$no_visible_elements) { ?> 58 <!-- topbar starts --> 106 <ul class="collapse navbar-collapse nav navbar-nav top-menu"> 107 <li><a href="#"><i class="glyphicon glyphicon-globe"></i> Visit Site</a></li> 108 <li class="dropdown"> 131 <!-- topbar ends --> 132<?php } ?> 133<div class="ch-container"> 134 <div class="row"> 135 <?php if (!isset($no_visible_elements) || !$no_visible_elements) { ?> 136 171 class="glyphicon glyphicon-th"></i><span> Grid</span></a></li> 172 <li><a href="tour.html"><i class="glyphicon glyphicon-globe"></i><span> Tour</span></a></li> 173 <li><a class="ajax-link" href="icon.html"><iInput.php https://gitlab.com/dleonov/my-framework-two | PHP | 419 lines
120 121 $superGlobal = '_' . strtoupper($name); 122 122 123 if (isset($GLOBALS[$superGlobal])) 124 { 124 { 125 $this->inputs[$name] = new Input($GLOBALS[$superGlobal], $this->options); 126 393 // Load up all the globals. 394 foreach ($GLOBALS as $global => $data) 395 { 399 // Convert global name to input name. 400 $global = strtolower($global); 401 $global = substr($global, 1);site_speed.php https://gitlab.com/alexprowars/bitrix | PHP | 297 lines
2/** 3 * @global CUser $USER 4 * @global CMain $APPLICATION 5 */ 6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 7require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php"); 7require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php"); 8define("HELP_FILE", "settings/site_speed.php"); 9 23$APPLICATION->SetTitle(Loc::getMessage("MAIN_SITE_SPEED_TITLE")); 24require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php"); 25 100 if (\Bitrix\Main\ModuleManager::isModuleInstalled("perfmon")): 101 $mark = (double)COption::GetOptionString("perfmon", "mark_php_page_rate", ""); 102 ?>template.php https://gitlab.com/gregtyka/WordPress-stable | PHP | 394 lines
95 * Works by first retrieving the current slug for example 'category-default.php' and then 96 * trying category ID, for example 'category-1.php' and will finally fallback to category.php 97 * template, if those files don't exist. 185 * 186 * Attempts to locate 'home.php' first before falling back to 'index.php'. 187 * 193function get_home_template() { 194 $templates = array( 'home.php', 'index.php' ); 195 218 * Will first look for the specifically assigned page template 219 * The will search for 'page-{slug}.php' followed by 'page-id.php' 220 * and finally 'page.php' 296 * 297 * Some examples for the 'text/plain' mime type are 'text.php', 'plain.php', and 298 * finally 'text_plain.php'.ssp.class.php https://gitlab.com/victor.flores/prueba | PHP | 390 lines
1<?php 2 19// REMOVE THIS BLOCK - used for DataTables test environment only! 20$file = $_SERVER['DOCUMENT_ROOT'].'/datatables/mysql.php'; 21if ( is_file( $file ) ) { 138 { 139 $globalSearch = array(); 140 $columnSearch = array(); 152 $binding = self::bind( $bindings, '%'.$str.'%', PDO::PARAM_STR ); 153 $globalSearch[] = "`".$column['db']."` LIKE ".$binding; 154 } 175 176 if ( count( $globalSearch ) ) { 177 $where = '('.implode(' OR ', $globalSearch).')';class-wp-ms-users-list-table.php https://gitlab.com/gregtyka/helloworld1234 | PHP | 307 lines
1<?php 2/** 105 /** 106 * @global string $mode 107 * @param string $which 109 protected function pagination( $which ) { 110 global $mode; 111 181 <th scope="row" class="check-column"> 182 <label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>"><?php echo sprintf( __( 'Select %s' ), $user->user_login ); ?></label> 183 <input type="checkbox" id="blog_<?php echo $user->ID ?>" name="allusers[]" value="<?php echo esc_attr( $user->ID ) ?>" /> 184 </th> 185 <?php 186 break; 192 echo "<td $attributes>"; ?> 193 <?php echo $avatar; ?><strong><a href="<?php echo $edit_link; ?>" class="edit"><?php echo $user->user_login; ?></a><?php 194 if ( in_array( $user->user_login, $super_admins ) )layout.class.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 267 lines
1<?php 2/** 15 16Files: default.php, style.css 17 46 public function display_page($page) { 47 global $config, $user; 48 127 $qp = explode("/", ltrim(_get_query(), "/")); 128 // php sucks 129 switch($qp[0]) {main.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 371 lines
1<?php 2/* 153 public function onPageRequest(PageRequestEvent $event) { 154 global $user, $page; 155 if($event->page_matches("tag_edit")) { 175 public function onPostListBuilding(PostListBuildingEvent $event) { 176 global $user; 177 if($user->can("bulk_edit_image_source") && !empty($event->search_terms)) { 182 public function onImageInfoSet(ImageInfoSetEvent $event) { 183 global $user; 184 if($user->can("edit_image_owner")) { 206 public function onOwnerSet(OwnerSetEvent $event) { 207 global $user; 208 if($user->can("edit_image_owner") && (!$event->image->is_locked() || $user->can("edit_image_lock"))) { 213 public function onTagSet(TagSetEvent $event) { 214 global $user; 215 if($user->can("edit_image_tag") && (!$event->image->is_locked() || $user->can("edit_image_lock"))) {README.md https://gitlab.com/matijabelec/bigpandadev | Markdown | 343 lines
12$js = new AssetCollection(array( 13 new GlobAsset('/path/to/js/*'), 14 new FileAsset('/path/to/another.js'), 65 66``` php 67<?php 95 * `LessFilter`: parses LESS into CSS (using less.js with node.js) 96 * `LessphpFilter`: parses LESS into CSS (using lessphp) 97 * `OptiPngFilter`: optimize your PNGs 104 * `Sass\ScssFilter`: parses SCSS into CSS 105 * `ScssphpFilter`: parses SCSS using scssphp 106 * `SeparatorFilter`: inserts a separator between assets to prevent merge failures 134 135``` php 136<?phptbl_structure.php https://gitlab.com/ctheilman92/Aging-In-Place | PHP | 469 lines
19require_once 'libraries/structure.lib.php'; 20require_once 'libraries/index.lib.php'; 21 42if (isset($_REQUEST['change_column'])) { 43 PMA_displayHtmlForColumnChange($db, $table, null, 'tbl_structure.php'); 44 exit; 94 // browsing the table displaying only selected fields/columns 95 $GLOBALS['active_page'] = 'sql.php'; 96 $sql_query = ''; 137require_once 'libraries/tbl_common.inc.php'; 138$url_query .= '&goto=tbl_structure.php&back=tbl_structure.php'; 139$url_params['goto'] = 'tbl_structure.php'; 442 //return the list of index 443 $response->addJSON('indexes_list', PMA_Index::getView($GLOBALS['table'], $GLOBALS['db'])); 444 $response->addHTML(PMA_getHtmlForDisplayIndexes());slideshow.php https://gitlab.com/ibnukipa/cakra | PHP | 306 lines
1<?php 2 9 function __construct() { 10 global $shortcode_tags; 11 91 <fieldset> 92 <select name="<?php echo esc_attr( $name ); ?>" id="<?php esc_attr( $name ); ?>"> 93 <?php foreach ( $values as $key => $value ) : ?> 93 <?php foreach ( $values as $key => $value ) : ?> 94 <option value="<?php echo esc_attr( $key ); ?>" <?php selected( $key, $option ); ?>> 95 <?php echo esc_html( $value ); ?> 96 </option> 97 <?php endforeach; ?> 98 </select> 98 </select> 99 <?php if ( ! empty( $extra_text ) ) : ?> 100 <p class="description"><?php echo esc_html( $extra_text ); ?></p>walkthrough_test.php https://gitlab.com/JrLucena/moodle | PHP | 309 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 29 30global $CFG; 31require_once(dirname(__FILE__) . '/../../../engine/lib.php'); 31require_once(dirname(__FILE__) . '/../../../engine/lib.php'); 32require_once(dirname(__FILE__) . '/../../../engine/tests/helpers.php'); 33AutoloadGenerator.php https://gitlab.com/ngochuynh1991/cuacuon | PHP | 346 lines
140 file_put_contents($vendorPath.'/autoload_52.php', $this->getAutoloadFile($vendorPathToTargetDirCode, $suffix)); 141 file_put_contents($targetDir.'/autoload_real_52.php', $this->getAutoloadRealFile(true, (bool) $includePathFile, $targetDirLoader, $filesCode, $vendorPathCode, $appBaseDirCode, $suffix, $useGlobalIncludePath, $prependAutoloader)); 142 221 222// autoload_52.php generated by xrstf/composer-php52 223 234 // - https://github.com/composer/composer/issues/959 235 // - https://bugs.php.net/bug.php?id=52144 236 // - https://bugs.php.net/bug.php?id=61576 236 // - https://bugs.php.net/bug.php?id=61576 237 // - https://bugs.php.net/bug.php?id=59298 238 245 246// autoload_real_52.php generated by xrstf/composer-php52 247Clover.php https://gitlab.com/kimting254/wbms | PHP | 284 lines
1<?php 2/* 2/* 3 * This file is part of the PHP_CodeCoverage package. 4 * 4 * 5 * (c) Sebastian Bergmann <sebastian@phpunit.de> 6 * 11/** 12 * Generates a Clover XML logfile from an PHP_CodeCoverage object. 13 * 15 */ 16class PHP_CodeCoverage_Report_Clover 17{ 18 /** 19 * @param PHP_CodeCoverage $coverage 20 * @param string $targetsmile_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 342 lines
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3/** @global CMain $APPLICATION */ 3/** @global CMain $APPLICATION */ 4/** @global CDatabase $DB */ 5 13 14require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/socialnetwork/include.php"); 15 17 18require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/socialnetwork/prolog.php"); 19 191 if ($save <> '' && $strErrorMessage == '') 192 LocalRedirect("socnet_smile.php?lang=".LANG."&".GetFilterParams("filter_", false)); 193}class.php https://gitlab.com/alexprowars/bitrix | PHP | 339 lines
1<?php 2use Bitrix\Main, 50 { 51 global $USER, $DB; 52 if(is_object($USER) && $USER->isAuthorized()) 59 array('=DATE_TO' => false), 60 array('>DATE_TO' => date($DB->dateFormatToPHP(\CLang::getDateFormat('FULL')), time())) 61 ) 289 290 global $APPLICATION; 291 $cleanedParams = array('result', 'contact', 'message', static::ACTION_SUBSCRIBER_IDENTIFICATION); 309 310 global $APPLICATION; 311 $cleanedParams = array('result', 'message', 333 334 global $APPLICATION; 335 $cleanedParams = array('subscribeId', 'message', 'userContact', 'productId', static::ACTION_UNSUBSCRIBE);pay_system.php https://gitlab.com/alexprowars/bitrix | PHP | 410 lines
1<?php 2use Bitrix\Sale\PaySystem; 137 { 138 global $DB, $USER; 139 141 { 142 $GLOBALS["APPLICATION"]->ThrowException(GetMessage("SKGPS_EMPTY_NAME"), "ERROR_NO_NAME"); 143 return false; 176 { 177 $GLOBALS["APPLICATION"]->ThrowException(GetMessage("SKGPS_ORDERS_TO_PAYSYSTEM"), "ERROR_ORDERS_TO_PAYSYSTEM"); 178 return false;import.php https://gitlab.com/JrLucena/moodle | PHP | 247 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 24 25require_once(dirname(__FILE__).'/../../../config.php'); 26require_once($CFG->dirroot.'/lib/formslib.php'); 26require_once($CFG->dirroot.'/lib/formslib.php'); 27require_once($CFG->dirroot.'/grade/lib.php'); 28require_once($CFG->libdir.'/gradelib.php'); 28require_once($CFG->libdir.'/gradelib.php'); 29require_once('import_outcomes_form.php'); 30 34 35$PAGE->set_url('/grade/edit/outcome/import.php', array('courseid' => $courseid)); 36$PAGE->set_pagelayout('admin'); 46 if (empty($CFG->enableoutcomes)) { 47 redirect('../../index.php?id='.$courseid); 48 }media-template.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 467 lines
1<?php 2/** 15function wp_print_media_templates() { 16 global $is_IE; 17 $class = 'media-modal wp-core-ui'; 30 <script type="text/html" id="tmpl-media-modal"> 31 <div class="<?php echo $class; ?>"> 32 <a class="media-modal-close" href="#" title="<?php esc_attr_e('Close'); ?>"><span class="media-modal-icon"></span></a> 95 96 <?php if ( ( $GLOBALS['is_IE'] || $GLOBALS['is_opera']) && $max_upload_size > 100 * 1024 * 1024 ) : 97 $browser_uploader = admin_url( 'media-new.php?browser-uploader&post_id=' ) . '{{ data.postId }}'; 328 if ( size ) { #> 329 <option value="<?php echo esc_attr( $value ); ?>" <?php selected( $value, 'full' ); ?>> 330 <?php echo esc_html( $name ); ?> – {{ size.width }} × {{ size.height }} 363 <?php for ( $i = 1; $i <= 9; $i++ ) : ?> 364 <option value="<?php echo esc_attr( $i ); ?>" <?php selected( $i, 3 ); ?>> 365 <?php echo esc_html( $i ); ?>compat.php https://gitlab.com/websumon/tosnib | PHP | 339 lines
2/** 3 * WordPress implementation for PHP functions either missing from older PHP versions or not included by default. 4 * 4 * 5 * @package PHP 6 * @access private 185 function json_encode( $string ) { 186 global $wp_json; 187 188 if ( ! ( $wp_json instanceof Services_JSON ) ) { 189 require_once( ABSPATH . WPINC . '/class-json.php' ); 190 $wp_json = new Services_JSON(); 204 function json_decode( $string, $assoc_array = false ) { 205 global $wp_json; 206wikiparser_test.php git://github.com/moodle/moodle.git | PHP | 247 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 20 * @package mod_wiki 21 * @category phpunit 22 * @copyright 2009 Marc Alier, Jordi Piguillem marc.alier@upc.edu 35 36global $CFG; 37require_once($CFG->dirroot . '/mod/wiki/parser/parser.php'); 91 $input = '<h1>Code & Test</h1>'; 92 $output = '<h3><a name="toc-1"></a>Code & Test <a href="edit.php?pageid=&section=Code+%26amp%3B+Test" '. 93 'class="wiki_edit_section">[edit]</a></h3>' . "\n"; 94 $toc = '<div class="wiki-toc"><p class="wiki-toc-title">Table of contents</p><p class="wiki-toc-section-1 '. 95 'wiki-toc-section">1. <a href="#toc-1">Code & Test <a href="edit.php?pageid=&section=Code+%26amp%3B+'. 96 'Test" class="wiki_edit_section">[edit]</a></a></p></div>'; 104 $input = '<h1>Another áéíóúç€ test</h1>'; 105 $output = '<h3><a name="toc-1"></a>Another áéíóúç€ test <a href="edit.php?pageid=&section=Another+%C'. 106 '3%A1%C3%A9%C3%AD%C3%B3%C3%BA%C3%A7%E2%82%AC+test" class="wiki_edit_section">[edit]</a></h3>' . "\n";variables_8php_source.html https://gitlab.com/zaverichintan/geometry_viewer | HTML | 127 lines
6<meta name="generator" content="Doxygen 1.8.4"/> 7<title>BRL-CAD Online Geometry Viewer: variables.php Source File</title> 8<link href="tabs.css" rel="stylesheet" type="text/css"/> 84<div class="contents"> 85<a href="variables_8php.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <?php</div> 86<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">/* V A R I A B L E S . P H P</span></div> 104<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> */</span></div> 105<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="variables_8php.html#a9b2aca73038168dc85a3fb6d6af948a8"> 26</a></span>  <a class="code" href="variables_8php.html#a9b2aca73038168dc85a3fb6d6af948a8">$uploadPath</a> = <span class="stringliteral">"user_accounts/$username"</span>;</div> 106<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div> 106<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div> 107<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="variables_8php.html#a107cb3732c3eb625a67c9896596c6c74"> 29</a></span>  <a class="code" href="variables_8php.html#a107cb3732c3eb625a67c9896596c6c74">$objPath</a> = <span class="stringliteral">"user_accounts/$username/obj"</span>;</div> 108<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div> 116<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> ?></div> 117<div class="ttc" id="variables_8php_html_a9b2aca73038168dc85a3fb6d6af948a8"><div class="ttname"><a href="variables_8php.html#a9b2aca73038168dc85a3fb6d6af948a8">$uploadPath</a></div><div class="ttdeci">$uploadPath</div><div class="ttdef"><b>Definition:</b> <a href="variables_8php_source.html#l00026">variables.php:26</a></div></div> 118<div class="ttc" id="variables_8php_html_a107cb3732c3eb625a67c9896596c6c74"><div class="ttname"><a href="variables_8php.html#a107cb3732c3eb625a67c9896596c6c74">$objPath</a></div><div class="ttdeci">$objPath</div><div class="ttdef"><b>Definition:</b> <a href="variables_8php_source.html#l00029">variables.php:29</a></div></div>PMA_SetupIndex_test.php https://gitlab.com/luyxtran264/myproject | PHP | 397 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 3/** 4 * tests for methods under setup/lib/index.lib.php 5 * 5 * 6 * @package PhpMyAdmin-test 7 */ 14 15require_once 'libraries/sanitizing.lib.php'; 16require_once 'libraries/config/config_functions.lib.php'; 16require_once 'libraries/config/config_functions.lib.php'; 17require_once 'setup/lib/index.lib.php'; 18require_once 'libraries/sanitizing.lib.php'; 20/** 21 * tests for methods under setup/lib/index.lib.php 22 *mkdist.php https://gitlab.com/0072016/appengine-php | PHP | 548 lines
15 16$dist_dir = $build_dir . "/php-" . phpversion(); 17$test_dir = $build_dir . "/php-test-pack-" . phpversion(); 215$phplib = str_replace(".dll", ".lib", $phpdll); 216copy("$build_dir/$phplib", "$dist_dir/dev/$phplib"); 217/* debug builds; copy the symbols too */ 240 "win32/install.txt" => "install.txt", 241 "win32/pws-php5cgi.reg" => "pws-php5cgi.reg", 242 "win32/pws-php5isapi.reg" => "pws-php5isapi.reg", 461} 462copy('run-tests.php', $test_dir . '/run-test.php'); 463 495 496 /* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar) 497 * broken out of the tarballs */wysiwyg.api.php https://gitlab.com/endomorphosis/tactilevision | PHP | 206 lines
1<?php 2 64 ), 65 // A list of global, native editor configuration settings to 66 // override. To be used rarely and only when required.about.css https://gitlab.com/webkod3r/tripolis | CSS | 481 lines
3 4 1.0 Global: About, Credits, Freedoms 5 1.1 Typography 14/*------------------------------------------------------------------------------ 15 1.0 - Global: About, Credits, Freedoms 16------------------------------------------------------------------------------*/ 408 409.freedoms-php .about-wrap ol { 410 margin: 40px 60px; 412 413.freedoms-php .about-wrap ol li { 414 list-style-type: decimal; 417 418.freedoms-php .about-wrap ol p { 419 font-weight: normal;widgets.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 241 lines
1<?php 2/** 14function wp_list_widgets() { 15 global $wp_registered_widgets, $sidebars_widgets, $wp_registered_widget_controls; 16 78 <div class="sidebar-name-arrow"><br /></div> 79 <h3><?php echo esc_html( $sidebar_name ); ?> <span class="spinner"></span></h3> 80 </div> 80 </div> 81 <?php 82 } 105function wp_list_widget_controls_dynamic_sidebar( $params ) { 106 global $wp_registered_widgets; 107 static $i = 0; 126function next_widget_id_number($id_base) { 127 global $wp_registered_widgets; 128 $number = 1;AdminCarriers.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 298 lines
1<?php 2 3/** 4 * Carriers tab for admin panel, AdminCarriers.php 5 * @category admin 8 * @copyright PrestaShop 9 * @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0 10 * @version 1.3 13 14include_once(PS_ADMIN_DIR.'/../classes/AdminTab.php'); 15 21 { 22 global $cookie; 23 48 { 49 global $currentIndex, $cookie; 50 parent::displayForm();site_main.tpl https://gitlab.com/raku.takayama/eccube-2_13 | Smarty Template | 199 lines
39 <!--{if $HeaderTopNaviItem.php_path != ""}--> 40 <!--{include_php file=$HeaderTopNaviItem.php_path items=$HeaderTopNaviItem}--> 41 <!--{else}--> 106 <!--{if $MainHeadItem.php_path != ""}--> 107 <!--{include_php file=$MainHeadItem.php_path items=$MainHeadItem}--> 108 <!--{else}--> 142 <!--{if $RightNaviItem.php_path != ""}--> 143 <!--{include_php file=$RightNaviItem.php_path items=$RightNaviItem}--> 144 <!--{else}--> 160 <!--{if $BottomNaviItem.php_path != ""}--> 161 <!--{include_php file=$BottomNaviItem.php_path items=$BottomNaviItem}--> 162 <!--{else}--> 185 <!--{if $FooterBottomNaviItem.php_path != ""}--> 186 <!--{include_php file=$FooterBottomNaviItem.php_path items=$FooterBottomNaviItem}--> 187 <!--{else}-->grid.locale-ro.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 198 lines
5 * Dual licensed under the MIT and GPL licenses: 6 * http://www.opensource.org/licenses/mit-license.php 7 * http://www.gnu.org/licenses/gpl.html 10/*jslint white: true */ 11/*global jQuery */ 12(function (factory) { 20 } else { 21 // Browser globals 22 factory(jQuery);s2member-files.php https://gitlab.com/Gashler/dp | PHP | 108 lines
1<?php 2if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"])) 4 5global /* A Multisite ``$base`` configuration? */ $base; 6$ws_plugin__s2member_temp_s_base = (!empty ($base)) ? $base : c_ws_plugin__s2member_utils_urls::parse_url (network_home_url ("/"), PHP_URL_PATH); 20 RewriteEngine On 21 RewriteBase <?php echo $ws_plugin__s2member_temp_s_base . "\n"; ?> 22 28 RewriteCond %{ENV:s2member_file_download_wp_vdir_check} !^complete$ 29 RewriteCond %{THE_REQUEST} ^(?:GET|HEAD)(?:[\ ]+)(?:<?php echo preg_quote ($ws_plugin__s2member_temp_s_base, " "); ?>)([_0-9a-zA-Z\-]+/)(?:wp-content/) 30 RewriteRule ^(.*)$ - [E=s2member_file_download_wp_vdir:,E=s2member_file_download_wp_vdir:%1,E=s2member_file_download_wp_vdir_check:complete] 107 108<?php unset ($ws_plugin__s2member_temp_s_base); ?>flatrate.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 171 lines
1<?php 2class flatrate { 68 function getQuote($for_display = false) { 69 global $wpdb, $wpsc_cart; 70 if (isset($_POST['country'])) { 123 function get_item_shipping(&$cart_item) { 124 global $wpdb, $wpsc_cart; 125 $unit_price = $cart_item->unit_price;grid.locale-fa.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 173 lines
3 * Dual licensed under the MIT and GPL licenses: 4 * http://www.opensource.org/licenses/mit-license.php 5 * http://www.gnu.org/licenses/gpl.html 8/*jslint white: true */ 9/*global jQuery */ 10(function ($) {SQLAzureFederationsSynchronizer.php https://gitlab.com/Marwamimo/Crowdrise_Web | PHP | 297 lines
75 76 $globalSql = $this->synchronizer->getCreateSchema($global); 77 if ($globalSql) { 79 "USE FEDERATION ROOT WITH RESET;"; 80 $sql = array_merge($sql, $globalSql); 81 } 147 148 if ($globalSql) { 149 $sql[] = "-- Work on Root Federation\nUSE FEDERATION ROOT WITH RESET;"; 149 $sql[] = "-- Work on Root Federation\nUSE FEDERATION ROOT WITH RESET;"; 150 $sql = array_merge($sql, $globalSql); 151 } 239 $this->shardManager->selectGlobal(); 240 $globalSql = $operation($this->synchronizer, $global); 241ms-default-filters.php https://gitlab.com/VTTE/sitios-vtte | PHP | 128 lines
1<?php 2/** 7 * 8 * Not all of the Multisite default hooks are found in ms-default-filters.php 9 * 11 * @subpackage Multisite 12 * @see default-filters.php 13 * @since 3.0.0 76// Administration. 77add_filter( 'term_id_filter', 'global_terms', 10, 2 ); 78add_action( 'delete_post', '_update_posts_count_on_delete' ); 101// Mail. 102add_action( 'phpmailer_init', 'fix_phpmailer_messageid' ); 103 123 124// If the network upgrade hasn't run yet, assume ms-files.php rewriting is used. 125add_filter( 'default_site_option_ms_files_rewriting', '__return_true' );shortcodes.php https://gitlab.com/webkod3r/tripolis | PHP | 242 lines
1<?php 2 185 if($footer) { 186 $GLOBALS['lsSliderInit'][] = $output['init']; 187 return $output['markup']; 210 211 // Get phpQuery 212 if(!class_exists('phpQuery')) { 213 libxml_use_internal_errors(true); 214 include LS_ROOT_PATH.'/helpers/phpQuery.php'; 215 } 216 217 include LS_ROOT_PATH.'/config/defaults.php'; 218 include LS_ROOT_PATH.'/includes/slider_markup_init.php'; 218 include LS_ROOT_PATH.'/includes/slider_markup_init.php'; 219 include LS_ROOT_PATH.'/includes/slider_markup_html.php'; 220 $lsInit = implode('', $lsInit);Log.php https://gitlab.com/pollux1er/PerencoCanteenAdmin | PHP | 247 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 119 $this->_file_ext = (isset($config['log_file_extension']) && $config['log_file_extension'] !== '') 120 ? ltrim($config['log_file_extension'], '.') : 'php'; 121 154 * 155 * Generally this function will be called using the global log_message() function 156 * 181 $newfile = TRUE; 182 // Only add protection to php files 183 if ($this->_file_ext === 'php') 184 { 185 $message .= "<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>\n\n"; 186 }wrapper.php https://gitlab.com/webkod3r/tripolis | PHP | 213 lines
1<?php 2 2 3global $wpcom_api_key, $akismet_api_host, $akismet_api_port; 4extras.php https://gitlab.com/WPTRT/doingitwrong | PHP | 203 lines
85function wrong_setup_author() { 86 global $wp_query; 87 112function my_password_form() { 113 global $post; 114 179 <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label> 180 <input id="<?php echo $this->get_field_id( 'title' ); ?>" class="widefat" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $title; ?>" /> 181 <label for="<?php echo $this->get_field_id( 'limit' ); ?>"><?php _e( 'Limit:' ); ?></label> 181 <label for="<?php echo $this->get_field_id( 'limit' ); ?>"><?php _e( 'Limit:' ); ?></label> 182 <input id="<?php echo $this->get_field_id( 'limit' ); ?>" class="widefat" name="<?php echo $this->get_field_name( 'limit' ); ?>" type="text" value="<?php echo $limit; ?>" /> 183 <label for="<?php echo $this->get_field_id( 'type' ); ?>"><?php _e( 'Type:' ); ?></label> 183 <label for="<?php echo $this->get_field_id( 'type' ); ?>"><?php _e( 'Type:' ); ?></label> 184 <select id="<?php echo $this->get_field_id( 'type' ); ?>" name="<?php echo $this->get_field_name( 'type' ); ?>"> 185 <?php foreach ( $types as $key => $typo ) {join.html https://gitlab.com/victor.flores/prueba | HTML | 385 lines
31 editor = new $.fn.dataTable.Editor( { 32 ajax: "../php/join.php", 33 table: "#example", 53 ajax: { 54 url: "../php/join.php", 55 type: 'POST' 93 libraries <code>leftJoin()</code> method make working with joins on the server-side just as easy as on 94 the client-side - see the <a href="//editor.datatables.net/manual/php/joins">PHP join documentation</a> 95 for further information on the library options.</p> 162 editor = new $.fn.dataTable.Editor( { 163 ajax: "../php/join.php", 164 table: "#example", 184 ajax: { 185 url: "../php/join.php", 186 type: 'POST'Tabs.php https://gitlab.com/I-NOZex/quiz | PHP | 268 lines
1<?php 2/** 17 * 18 * ```php 19 * echo Tabs::widget([ 64 * - encode: boolean, optional, whether this label should be HTML-encoded. This param will override 65 * global `$this->encodeLabels` param. 66 * - headerOptions: array, optional, the HTML attributes of the tab header.cat_contractor_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 339 lines
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/catalog/prolog.php"); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/catalog/prolog.php"); 4global $APPLICATION; 5global $DB; 5global $DB; 6global $USER; 7 10$selfFolderUrl = $adminPage->getSelfFolderUrl(); 11$listUrl = $selfFolderUrl."cat_contractor_list.php?lang=".LANGUAGE_ID; 12$listUrl = $adminSidePanelHelper->editUrlToPublicPage($listUrl); 20{ 21 require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php"); 22config.values.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 277 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 6 * 7 * @package PhpMyAdmin 8 */ 9 10if (!defined('PHPMYADMIN')) { 11 exit; 144 array(''), 145 $GLOBALS['cfg']['AvailableCharsets'] 146); 181 array(''), 182 $GLOBALS['cfg']['AvailableCharsets'] 183); 222/** 223 * Basic validator assignments (functions from libraries/config/Validator.php 224 * and 'validators' object in js/config.js)admin.php http://jfusion.googlecode.com/svn/trunk/ | PHP | 434 lines
1<?php 2/** 14 */ 15//require_once dirname(__FILE__) . DS . 'factory.php'; 16 18 * JFusion Admin class for Magento 1.1 19 * For detailed descriptions on these functions please check the model.abstractadmin.php 20 * @package JFusion_Magento 48 $params = array(); 49 $params['database_host'] = (string)$xml->document->global[0]->resources[0]->default_setup[0]->connection[0]->host[0]->data(); 50 $params['database_name'] = (string)$xml->document->global[0]->resources[0]->default_setup[0]->connection[0]->dbname[0]->data(); 50 $params['database_name'] = (string)$xml->document->global[0]->resources[0]->default_setup[0]->connection[0]->dbname[0]->data(); 51 $params['database_user'] = (string)$xml->document->global[0]->resources[0]->default_setup[0]->connection[0]->username[0]->data(); 52 $params['database_password']= (string)$xml->document->global[0]->resources[0]->default_setup[0]->connection[0]->password[0]->data(); 52 $params['database_password']= (string)$xml->document->global[0]->resources[0]->default_setup[0]->connection[0]->password[0]->data(); 53 $params['database_prefix'] = (string)$xml->document->global[0]->resources[0]->db[0]->table_prefix[0]->data(); 54 $params['database_type'] = "mysql";widgets.php https://gitlab.com/gregtyka/helloworld1234 | PHP | 245 lines
1<?php 2/** 14function wp_list_widgets() { 15 global $wp_registered_widgets, $wp_registered_widget_controls; 16 78 <div class="sidebar-name-arrow"><br /></div> 79 <h3><?php echo esc_html( $sidebar_name ); ?> <span class="spinner"></span></h3> 80 </div> 80 </div> 81 <?php 82 } 105function wp_list_widget_controls_dynamic_sidebar( $params ) { 106 global $wp_registered_widgets; 107 static $i = 0; 126function next_widget_id_number($id_base) { 127 global $wp_registered_widgets; 128 $number = 1;export.php https://gitlab.com/gregtyka/helloworld1234 | PHP | 244 lines
180 <option value="0"><?php _e( 'End Date' ); ?></option> 181 <?php export_date_options(); ?> 182 </select> 189 foreach ( $post_stati as $status ) : ?> 190 <option value="<?php echo esc_attr( $status->name ); ?>"><?php echo esc_html( $status->label ); ?></option> 191 <?php endforeach; ?> 220 <?php foreach ( $post_stati as $status ) : ?> 221 <option value="<?php echo esc_attr( $status->name ); ?>"><?php echo esc_html( $status->label ); ?></option> 222 <?php endforeach; ?> 227<?php foreach ( get_post_types( array( '_builtin' => false, 'can_export' => true ), 'objects' ) as $post_type ) : ?> 228<p><label><input type="radio" name="content" value="<?php echo esc_attr( $post_type->name ); ?>" /> <?php echo esc_html( $post_type->label ); ?></label></p> 229<?php endforeach; ?> 243 244<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> 245widget-featured-services.php https://gitlab.com/luyxtran264/myproject | PHP | 185 lines
145 <?php for ($i=1;$i<13;$i++) { ?> 146 <option <?php echo ($i == $instance['number_of_services'] ? 'selected="selected"' : ''); ?> value="<?php echo esc_attr ( $i ); ?>"><?php echo esc_html($i); ?></option> 147 <?php } ?> 163 <label for="<?php echo esc_attr( $this->get_field_id( 'sort_descending' ) ); ?>"><?php esc_html_e('Sort services in descending order?', 'transfers') ?></label> 164 <input type="checkbox" <?php echo ($instance['sort_descending'] == '1' ? 'checked="checked"' : ''); ?> class="checkbox" id="<?php echo esc_attr( $this->get_field_id( 'sort_descending' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'sort_descending') ); ?>" value="1" /> 165 </p> 168 <label for="<?php echo esc_attr( $this->get_field_id( 'display_mode' ) ); ?>"><?php esc_html_e('Display mode?', 'transfers') ?></label> 169 <select class="services_widget_display_mode" id="<?php echo esc_attr( $this->get_field_id( 'display_mode' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'display_mode') ); ?>"> 170 <option <?php echo 'small' == $instance['display_mode'] ? 'selected="selected"' : ''; ?> value="small"><?php esc_html_e('Small (usually sidebar)', 'transfers') ?></option> 175 <p class="cards" <?php echo ( $instance['display_mode'] != 'card' ? 'style="display:none"' : '' ); ?>> 176 <label for="<?php echo esc_attr ( $this->get_field_id( 'services_per_row' ) ); ?>"><?php esc_html_e('How many services do you want to display per row?', 'transfers') ?></label> 177 <select id="<?php echo esc_attr ( $this->get_field_id( 'services_per_row' ) ); ?>" name="<?php echo esc_attr ( $this->get_field_name( 'services_per_row' ) ); ?>"> 178 <?php for ($i=1;$i<6;$i++) { ?> 179 <option <?php echo ($i == $instance['services_per_row'] ? 'selected="selected"' : ''); ?> value="<?php echo esc_attr ( $i ); ?>"><?php echo esc_html($i); ?></option> 180 <?php } ?>person_type.php https://gitlab.com/alexprowars/bitrix | PHP | 225 lines
1<?php 2 2 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/sale/general/person_type.php"); 4 8 { 9 global $DB; 10 158 { 159 global $DB; 160 216 217 unset($GLOBALS["SALE_PERSON_TYPE_LIST_CACHE"]); 218perfmon_hit_grouped.php https://gitlab.com/alexprowars/bitrix | PHP | 247 lines
5define("PERFMON_STOP", true); 6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 7/** @global CMain $APPLICATION */ 7/** @global CMain $APPLICATION */ 8/** @global CDatabase $DB */ 9/** @global CUser $USER */ 10Loader::includeModule('perfmon'); 11require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/perfmon/prolog.php"); 12 159 160 $row->AddViewField("SCRIPT_NAME", '<a href="perfmon_hit_list.php?lang='.LANGUAGE_ID.'&set_filter=Y&find_script_name='.$f_SCRIPT_NAME.'">'.$f_SCRIPT_NAME.'</a>'); 161 201 202require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php"); 203rating_list.php https://gitlab.com/alexprowars/bitrix | PHP | 201 lines
8 9require_once(dirname(__FILE__)."/../include/prolog_admin_before.php"); 10 23{ 24 global $FilterArr, $lAdmin; 25 foreach ($FilterArr as $f) global $$f; 125 "TEXT"=>GetMessage("RATING_LIST_EDIT"), 126 "ACTION"=>$lAdmin->ActionRedirect("rating_edit.php?ID=".$f_ID) 127 ), 148 "TEXT"=>GetMessage("RATING_LIST_ADD"), 149 "LINK"=>"rating_edit.php?lang=".LANG, 150 "TITLE"=>GetMessage("RATING_LIST_ADD_TITLE"), 157$APPLICATION->SetTitle(GetMessage("MAIN_RATING_LIST")); 158require_once ($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/include/prolog_admin_after.php"); 159Database.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 450 lines
1<?php 2 14 * all control and shepherding of database connections into a single location 15 * without the use of globals. 16 */ 50 /** 51 * A processed copy of the database connection information from settings.php. 52 * 211 final public static function parseConnectionInfo() { 212 global $databases; 213 260 * Under normal circumstances the preferred way to specify database 261 * credentials is via settings.php. However, this method allows them to be 262 * added at arbitrary times, such as during unit tests, when connecting to 272 * The database connection information, as it would be defined in 273 * settings.php. Note that the structure of this array will depend on the 274 * database driver it is connecting to.Request.php https://gitlab.com/habracoder/advertising | PHP | 489 lines
1<?php 2 50 /** 51 * Gets a variable from the $_REQUEST superglobal applying filters if needed. 52 * If no parameters are given the $_REQUEST superglobal is returned 72 /** 73 * Gets a variable from the $_POST superglobal applying filters if needed 74 * If no parameters are given the $_POST superglobal is returned 113 /** 114 * Gets variable from $_GET superglobal applying filters if needed 115 * If no parameters are given the $_GET superglobal is returned 138 /** 139 * Gets variable from $_SERVER superglobal 140 * 147 /** 148 * Checks whether $_REQUEST superglobal has certain index 149 *class-admin.php https://gitlab.com/hop23typhu/faci-parkhill | PHP | 440 lines
1<?php 2 55 * 56 * @global object $wp_embed 57 * @since 2.0.0 91 * 92 * @global string $pagenow 93 * @return void 97 global $pagenow; 98 $enabled_pages = apply_filters( 'black_studio_tinymce_enable_pages', array( 'widgets.php', 'customize.php', 'admin-ajax.php' ) ); 99 return apply_filters( 'black_studio_tinymce_enable', in_array( $pagenow, $enabled_pages ) );tab-screen.css http://simpleinvoices.googlecode.com/svn/trunk/ | CSS | 793 lines
64 65/* GLOBALS & GENERAL CASES 66-------------------------------------------------*/ 195 196/* Old PHP Reports CSS - uses class="reportTable" */ 197 216 217/* New PHPreports CSS - uses ID="pg2" or "pg1" - Although HEADER and FOOTER are used now instead of PAGE_LAYER, it is left as is for compatibility */ 218index.php https://gitlab.com/cel/nameid | PHP | 408 lines
1<?php 2/* 21 22require_once ("lib/config.inc.php"); 23 23 24require_once ("lib/html.inc.php"); 25require_once ("lib/messages.inc.php"); 25require_once ("lib/messages.inc.php"); 26require_once ("lib/openid.inc.php"); 27require_once ("lib/request.inc.php"); 27require_once ("lib/request.inc.php"); 28require_once ("lib/session.inc.php"); 29 29 30require_once ("libauth/authenticator.inc.php"); 31require_once ("libauth/namecoin_rpc.inc.php");auth_8php_source.html https://gitlab.com/zaverichintan/geometry_viewer | HTML | 135 lines
6<meta name="generator" content="Doxygen 1.8.4"/> 7<title>BRL-CAD Online Geometry Viewer: accounts/auth.php Source File</title> 8<link href="tabs.css" rel="stylesheet" type="text/css"/> 61 <li><a href="files.html"><span>File List</span></a></li> 62 <li><a href="globals.html"><span>File Members</span></a></li> 63 </ul> 85 <div class="headertitle"> 86<div class="title">auth.php</div> </div> 87</div><!--header--> 88<div class="contents"> 89<a href="auth_8php.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <?php</div> 90<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">/* A U T H . P H P</span></div> 111<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keywordflow">if</span> (!isset($_SESSION[<span class="stringliteral">'id'</span>]) || (trim($_SESSION[<span class="stringliteral">'id'</span>]) == <span class="stringliteral">''</span>)) {</div> 112<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  header(<span class="stringliteral">"Location: accounts/landing.php"</span>);</div> 113<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  exit();</div>Pro.php https://gitlab.com/svillegas/magento2 | PHP | 436 lines
1<?php 2/** 334 { 335 $pendingReason = $payment->getAdditionalInformation(\Magento\Paypal\Model\Info::PENDING_REASON_GLOBAL); 336 return $this->_isPaymentReviewRequired(jquanti-sse2-64.asm https://gitlab.com/frankcary/bullet-time | Assembly | 187 lines
15; NASM is available from http://nasm.sourceforge.net/ or 16; http://sourceforge.net/project/showfiles.php?group_id=6208 17; 28; 29; GLOBAL(void) 30; jsimd_convsamp_sse2 (JSAMPARRAY sample_data, JDIMENSION start_col, 38 align 16 39 global EXTN(jsimd_convsamp_sse2) 40 100; 101; GLOBAL(void) 102; jsimd_quantize_sse2 (JCOEFPTR coef_block, DCTELEM * divisors, 114 align 16 115 global EXTN(jsimd_quantize_sse2) 116AnalyserTest.php https://github.com/sebastianbergmann/phploc.git | PHP | 407 lines
14use function sprintf; 15use PHPUnit\Framework\TestCase; 16 202 [ 203 __DIR__ . '/../_files/tests_old.php', 204 ], 214 [ 215 __DIR__ . '/../_files/twoTestsThatIndirectlyExtendOldPHPUnitTestCase.php', 216 ], 226 [ 227 __DIR__ . '/../_files/twoTestsThatIndirectlyExtendPHPUnitTestCase.php', 228 ], 362 363 $this->assertSame(0, $result['llocGlobal']); 364 }index.php git://git.savannah.nongnu.org/savane-cleanup.git | PHP | 363 lines
40 41require_once('../../include/init.php'); 42require_once('../../include/timezones.php'); 61 } 62 setcookie("SV_THEME", $user_theme, time() + 60*60*24*365, $GLOBALS['sys_url_topdir']); 63 179print $HTML->box_nextitem(utils_get_alt_row_color($i)); 180print '<a href="change.php?item=gpgkey">'._("Edit GPG Key").'</a>'; 181print '<p class="smaller">'; 213print $HTML->box_nextitem(utils_get_alt_row_color($i)); 214print '<a href="change.php?item=realname">'._("Change Real Name").'</a>'; 215print '<p class="smaller">'.sprintf(_("You are %s."), '<strong>'.$row_user['realname'].'</strong>').'</p>'; 325 { 326 print utils_link($GLOBALS['sys_home'].'support/?group='.$GLOBALS['sys_unix_group_name'], 327 sprintf(_("%s administrators should be asked to take care of Savane CSS Guidelines, since it is the default theme"), $GLOBALS['sys_name']), "warn");Admin.php https://gitlab.com/michield/phpList | PHP | 416 lines
1<?php 2namespace phpList; 3 4use phpList\helper\String; 5use phpList\helper\Util; 5use phpList\helper\Util; 6use phpList\Entity\AdminEntity; 7 55 if ($this->id != 0) { 56 phpList::DB()->query( 57 sprintf( 84 { 85 $result = phpList::DB()->query( 86 sprintf( 111 112 $result = phpList::DB()->query( 113 sprintf(FileLockRegion.php https://gitlab.com/cuza/Clinic_Recods | PHP | 265 lines
1<?php 2 216 { 217 // The check below is necessary because on some platforms glob returns false 218 // when nothing matched (even though no errors occurred) 218 // when nothing matched (even though no errors occurred) 219 $filenames = glob(sprintf("%s/*.%s" , $this->directory, self::LOCK_EXTENSION)); 220allfunctions.php https://gitlab.com/Toldierone/Compounds-mirror | PHP | 372 lines
1<?php 2$mysqli = new mysqli("localhost", "username", "password", "database"); 18function onelinequery($sql) { 19 $sth = $GLOBALS['mysqli']->query($sql); 20 if ($sth) { 33 session_unset(); 34 header("Location: index.php"); 35 exit; 45function needsuser() { 46 if (!$GLOBALS['userinfo']['user_id']) { 47 header("Location: index.php"); 51function needsalliance() { 52 if ($GLOBALS['userinfo']['stasismode']) { 53 header("Location: userinfo.php"); 55 } 56 if (!$GLOBALS['userinfo']['alliance_id']) { 57 header("Location: index.php");events_test.php https://gitlab.com/JrLucena/moodle | PHP | 372 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 26 27global $CFG; 28require_once($CFG->dirroot . '/mod/choice/lib.php'); 53 protected function setup() { 54 global $DB; 55 67 public function test_answer_submitted() { 68 global $DB; 69 // Generate user data. 84 $this->assertEquals(array($optionids[3]), $events[0]->other['optionid']); 85 $expected = array($this->course->id, "choice", "choose", 'view.php?id=' . $this->cm->id, $this->choice->id, $this->cm->id); 86 $this->assertEventLegacyLogData($expected, $events[0]); 94 public function test_answer_submitted_multiple() { 95 global $DB; 96XML.php https://gitlab.com/x33n/ampache | PHP | 364 lines
1<?php 2 3/** 4 * XML-parsing classes to wrap the domxml and DOM extensions for PHP 4 5 * and 5, respectively. 10/** 11 * The base class for wrappers for available PHP XML-parsing 12 * extensions. To work with this Yadis library, subclasses of this 14 * class. Subclasses of Auth_Yadis_XMLParser are used to wrap 15 * particular PHP XML extensions such as 'domxml'. These are used 16 * internally by the library depending on the availability of 16 * internally by the library depending on the availability of 17 * supported PHP XML extensions. 18 * 129 * the appropriate API for the 'domxml' extension which is typically 130 * packaged with PHP 4. This class will be used whenever the 'domxml' 131 * extension is detected. See the Auth_Yadis_XMLParser class forSlimFrameworkServerCodegen.java https://gitlab.com/akkhil2012/swagger-codegen | Java | 228 lines
34 outputFolder = "generated-code" + File.separator + "slim"; 35 modelTemplateFiles.put("model.mustache", ".php"); 36 43 Arrays.asList( 44 "__halt_compiler", "abstract", "and", "array", "as", "break", "callable", "case", "catch", "class", "clone", "const", "continue", "declare", "default", "die", "do", "echo", "else", "elseif", "empty", "enddeclare", "endfor", "endforeach", "endif", "endswitch", "endwhile", "eval", "exit", "extends", "final", "for", "foreach", "function", "global", "goto", "if", "implements", "include", "include_once", "instanceof", "insteadof", "interface", "isset", "list", "namespace", "new", "or", "print", "private", "protected", "public", "require", "require_once", "return", "static", "switch", "throw", "trait", "try", "unset", "use", "var", "while", "xor") 45 ); 51 52 // ref: http://php.net/manual/en/language.types.intro.php 53 languageSpecificPrimitives = new HashSet<String>( 91 supportingFiles.add(new SupportingFile("composer.json", packagePath.replace('/', File.separatorChar), "composer.json")); 92 supportingFiles.add(new SupportingFile("index.mustache", packagePath.replace('/', File.separatorChar), "index.php")); 93 supportingFiles.add(new SupportingFile(".htaccess", packagePath.replace('/', File.separatorChar), ".htaccess"));autoloader.php https://gitlab.com/JrLucena/moodle | PHP | 203 lines
26/** 27 * Class phpunit_autoloader. 28 * 36 * vendor/bin/phpunit core_component_testcase 37 * vendor/bin/phpunit lib/tests/component_test.php 38 * vendor/bin/phpunit core_component_testcase lib/tests/component_test.php 44 */ 45class phpunit_autoloader implements PHPUnit_Runner_TestSuiteLoader { 46 public function load($suiteClassName, $suiteClassFile = '') { 68 if ($suiteClassFile) { 69 PHPUnit_Util_Fileloader::checkAndLoad($suiteClassFile); 70 if (class_exists($suiteClassName, false)) { 100 $testfile = implode('_', $parts); 101 $fullpath = "{$fulldir}/tests/{$testfile}_test.php"; 102 if (is_readable($fullpath)) {class-wc-shortcode-my-account.php https://gitlab.com/webkod3r/tripolis | PHP | 363 lines
90 91 wc_get_template( 'myaccount/my-account.php', array( 92 'current_user' => get_user_by( 'id', get_current_user_id() ), 115 116 wc_get_template( 'myaccount/view-order.php', array( 117 'status' => $status, // @deprecated 2.2 170 171 wc_get_template( 'myaccount/form-edit-address.php', array( 172 'load_address' => $load_address, 266 if ( empty( $wp_hasher ) ) { 267 require_once ABSPATH . 'wp-includes/class-phpass.php'; 268 $wp_hasher = new PasswordHash( 8, true ); 310 if ( empty( $wp_hasher ) ) { 311 require_once ABSPATH . 'wp-includes/class-phpass.php'; 312 $wp_hasher = new PasswordHash( 8, true );modResource.class.php git://github.com/Dolibarr/dolibarr.git | PHP | 321 lines
1<?php 2/* Copyright (C) 2013-2014 Jean-François Ferry <jfefe@aternatik.fr> 23 * \brief Resource module descriptor. 24 * \file core/modules/modResource.class.php 25 * \ingroup resource 27 */ 28include_once DOL_DOCUMENT_ROOT."/core/modules/DolibarrModules.class.php"; 29 42 { 43 global $langs, $conf; 44 80 // for specific path of parts (eg: /resource/core/modules/barcode) 81 // for specific css file (eg: /resource/css/resource.css.php) 82 $this->module_parts = array(); 87 88 // Config pages. Put here list of php pages 89 // stored into resource/admin directory, used to setup module.fckeditor.css https://gitlab.com/ptisky/API_prestashop | CSS | 536 lines
1/*~~~~~~Global Setting ~~~~~~~~*/ 2html, body{ 266span.fileFlash, span.fileVideo, span.filePicture, 267span.filePPT, span.fileExcel, span.filePhp, 268span.fileMusic, span.fileExe, span.fileAcrobat, 289span.fileExcel{background-image:url(../images/small_icon/fileExcel.png);} 290span.filePhp{background-image:url(../images/small_icon/filePhp.png);} 291span.fileMusic{background-image:url(../images/small_icon/fileMusic.png);} 301dt.fileFlash, dt.fileVideo, 302dt.filePPT, dt.fileExcel, dt.filePhp, 303dt.fileMusic, dt.fileExe, dt.fileAcrobat, 328dt.fileExcel{background-image:url(../images/big_icon/fileExcel.png);} 329dt.filePhp{background-image:url(../images/big_icon/filePhp.png);} 330dt.fileMusic{background-image:url(../images/big_icon/fileMusic.png);} 532 533/*~~~~~~Global Low Priority Setting ~~~~~~~~*/ 534.left, td.left, th.left, td.leftDisabled{text-align:left;}SnsClient.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 378 lines
1<?php 2 6 7w3_require_once(W3TC_LIB_W3_DIR . '/Enterprise/SnsBase.php'); 8 65 function fragmentcache_flush_group($group, $global = false) { 66 $this->_prepare_message(array('action' => 'fragmentcache_flush_group', 'group' => $group, 'global' => $global)); 67 } 182 /** 183 * Reloads/compiles a PHP file. 184 * @param string $filename 191 /** 192 * Reloads/compiles a PHP file. 193 * @param string[] $filenamesclass-wp-ms-users-list-table.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 301 lines
1<?php 2/** 16 function prepare_items() { 17 global $usersearch, $role, $wpdb, $mode; 18 103 function pagination( $which ) { 104 global $mode; 105 143 function display_rows() { 144 global $mode; 145 175 <th scope="row" class="check-column"> 176 <label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>"><?php echo sprintf( __( 'Select %s' ), $user->user_login ); ?></label> 177 <input type="checkbox" id="blog_<?php echo $user->ID ?>" name="allusers[]" value="<?php echo esc_attr( $user->ID ) ?>" /> 186 echo "<td $attributes>"; ?> 187 <?php echo $avatar; ?><strong><a href="<?php echo $edit_link; ?>" class="edit"><?php echo $user->user_login; ?></a><?php 188 if ( in_array( $user->user_login, $super_admins ) )multiple-featured-images.php https://gitlab.com/webkod3r/tripolis | PHP | 374 lines
91 public function kd_admin_init() { 92 if( strstr($_SERVER['REQUEST_URI'], 'wp-admin/post-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/post.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/media-upload.php')) { 93 wp_enqueue_script( 119 * 120 * @global object $post 121 * @return void 123 public function kd_meta_box_content() { 124 global $post; 125 137 * 138 * @global int $post_ID 139 * @param int $image_id 223 * 224 * @global int $post_ID 225 * @return voidindex.php http://pixie-cms.googlecode.com/svn/trunk/ | PHP | 548 lines
43/* Check for config */ 44if ((!file_exists('admin/config.php')) or (filesize('admin/config.php') < 10)) { 45 /* redirect to installer */ 69/* Prevent superglobal poisoning before extraction */ 70globalSec('Main index.php', 1); 71/* Access to form vars if register globals is off */ 88 } 89 /* New! Built in php function. Tell php what the server timezone is so that we can use php 5's rewritten time and date functions with the correct time and without error messages */ 90 date_default_timezone_set("$server_timezone"); 294 print $rel_path; 295?>admin/jscript/public.js.php<?php 296 if (isset($s)) { 311 print $rel_path; 312?>admin/themes/style.php?theme=<?php 313 print $site_theme;class-wp-customize-setting.php https://gitlab.com/Gashler/dp | PHP | 439 lines
1<?php 2/** 407 public function update( $value ) { 408 global $custom_image_header; 409projectteam.php https://gitlab.com/julienv/joomleague | PHP | 394 lines
1<?php 2/** 3* @copyright Copyright (C) 2006-2014 joomleague.at. All rights reserved. 4* @license GNU/GPL, see LICENSE.php 5* Joomla! is free software. This version may have been modified pursuant 8* other free or open source software licenses. 9* See COPYRIGHT.php for copyright notices and details. 10*/ 55 if ($model->isCheckedOut($user->get('id'))) { 56 $this->setRedirect('index.php?option=com_joomleague&task=projectteam.display&view=projectteams', JText::_('EDITED BY ANOTHER ADMIN')); 57 } 97 } 98 $link = 'index.php?option=com_joomleague&view=projectteams&task=projectteam.display'; 99 $this->setRedirect($link, $msg); 174 175 $link = 'index.php?option=com_joomleague&view=projectteams&task=projectteam.display'; 176 $this->setRedirect($link, $msg);assignment_expression.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 314 lines
9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 19#include "hphp/compiler/expression/object_property_expression.h" 20#include "hphp/compiler/analysis/code_error.h" 21#include "hphp/compiler/expression/constant_expression.h" 27#include "hphp/compiler/expression/unary_op_expression.h" 28#include "hphp/parser/hphp.tab.hpp" 29#include "hphp/compiler/code_model_enums.h" 176 static_pointer_cast<ArrayElementExpression>(m_variable)); 177 if (!ae->isSuperGlobal() || ae->isDynamicGlobal()) return false; 178 Variant v; 312 if (m_ref) cg_printf("&"); 313 m_value->outputPHP(cg, ar); 314}PrettyPrinterAbstract.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 262 lines
88 * 89 * @param PHPParser_Node_Expr $node Expression node 90 * 92 */ 93 public function prettyPrintExpr(PHPParser_Node_Expr $node) { 94 return str_replace("\n" . $this->noIndentToken, "\n", $this->p($node)); 122 protected function preprocessNodes(array $nodes) { 123 /* We can use semicolon-namespaces unless there is a global namespace declaration */ 124 $this->canUseSemicolonNamespaces = true; 134 * 135 * @param PHPParser_Node[] $nodes Array of nodes 136 * @param bool $indent Whether to indent the printed nodes 169 170 protected function pInfixOp($type, PHPParser_Node $leftNode, $operatorString, PHPParser_Node $rightNode) { 171 list($precedence, $associativity) = $this->precedenceMap[$type];Shipping.php https://gitlab.com/yousafsyed/easternglamor | PHP | 254 lines
1<?php 2/** 75 'total_shipping' => new \Zend_Db_Expr( 76 "SUM((base_shipping_amount - {$shippingCanceled}) * base_to_global_rate)" 77 ), 78 'total_shipping_actual' => new \Zend_Db_Expr( 79 "SUM((base_shipping_invoiced - {$shippingRefunded}) * base_to_global_rate)" 80 ), 138 * @throws \Exception 139 * @SuppressWarnings(PHPMD.ExcessiveMethodLength) 140 */ 183 'SUM((order_table.base_shipping_amount - ' . 184 "{$shippingCanceled}) * order_table.base_to_global_rate)" 185 ), 187 'SUM((order_table.base_shipping_invoiced - ' . 188 "{$shippingRefunded}) * order_table.base_to_global_rate)" 189 ),HTMLDefinitionTest.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 348 lines
1<?php 2 101 102 function assertPurification_AllowedAttributes_global_style() 103 { 106 107 function test_AllowedAttributes_global_preferredSyntax() 108 { 110 $this->config->set('HTML.AllowedAttributes', 'style'); 111 $this->assertPurification_AllowedAttributes_global_style(); 112 } 113 114 function test_AllowedAttributes_global_verboseSyntax() 115 { 117 $this->config->set('HTML.AllowedAttributes', '*@style'); 118 $this->assertPurification_AllowedAttributes_global_style(); 119 }grid.custom.js https://hg01.codeplex.com/razorpad | JavaScript | 0 lines
6 * Dual licensed under the MIT and GPL licenses: 7 * http://www.opensource.org/licenses/mit-license.php 8 * http://www.gnu.org/licenses/gpl-2.0.html 9**/ 10/*global jQuery, $ */ 11questiontype.php https://gitlab.com/JrLucena/moodle | PHP | 170 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 28 29require_once($CFG->libdir . '/questionlib.php'); 30 47 public function get_question_options($question) { 48 global $DB; 49 $question->options = $DB->get_record('qtype_essay_options', 54 public function save_question_options($formdata) { 55 global $DB; 56 $context = $formdata->context; 91 public function delete_question($questionid, $contextid) { 92 global $DB; 93