100+ results results for 'php getopt repo:ilyabazhenov/speakplace' (498 ms)
1<?php 2/** 106 // ok then, lets see in views history 107 //if(\COption::GetOptionString("sale", "encode_fuser_id", "N") == "Y") 108 if (!is_numeric($basketItem->getFUserId()))widget-output.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 276 lines
3 * Modified from: 4 * HTML Table to CSV: http://www.kunalbabre.com/projects/table2CSV.php (License unknown?) 5 * Download-File-JS: https://github.com/PixelsCommander/Download-File-JS (http://www.apache.org/licenses/LICENSE-2.0) 34 .on(output.event, function(){ 35 // explicitly use table.config.widgetOptions because we want 36 // the most up-to-date values; not the "wo" from initialization 36 // the most up-to-date values; not the "wo" from initialization 37 output.process(c, c.widgetOptions); 38 }); 42 var $this, row, col, rowlen, collen, txt, 43 wo = c.widgetOptions, 44 tmpRow = [],site_speed.php https://gitlab.com/alexprowars/bitrix | PHP | 297 lines
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 ?> 102 ?> 103 <a href="/bitrix/admin/perfmon_panel.php?lang=<?=LANGUAGE_ID?>" class="site-speed-perf-label"><?=Loc::getMessage("MAIN_SITE_SPEED_PERF")?></a>:<span class="site-speed-perf-value"><?if ($mark > 0):?><?=$mark?><?else:?><?=Loc::getMessage("MAIN_SITE_SPEED_PERF_NO_RES")?><?endif?></span> 104 <?endif?>city_list.php https://gitlab.com/alexprowars/bitrix | PHP | 324 lines
1<?php 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/prolog.php"); 4/** @var CMain $APPLICATION */ 4/** @var CMain $APPLICATION */ 5include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/colors.php"); 6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/img.php"); 86 87 $width = COption::GetOptionString("statistic", "GRAPH_WEIGHT"); 88 $height = COption::GetOptionString("statistic", "GRAPH_HEIGHT"); 88 $height = COption::GetOptionString("statistic", "GRAPH_HEIGHT"); 89 $diameter = COption::GetOptionString("statistic", "DIAGRAM_DIAMETER"); 90?> 107 <td valign="center"> 108 <img src="/bitrix/admin/city_graph.php?find_data_type=<?=$find_data_type?><?=GetFilterParams($FilterArr)?>&width=<?=$width?>&height=<?=$height?>&lang=<?echo LANG?>" width="<?=$width?>" height="<?=$height?>"> 109 </td>component.php https://gitlab.com/alexprowars/bitrix | PHP | 409 lines
9 "SHOW_STATUS" => "Y", 10 "EDIT_URL" => $arParams["SEF_MODE"] == "Y" ? "edit/#RESULT_ID#/" : "result_edit.php", 11 ); 15 $arDefaultUrl = array( 16 'EDIT_URL' => $arParams["SEF_MODE"] == "Y" ? "edit/#RESULT_ID#/" : "result_edit.php", 17 ); 52 53 $arResult["FORM_SIMPLE"] = (COption::GetOptionString("form", "SIMPLE", "Y") == "Y") ? true : false; 54 $arResult["bAdmin"] = defined("ADMIN_SECTION") && ADMIN_SECTION===true ? "Y" : "N"; 333 { 334 $file_link = "/bitrix/tools/form_show_file.php?rid=".$arParams["RESULT_ID"]."&hash=".$arrAns["USER_FILE_HASH"]."&lang=".LANGUAGE_ID; 335 348 $arResultAnswer["ANSWER_FILE"] = array(); 349 $arResultAnswer["ANSWER_FILE"]["URL"] = "/bitrix/tools/form_show_file.php?rid=".$arParams["RESULT_ID"]."&hash=".$arrA["USER_FILE_HASH"]."&lang=".LANGUAGE_ID; 350 $arResultAnswer["ANSWER_FILE"]["NAME"] = htmlspecialcharsbx($arrA["USER_FILE_NAME"]);user_settings.php https://gitlab.com/alexprowars/bitrix | PHP | 302 lines
6 7require_once(dirname(__FILE__)."/../include/prolog_admin_before.php"); 8define("HELP_FILE", "settings/user_settings.php"); 99$APPLICATION->SetTitle(GetMessage("user_sett_title")); 100require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/include/prolog_admin_after.php"); 101 123{ 124 $aUserOpt = CUserOptions::GetOption("global", "settings"); 125 if($aUserOpt["context_menu"] == "") $aUserOpt["context_menu"] = "Y"; 204 <input type="text" name="start_menu_links" value="<?echo htmlspecialcharsbx($aUserOpt["start_menu_links"])?>" size="10"> 205 <a href="javascript:if(confirm('<?echo CUtil::addslashes(GetMessage("user_sett_del_links_conf"))?>'))window.location='user_settings.php?action=clear_links&lang=<?echo LANG?>&<?echo bitrix_sessid_get()?>';"><?echo GetMessage("user_sett_del_links")?></a> 206 </td> 250 </div> 251 <?if(file_exists($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/security/install/index.php")):?> 252 <div class="adm-list-item">Orderable.php https://gitlab.com/che234/adn | PHP | 366 lines
1<?php 2/** 2/** 3 * @version $Id: Orderable.php 30067 2016-03-08 13:44:25Z matias $ 4 * @author RocketTheme http://www.rockettheme.com 349 /* fix for use with Column Aggregation Inheritance */ 350 if ($record->getTable()->getOption('inheritanceMap')) { 351 $parentTable = $record->getTable()->getOption('parents');config.php https://gitlab.com/alexprowars/bitrix | PHP | 518 lines
1<?php declare(strict_types = 1); 2 28 */ 29 public static function getOption(string $optionName): ?string 30 { 44 /** 45 * Returns an array with default values of a module options (from a default_option.php file). 46 * 428 } 429 elseif (strncasecmp(PHP_OS, 'WIN', 3) === 0 && preg_match("#^[a-z]{1}:/#i", $confOption)) 430 {mail_message_view.php https://gitlab.com/alexprowars/bitrix | PHP | 324 lines
1<?php 2/* 10require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 11require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/mail/prolog.php"); 12 15IncludeModuleLangFile(__FILE__); 16require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/mail/include.php"); 17$err_mess = "File: ".__FILE__."<br>Line: "; 54 { 55 $md5Path = md5("/bitrix/admin/mail_message_admin.php"); 56 $FILTER = $_SESSION["SESS_ADMIN"][$md5Path]; 78 79 LocalRedirect("/bitrix/admin/mail_message_admin.php?lang=".LANG); 80} 176 <td width="80%"><?=TxtToHTML($dbr_arr["SUBJECT"])?></td> 177 <td width="20%" nowrap><a href="javascript:void(0)" onclick="hideshowhdr()" title="<?echo GetMessage("MMV_SHOW_HEADER_TITLE")?>"><?echo GetMessage("MMV_SHOW_HEADER")?></a><?if(COption::GetOptionString("mail", "save_src", B_MAIL_SAVE_SRC)=="Y" && $dbr_arr["FULL_TEXT"]!=''):?> | <a href="/bitrix/admin/mail_message_view.php?lang=<?=LANGUAGE_ID?>&ID=<?=intval($ID)?>&show=original" target="_blank" title="<?echo GetMessage("MMV_SHOW_ORIG_TITLE")?>"><?echo GetMessage("MMV_SHOW_ORIG")?></a><?endif?></td> 178 </tr></table>toastr.js https://gitlab.com/Mirros/cdnjs | JavaScript | 374 lines
6 * Use, reproduction, distribution, and modification of this code is subject to the terms and 7 * conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php 8 * 46 type: toastType.error, 47 iconClass: getOptions().iconClasses.error, 48 message: message, 54 function getContainer(options, create) { 55 if (!options) { options = getOptions(); } 56 $container = $('#' + options.containerId); 68 type: toastType.info, 69 iconClass: getOptions().iconClasses.info, 70 message: message, 82 type: toastType.success, 83 iconClass: getOptions().iconClasses.success, 84 message: message,component.php https://gitlab.com/alexprowars/bitrix | PHP | 343 lines
37 else if($arForum["INDEXATION"]!=="Y") 38 $arWarnings[] = GetMessage("CC_BSR_WARN_FORUM", array("#href#" => htmlspecialcharsbx(BX_ROOT."/admin/forum_edit.php?lang=".LANGUAGE_ID."&ID=".intval($arForum["ID"])))); 39 55 if($arIBlock["INDEX_ELEMENT"]==="Y" || $arIBlock["INDEX_SECTION"]==="Y") 56 $arWarnings[] = GetMessage("CC_BSR_WARN_PHOTO_GROUP_IBLOCK", array("#href#" => htmlspecialcharsbx(BX_ROOT."/admin/iblock_edit.php?type=".urlencode($arIBlock["IBLOCK_TYPE_ID"])."&lang=".LANGUAGE_ID."&ID=".urlencode($arIBlock["ID"])."&admin=Y&return_url=".urlencode($APPLICATION->GetCurPageParam())))); 57 67 if($arIBlock["INDEX_ELEMENT"]==="Y" || $arIBlock["INDEX_SECTION"]==="Y") 68 $arWarnings[] = GetMessage("CC_BSR_WARN_PHOTO_USER_IBLOCK", array("#href#" => htmlspecialcharsbx(BX_ROOT."/admin/iblock_edit.php?type=".urlencode($arIBlock["IBLOCK_TYPE_ID"])."&lang=".LANGUAGE_ID."&ID=".urlencode($arIBlock["ID"])."&admin=Y&return_url=".urlencode($APPLICATION->GetCurPageParam())))); 69 83 else if($arForum["INDEXATION"]!=="Y") 84 $arWarnings[] = GetMessage("CC_BSR_WARN_PHOTO_FORUM", array("#href#" => htmlspecialcharsbx(BX_ROOT."/admin/forum_edit.php?lang=".LANGUAGE_ID."&ID=".intval($arForum["ID"])))); 85 } 93 if($arIBlock["INDEX_ELEMENT"]==="Y" || $arIBlock["INDEX_SECTION"]==="Y") 94 $arWarnings[] = GetMessage("CC_BSR_WARN_CALENDAR_GROUP_IBLOCK", array("#href#" => htmlspecialcharsbx(BX_ROOT."/admin/iblock_edit.php?type=".urlencode($arIBlock["IBLOCK_TYPE_ID"])."&lang=".LANGUAGE_ID."&ID=".urlencode($arIBlock["ID"])."&admin=Y&return_url=".urlencode($APPLICATION->GetCurPageParam())))); 95CustomOptions.php https://gitlab.com/blingbang2016/shop | PHP | 515 lines
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 */ 143 */ 144 public function getOptions(InjectableFixture $product) 145 { 186 $customOptions = []; 187 $context = $this->getOptionsContext(); 188 $count = 1; 206 */ 207 protected function getOptionsContext() 208 {component.php https://gitlab.com/alexprowars/bitrix | PHP | 247 lines
9 10require_once($_SERVER["DOCUMENT_ROOT"].$componentPath."/functions.php"); 11global $arrSaveColor; 11global $arrSaveColor; 12require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/img.php"); 13/******************************************************************** 32/************** CACHE **********************************************/ 33 if ($arParams["CACHE_TYPE"] == "Y" || ($arParams["CACHE_TYPE"] == "A" && COption::GetOptionString("main", "component_cache_on", "Y") == "Y")) 34 $arParams["CACHE_TIME"] = intval($arParams["CACHE_TIME"]); 60 ********************************************************************/ 61$obCache = new CPHPCache; 62$cache_id = "vote_result_".serialize(array(component.php https://gitlab.com/alexprowars/bitrix | PHP | 304 lines
55 $arParams["PAGE_NAVIGATION_WINDOW"] = intval(intVal($arParams["PAGE_NAVIGATION_WINDOW"]) > 0 ? $arParams["PAGE_NAVIGATION_WINDOW"] : 11); 56 $arParams["DATE_FORMAT"] = trim(empty($arParams["DATE_FORMAT"]) ? $DB->DateFormatToPHP(CSite::GetDateFormat("SHORT")) : $arParams["DATE_FORMAT"]); 57 $arParams["TOPICS_PER_PAGE"] = intval(intVal($arParams["TOPICS_PER_PAGE"]) > 0 ? $arParams["TOPICS_PER_PAGE"] : COption::GetOptionString("forum", "TOPICS_PER_PAGE", "10")); 60 $arParams["SET_NAVIGATION"] = ($arParams["SET_NAVIGATION"] == "N" ? "N" : "Y"); 61 if ($arParams["CACHE_TYPE"] == "Y" || ($arParams["CACHE_TYPE"] == "A" && COption::GetOptionString("main", "component_cache_on", "Y") == "Y")) 62 $arParams["CACHE_TIME"] = intval($arParams["CACHE_TIME"]); 76$arResult["FORUMS"] = array(); 77$arResult["GROUPS_FORUMS"] = array(); // declared in result_modifier.php 78$arResult["GROUPS"] = CForumGroup::GetByLang(LANGUAGE_ID); 80$aSort = array("RANK"=>"DESC", "DATE_CHANGE"=>"DESC"); 81$cache = new CPHPCache(); 82$cache_path_main = str_replace(array(":", "//"), "/", "/".SITE_ID."/".$componentName."/"); 178 { 179 $arFilter1["DATE_CHANGE"] = Date(CDatabase::DateFormatToPHP(CLang::GetDateFormat("FULL", LANGUAGE_ID)), 180 time()-(intval($_REQUEST["DATE_CHANGE"])*24*3600)+CTimeZone::GetOffset());component.php https://gitlab.com/alexprowars/bitrix | PHP | 358 lines
1<?php 2/** 55 56if($arParams["USE_THEMES"] !== 'N' && $arParams["USE_THEMES"] !== false && CPageOption::GetOptionString("main.interface", "use_themes", "Y") !== "N") 57 $arParams["USE_THEMES"] = true; 74 75$aOptions = $grid_options->GetOptions(); 76 87$arResult["OPTIONS"] = $aOptions; 88$arResult["GLOBAL_OPTIONS"] = CUserOptions::GetOption("main.interface", "global", array(), 0); 89component.php https://gitlab.com/alexprowars/bitrix | PHP | 322 lines
9$arParams["LESSON_ID"] = (isset($arParams["LESSON_ID"]) && intval($arParams["LESSON_ID"]) > 0 ? intval($arParams["LESSON_ID"]) : intval($_REQUEST["LESSON_ID"])); 10$arParams["SELF_TEST_TEMPLATE"] = ($arParams["SELF_TEST_TEMPLATE"] <> '' ? htmlspecialcharsbx($arParams["SELF_TEST_TEMPLATE"]) : "self.php?SELF_TEST_ID=#SELF_TEST_ID#"); 11$arParams["CHECK_PERMISSIONS"] = (isset($arParams["CHECK_PERMISSIONS"]) && $arParams["CHECK_PERMISSIONS"]=="N" ? "N" : "Y"); 61 62$lastDirtyCacheTS = COption::GetOptionString( 63 'learning', 293 array( 294 "URL" => "/bitrix/admin/learn_unilesson_edit.php?LESSON_ID=" . $arParams["LESSON_ID"] 295 . '&' . $strUrlencodedLessonPath 311 "TITLE" => GetMessage("LEARNING_COURSES_LESSON_DELETE"), 312 "URL" => "javascript:if(confirm('".GetMessage("LEARNING_COURSES_LESSON_DELETE_CONF")."'))jsUtils.Redirect([], '".CUtil::JSEscape("/bitrix/admin/learn_unilesson_admin.php?ID=".$arParams["LESSON_ID"]."&action=delete&lang=".LANGUAGE_ID."&".bitrix_sessid_get()."&COURSE_ID=".$arParams["COURSE_ID"]).($deleteReturnUrl <> ''? "&return_url=".urlencode($deleteReturnUrl) : "")."')", 313 "ICON" => "bx-context-toolbar-delete-icon",component.php https://gitlab.com/alexprowars/bitrix | PHP | 542 lines
1<?php 2if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED!==true) 69 if ( 70 Manager::getOption('temp_permission_admin_only') 71 && !\CBitrix24::isPortalAdmin(Manager::getUserId()) 87 88// preset paths and sef (.parameters.php) 89$defaultUrlTemplates404 = array( 365 $mess = Loc::loadLanguageFile( 366 __DIR__ . '/component_' . $currentZone . '.php', 367 'ru' 389// check actual agreements 390$needToUpdate = Manager::getOption('user_agreement_version') < 391 Manager::USER_AGREEMENT_VERSION; 531{ 532 $url = Manager::getOption('tmp_last_show_url', ''); 533 if ($url !== $arParams['PAGE_URL_SITE_SHOW'])country_list.php https://gitlab.com/alexprowars/bitrix | PHP | 424 lines
1<?php 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/prolog.php"); 4/** @var CMain $APPLICATION */ 4/** @var CMain $APPLICATION */ 5include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/colors.php"); 6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/img.php"); 112<? 113 $width = COption::GetOptionString("statistic", "GRAPH_WEIGHT"); 114 $height = COption::GetOptionString("statistic", "GRAPH_HEIGHT"); 114 $height = COption::GetOptionString("statistic", "GRAPH_HEIGHT"); 115 $diameter = COption::GetOptionString("statistic", "DIAGRAM_DIAMETER"); 116?> 122 <td valign="center"> 123 <img src="/bitrix/admin/country_graph.php?find_data_type=<?=$find_data_type?><?=GetFilterParams($FilterArr)?>&width=<?=$width?>&height=<?=$height?>&lang=<? echo LANG?>" width="<?=$width?>" height="<?=$height?>"></td> 124 </td>KurogoSite.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 319 lines
1<?php 2 97 public function getRequiresSecure() { 98 return $this->requiresSecure || $this->getOptionalSiteVar('SECURE_REQUIRED'); 99 } 299 300 public function getOptionalSiteSections($area, $applyContexts=Config::IGNORE_CONTEXTS) { 301 return $this->getConfigStore()->getOptionalSections($area, 'site', $applyContexts); 307 308 public function getOptionalSiteSection($section, $area='site') { 309 return $this->getConfigStore()->getOptionalSection($section, $area, 'site'); 315 316 public function getOptionalSiteVar($var, $default='', $section=null, $area='site') { 317 return $this->getConfigStore()->getOptionalVar($var, $default, $section, $area, 'site');sfPropelFormGenerator.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 492 lines
99 100 file_put_contents($baseDir.'/base/Base'.$table->getPhpName().'Form.class.php', $this->evalTemplate('sfPropelFormGeneratedTemplate.php')); 101 if (!file_exists($classFile = $baseDir.'/'.$table->getPhpName().'Form.class.php')) 123 { 124 if ($column->isForeignKey() && $column->isPrimaryKey() && $this->table->getPhpName() == $this->getForeignTable($column)->getPhpName()) 125 { 129 { 130 if ($relatedColumn->isForeignKey() && $relatedColumn->isPrimaryKey() && $this->table->getPhpName() != $this->getForeignTable($relatedColumn)->getPhpName()) 131 { 167 { 168 $names[] = array($this->getForeignTable($column)->getPhpName(), $column->getPhpName(), $column->isNotNull(), false); 169 } 173 { 174 $names[] = array($tables['relatedTable']->getPhpName(), $tables['middleTable']->getPhpName(), false, true); 175 }Route.php https://gitlab.com/Urtekin/ertexAdmin | PHP | 588 lines
1<?php 2 265 */ 266 public function getOptions() 267 { 332 */ 333 public function getOption($name) 334 { 562 563 $class = $this->getOption('compiler_class'); 564result_modifier.php https://gitlab.com/alexprowars/bitrix | PHP | 402 lines
18 { 19 $templateId = COption::GetOptionString("main", "wizard_template_id", "eshop_bootstrap", SITE_ID); 20 $templateId = (preg_match("/^eshop_adapt/", $templateId)) ? "eshop_adapt" : $templateId; 20 $templateId = (preg_match("/^eshop_adapt/", $templateId)) ? "eshop_adapt" : $templateId; 21 $arParams['TEMPLATE_THEME'] = COption::GetOptionString('main', 'wizard_'.$templateId.'_theme_id', 'blue', SITE_ID); 22 } 212 'VALUE' => 0, 213 'SORT' => PHP_INT_MAX, 214 'NA' => trueindex.php https://gitlab.com/alexprowars/bitrix | PHP | 360 lines
20 21 include(__DIR__.'/version.php'); 22 97 98 $socnet_iblock_type_id = COption::GetOptionString("lists", "socnet_iblock_type_id"); 99 $isSocnetInstalled = IsModuleInstalled('socialnetwork'); 168 { 169 $gr = COption::GetOptionString("main", "~controller_group_name", ""); 170 if($gr != "") 292 $GLOBALS["errors"] = $this->errors; 293 $APPLICATION->IncludeAdminFile(GetMessage("LISTS_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/lists/install/step2.php"); 294 } 296 { 297 $APPLICATION->IncludeAdminFile(GetMessage("LISTS_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/lists/install/step1.php"); 298 }event_log.php https://gitlab.com/alexprowars/bitrix | PHP | 354 lines
1<?php 2/** 68 69 $cleanup_days = COption::GetOptionInt("main", "event_log_cleanup_days", 7); 70 if($cleanup_days > 0) 76 77 $historyCleanupDays = (int)COption::GetOptionInt("main", "profile_history_cleanup_days", 0); 78 if($historyCleanupDays > 0) 293 $arFilter = array(); 294 if(COption::GetOptionString("main", "event_log_register", "N") === "Y" || COption::GetOptionString("main", "event_log_user_delete", "N") === "Y" || COption::GetOptionString("main", "event_log_user_edit", "N") === "Y" || COption::GetOptionString("main", "event_log_user_groups", "N") === "Y") 295 {dashboard.php https://gitlab.com/alexprowars/bitrix | PHP | 163 lines
1<?php 2namespace Bitrix\Report\VisualConstructor\Helper; 109 { 110 $boardModes = \CUserOptions::GetOption('report_dashboard', 'IS_DEMO_MODE_MARKERS', array()); 111 if (isset($boardModes[$boardKey])) 119 { 120 $boardModes = \CUserOptions::GetOption('report_dashboard', 'IS_DEMO_MODE_MARKERS', array()); 121 $boardModes[$boardKey] = $mode;update.php https://gitlab.com/alexprowars/bitrix | PHP | 587 lines
9 $module_id = "support"; 10 @include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/".$module_id."/install/version.php"); 11 return "<br>Module: ".$module_id." (".$arModuleVersion["VERSION"].")<br>Class: CAllSupportUpdate<br>File: ".__FILE__; 20 { 21 $supUpdVer = intval(COption::GetOptionString("support", "SUPPORT_UPDATE_VERSION")); 22 return ($supUpdVer < CSupportUpdate::GetUpdateVersion());learn_export.php https://gitlab.com/alexprowars/bitrix | PHP | 294 lines
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3 5{ 6 require($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_admin_after.php'); // second system's prolog 7 12 13 require($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/epilog_admin.php'); // system's epilog 14 exit(); 16 17require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/learning/prolog.php"); 18IncludeModuleLangFile(__FILE__); 21 22require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/classes/general/tar_gz.php"); 23index.php https://gitlab.com/alexprowars/bitrix | PHP | 270 lines
1<?php 2IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/support/include.php"); 21 22 include(__DIR__.'/version.php'); 23 77 78 if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/support/install/demodata.php')) 79 { 80 $DD_ERROR = false; 81 include($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/support/install/demodata.php'); 82 if ($DD_ERROR) 138 { 139 if (file_exists($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/support/install/events/set_events.php')) 140 { 141 $SE_ERROR = false; 142 include($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/support/install/events/set_events.php'); 143 if ($SE_ERROR)form_list.php https://gitlab.com/alexprowars/bitrix | PHP | 314 lines
185 $f_QUESTIONS+=$f_C_FIELDS; 186 $txt="<a title=\"".GetMessage("FORM_QUESTIONS_ALT")."\" href=\"form_field_list.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">$f_QUESTIONS</a> [<a title=\"".GetMessage("FORM_ADD_QUESTION")."\" href=\"form_field_edit_simple.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">+</a>]"; 187 } 188 else 189 $txt="<a title=\"".GetMessage("FORM_QUESTIONS_ALT")."\" href=\"form_field_list.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">$f_QUESTIONS</a> [<a title=\"".GetMessage("FORM_ADD_QUESTION")."\" href=\"form_field_edit.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">+</a>]"; 190 $row->AddViewField("QUESTIONS",$txt); 191 192 $txt="<a title=\"".GetMessage("FORM_FIELDS_ALT")."\" href=\"form_field_list.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID&additional=Y\">$f_C_FIELDS</a> [<a title=\"".GetMessage("FORM_ADD_FIELD")."\" href=\"form_field_edit.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID&additional=Y\">+</a>]"; 193 $row->AddViewField("C_FIELDS",$txt); 194 195 $txt="<a title=\"".GetMessage("FORM_STATUSES_ALT")."\" href=\"form_status_list.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">$f_STATUSES</a> [<a title=\"".GetMessage("FORM_ADD_STATUS")."\" href=\"form_status_edit.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">+</a>]"; 196 $row->AddViewField("STATUSES",$txt); 197 198 $txt="<a title=\"".str_replace("\"#NAME#\"", "", GetMessage("FORM_RESULTS_ALT"))."\" href=\"form_result_list.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">".(CFormResult::GetCount($f_ID))."</a> [<a title=\"".GetMessage("FORM_ADD_RESULT")."\" href=\"form_result_edit.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">+</a>]"; 199 $row->AddViewField("RESULTS",$txt);stoplist.php https://gitlab.com/alexprowars/bitrix | PHP | 272 lines
1<?php 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/classes/general/stoplist.php"); 137 $strSqlOrder 138 LIMIT ".intval(COption::GetOptionString('statistic','RECORDS_LIMIT'))." 139 ";perfmon_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 */ 10Loader::includeModule('perfmon'); 11require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/perfmon/prolog.php"); 12 154 155$max_display_url = COption::GetOptionInt("perfmon", "max_display_url"); 156while ($arRes = $rsData->NavNext(true, "f_")) 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"); 203Bundle.php https://gitlab.com/daigiangaitu91/magento | PHP | 354 lines
1<?php 2/** 13 * 14 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 15 */ 82 */ 83 public function getOptions() 84 { 89 90 $optionCollection = $typeInstance->getOptionsCollection($product); 91 92 $selectionCollection = $typeInstance->getSelectionsCollection( 93 $typeInstance->getOptionsIds($product), 94 $product 111 { 112 $this->getOptions(); 113 if (empty($this->options) || !$this->getProduct()->isSalable()) {Abstract.php https://gitlab.com/blingbang2016/shop | PHP | 309 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Abstract.php 22824 2010-08-09 18:59:54Z renanbr $ 21 */ 76 */ 77 public function getOption($name = null) 78 { 124 */ 125 #require_once 'Zend/Service/Ebay/Exception.php'; 126 throw new Zend_Service_Ebay_Exception('Invalid options provided.'); 244 /** 245 * Translate native PHP values format to ebay format for request. 246 * 267 /** 268 * Translate an ebay value format to native PHP type. 269 *component.php https://gitlab.com/alexprowars/bitrix | PHP | 353 lines
1<?php 2if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) 75/* We set the option on the component, as well as accounting for multiple sites */ 76if($arParams["IBLOCK_TYPE_ID"] == COption::GetOptionString("lists", "livefeed_iblock_type_id")) 77{ 77{ 78 if($arParams["SEF_FOLDER"] != COption::GetOptionString('lists', 'livefeed_url')) 79 {KaMap.js https://gitlab.com/Mirros/cdnjs | JavaScript | 192 lines
45 * inconsistently if your format parameter does not match the format 46 * parameter configured in your config.php. (See ticket #327 for more 47 * information.) 151 this.params, 152 this.getOptions()); 153 }StatsTest.php git://github.com/basdenooijer/solarium.git | PHP | 360 lines
1<?php 2/** 37 38class StatsTest extends \PHPUnit_Framework_TestCase 39{ 108 // check option forwarding 109 $fieldOptions = $field->getOptions(); 110 $this->assertEquals(Compiler.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 485 lines
1<?PHP 2/** 4 * 5 * $Id: Compiler.php 10094 2008-03-02 04:35:10Z instance $ 6 * 10 * @subpackage Compiler 11 * @author Stephan Schmidt <schst@php.net> 12 */ 19 * 20 * $Id: Compiler.php 10094 2008-03-02 04:35:10Z instance $ 21 * 25 * @subpackage Compiler 26 * @author Stephan Schmidt <schst@php.net> 27 * 75 76 $compileFolder = $this->getOption( 'compileFolder' ); 77 $compileFile = sprintf( '%s/%s', $compileFolder, $compileName );Pear.php https://gitlab.com/blingbang2016/shop | PHP | 297 lines
48} 49$_pearPhpDir = $_pearDir . DS . 'php'; 50if (strpos($_includePath, $_pearPhpDir) === false) { 59// include necessary PEAR libs 60require_once $_pearPhpDir."/PEAR.php"; 61require_once $_pearPhpDir."/PEAR/Frontend.php"; 61require_once $_pearPhpDir."/PEAR/Frontend.php"; 62require_once $_pearPhpDir."/PEAR/Registry.php"; 63require_once $_pearPhpDir."/PEAR/Config.php"; 63require_once $_pearPhpDir."/PEAR/Config.php"; 64require_once $_pearPhpDir."/PEAR/Command.php"; 65require_once $_pearPhpDir."/PEAR/Exception.php"; 123 $config->set('bin_dir', $pear_dir); 124 $config->set('php_dir', $pear_dir.DS.'php'); 125 $config->set('download_dir', $pear_dir.DS.'download');helper.php https://gitlab.com/alexprowars/bitrix | PHP | 469 lines
94 if(isset($arField['HIDE_BY_NAMES']) && is_array($arField['HIDE_BY_NAMES'])) 95 $resultHtml .= 'onclick="hideFormElementsByNames(this, '.CUtil::PhpToJSObject($arField['HIDE_BY_NAMES']).');"'; 96 107 if(cbObj) 108 hideFormElementsByNames(cbObj, '.CUtil::PhpToJSObject($arField['HIDE_BY_NAMES']).'); 109 } 260 261 public static function getOptionOrImportValues($optName, $importFuncName = false, $arFuncParams = array(), $siteId = "") 262 { 266 { 267 $optValue = COption::GetOptionString('sale', $optName, '', $siteId); 268 $arOptValue = unserialize($optValue, ['allowed_classes' => false]); 288 { 289 $loc_diff = COption::GetOptionString('sale', 'ADDRESS_different_set', 'N'); 290FormValidator.php git://github.com/symfony/symfony.git | PHP | 251 lines
1<?php 2 63 /** @var Constraint[] $constraints */ 64 $constraints = $config->getOption('constraints', []); 65 160 $this->context->setConstraint($formConstraint); 161 $this->context->buildViolation($failure->getInvalidMessage() ?? $config->getOption('invalid_message')) 162 ->setParameters(array_replace( 163 ['{{ value }}' => $clientDataAsString], 164 $config->getOption('invalid_message_parameters'), 165 $failure->getInvalidMessageParameters() 174 // Mark the form with an error if it contains extra fields 175 if (!$config->getOption('allow_extra_fields') && \count($form->getExtraData()) > 0) { 176 $this->context->setConstraint($formConstraint); 176 $this->context->setConstraint($formConstraint); 177 $this->context->buildViolation($config->getOption('extra_fields_message', '')) 178 ->setParameter('{{ extra_fields }}', '"'.implode('", "', array_keys($form->getExtraData())).'"')options.php https://gitlab.com/alexprowars/bitrix | PHP | 252 lines
9IncludeModuleLangFile(__FILE__); 10IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/options.php"); 11 46 } 47 COption::SetOptionString("mail", "php_path", $php_path); 48 } 63 $Option = $arAllOptions[$i]; 64 $val = COption::GetOptionString("mail", $Option[0], $Option[2]); 65 $type = $Option[3]; 86 87<?$val = COption::GetOptionString("mail", "php_path", (mb_strtoupper(mb_substr(PHP_OS, 0, 3)) === "WIN") ? "../apache/php.exe -c ../apache/php.ini" : "authbind php -c /etc/php.ini");?> 88<script> 219 <td valign="middle" width="50%"> 220 <input type="text" id="php_path" size="35" maxlength="255" value="<?=htmlspecialcharsbx($val)?>" name="php_path"></td> 221 </tr>rubric_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 304 lines
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/subscribe/include.php"); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/subscribe/include.php"); 4require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/subscribe/prolog.php"); 5 6IncludeModuleLangFile(__FILE__); 7define("HELP_FILE", "add_newsletter.php"); 8 55 if($apply!="") 56 LocalRedirect("/bitrix/admin/rubric_edit.php?ID=".$ID."&mess=ok&lang=".LANG."&".$tabControl->ActiveTabParam()); 57 else 57 else 58 LocalRedirect("/bitrix/admin/rubric_admin.php?lang=".LANG); 59 }component.php https://gitlab.com/alexprowars/bitrix | PHP | 195 lines
41 // Data and data-time format 42 $arParams["TOPICS_PER_PAGE"] = intval($arParams["TOPICS_PER_PAGE"] > 0 ? $arParams["TOPICS_PER_PAGE"] : COption::GetOptionString("forum", "TOPICS_PER_PAGE", "10")); 43 $arParams["DATE_TIME_FORMAT"] = trim(empty($arParams["DATE_TIME_FORMAT"]) ? $DB->DateFormatToPHP(CSite::GetDateFormat("FULL")) : $arParams["DATE_TIME_FORMAT"]);Bootstrap.php https://gitlab.com/blingbang2016/shop | PHP | 168 lines
1<?php 2/** 25 */ 26#require_once 'Zend/Application/Bootstrap/BootstrapAbstract.php'; 27 68 array( 69 'resourceloader' => $application->getOption( 70 'resourceloader'Grid.php https://gitlab.com/blingbang2016/shop | PHP | 144 lines
1<?php 2/** 13?> 14<?php 15class Magiccart_Magicinstall_Block_Adminhtml_Page_Grid extends Mage_Adminhtml_Block_Widget_Grid 56 'type' => 'options', 57 'options' => Mage::getSingleton('page/source_layout')->getOptions(), 58 ));component.php https://gitlab.com/alexprowars/bitrix | PHP | 465 lines
152//converts the old type of document to a new 153if (COption::GetOptionString('wiki', 'convert_history_'.$arParams['IBLOCK_ID'], 'N') == 'N') 154{ 178 179CUtil::InitJSCore(array("ajax", "tooltip")); //http://jabber.bx/view.php?id=30695 180 460 461include_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/components/bitrix/wiki/include/nav.php'); 462AdminTypeTest.php git://github.com/sonata-project/SonataAdminBundle.git | PHP | 256 lines
1<?php 2 96 $field->getName()->shouldBeCalled(); 97 $field->getOption('edit', 'standard')->shouldBeCalled(); 98 $field->getOption('inline', 'natural')->shouldBeCalled(); 98 $field->getOption('inline', 'natural')->shouldBeCalled(); 99 $field->getOption('block_name', false)->shouldBeCalled(); 100 $formData = [];traffic.php https://gitlab.com/alexprowars/bitrix | PHP | 487 lines
1<?php 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/prolog.php"); 4/** @var CMain $APPLICATION */ 7 $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED")); 8include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/colors.php"); 9 134elseif (count($lAdmin->arFilterErrors)==0) : 135 $width = COption::GetOptionString("statistic", "GRAPH_WEIGHT"); 136 $height = COption::GetOptionString("statistic", "GRAPH_HEIGHT"); 142 <td valign="center" class="graph"> 143 <img class="graph" src="/bitrix/admin/traffic_graph.php?<?=GetFilterParams($FilterArr1)?>&<?=GetFilterParams($FilterArr2)?>&width=<?=$width?>&height=<?=$height?>&lang=<?=LANG?>&rand=<?=rand()?>&find_graph_type=<?=$graph_type?>" width="<?=$width?>" height="<?=$height?>"> 144 </td> 148 <tr> 149 <td valign="center"><img src="/bitrix/admin/graph_legend.php?color=<?=$arrColor["HITS"]?>" width="45" height="2"></td> 150 <td nowrap><img src="/bitrix/images/1.gif" width="3" height="1"><?=GetMessage("STAT_HITS_2")?></td>Command.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 512 lines
1<?php 2 181 182 $this->definition->addOptions($this->application->getDefinition()->getOptions()); 183 378 $name, 379 $_SERVER['PHP_SELF'].' '.$name 380 );FormErrors.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 22/** Zend_Form_Decorator_Abstract */ 23require_once 'Zend/Form/Decorator/Abstract.php'; 24 130 if (null === $this->_markupElementLabelStart) { 131 if (null === ($markupElementLabelStart = $this->getOption('markupElementLabelStart'))) { 132 $this->setMarkupElementLabelStart($this->_defaults['markupElementLabelStart']); 161 if (null === $this->_markupElementLabelEnd) { 162 if (null === ($markupElementLabelEnd = $this->getOption('markupElementLabelEnd'))) { 163 $this->setMarkupElementLabelEnd($this->_defaults['markupElementLabelEnd']); 192 if (null === $this->_markupListStart) { 193 if (null === ($markupListStart = $this->getOption('markupListStart'))) { 194 $this->setMarkupListStart($this->_defaults['markupListStart']); 223 if (null === $this->_markupListEnd) { 224 if (null === ($markupListEnd = $this->getOption('markupListEnd'))) { 225 $this->setMarkupListEnd($this->_defaults['markupListEnd']);adv_graph_1.php https://gitlab.com/alexprowars/bitrix | PHP | 132 lines
1<?php 2define("STOP_STATISTICS", true); 2define("STOP_STATISTICS", true); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 4/** @var CMain $APPLICATION */ 6if($STAT_RIGHT=="D") $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED")); 7include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/colors.php"); 8require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/img.php"); 10$width = intval($_GET["width"]); 11$max_width = COption::GetOptionInt("statistic", "GRAPH_WEIGHT"); 12if($width <= 0 || $width > $max_width) 15$height = intval($_GET["height"]); 16$max_height = COption::GetOptionInt("statistic", "GRAPH_HEIGHT"); 17if($height <= 0 || $height > $max_height)timelimiter.php https://gitlab.com/alexprowars/bitrix | PHP | 230 lines
1<?php 2 177 178 $sendingStart = $configuration->getOption('SENDING_START'); 179 $sendingEnd = $configuration->getOption('SENDING_END'); 179 $sendingEnd = $configuration->getOption('SENDING_END'); 180 $checkbox = $configuration->getOption('SENDING_TIME'); 181messagecall.php https://gitlab.com/alexprowars/bitrix | PHP | 243 lines
1<?php 2/** 163 { 164 $option = $this->configuration->getOption($key); 165 if (!$option || $option->hasValue()) 172 173 $textOption = $this->configuration->getOption('MESSAGE_TEXT'); 174 if ($textOption) 175 { 176 $speedOption = $this->configuration->getOption('VOICE_SPEED'); 177 $textOption->setView(SonataAdminExtension.php https://gitlab.com/freebird/WebApp | PHP | 315 lines
1<?php 2 255 256 $propertyPath = $fieldDescription->getOption('associated_property'); 257 259 // For BC kept associated_tostring option behavior 260 $method = $fieldDescription->getOption('associated_tostring', '__toString'); 261LocalTaskDefaultTest.php git://github.com/drupal/drupal.git | PHP | 348 lines
1<?php 2 55 * 56 * @var \Drupal\Core\StringTranslation\TranslationInterface|\PHPUnit\Framework\MockObject\MockObject 57 */ 62 * 63 * @var \Drupal\Core\Routing\RouteProviderInterface|\PHPUnit\Framework\MockObject\MockObject 64 */ 297 /** 298 * @covers ::getOptions 299 */ 299 */ 300 public function testGetOptions() { 301 $this->pluginDefinition['options'] = [ 307 $route_match = new RouteMatch('', new Route('/')); 308 $this->assertEquals($this->pluginDefinition['options'], $this->localTaskBase->getOptions($route_match)); 309Command.php https://gitlab.com/btkm/correct_fb | PHP | 282 lines
1<?php 2 61 62 if ($this->getOptions()) { 63 $messages[] = $this->optionsAsText(); 98 */ 99 private function getOptions() 100 { 102 103 return array_filter($this->getNativeDefinition()->getOptions(), function ($option) use ($hidden) { 104 return !in_array($option->getName(), $hidden); 124 { 125 return '<comment>Aliases:</comment> <info>' . implode(', ', $this->getAliases()) . '</info>' . PHP_EOL; 126 } 155 156 return implode(PHP_EOL, $messages); 157 }security_iprule_admin.php https://gitlab.com/alexprowars/bitrix | PHP | 284 lines
3 4require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 5 50$exclMasks=array( 51 '/bitrix/admin/user_options.php', 52); 95 } 96 elseif($selfBlock && (COption::GetOptionString("security", "ipcheck_allow_self_block")!=="Y")) 97 { 140 $returnUrl = $_GET["return_url"]? "&return_url=".urlencode($_GET["return_url"]): ""; 141 LocalRedirect("/bitrix/admin/security_iprule_admin.php?lang=".LANGUAGE_ID.$returnUrl."&".$tabControl->ActiveTabParam()); 142 } 167 168require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php"); 169Items.php https://gitlab.com/blingbang2016/shop | PHP | 254 lines
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 */ 214 */ 215 $options = $renderer->getOptionList(); 216 if ($options) {Default.php https://gitlab.com/blingbang2016/shop | PHP | 400 lines
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 */ 76 */ 77 public function getOption() 78 { 210 211 $option = $this->getOption(); 212 if (!isset($values[$option->getId()]) && $option->getIsRequire() && !$this->getSkipCheckRequiredOption()) { 330 */ 331 public function getOptionPrice($optionValue, $basePrice) 332 {component.php https://gitlab.com/alexprowars/bitrix | PHP | 374 lines
1<?php 2if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) 52 { 53 $arParams["EVENT_ID"] = CUserOptions::GetOption("main", "~event_list"); 54 $flt_event_id = (empty($arParams["EVENT_ID"])) ? $arParams["FILTER"] : $arParams["EVENT_ID"];botprovider.php https://gitlab.com/alexprowars/bitrix | PHP | 393 lines
1<?php 2namespace Bitrix\Im\Integration\UI\EntitySelector; 63 { 64 return $this->getOption('fillDialog', true); 65 } 90 { 91 return self::makeItems($bots, array_merge($this->getOptions(), $options)); 92 } 95 { 96 $options = array_merge($this->getOptions(), $options); 97component.php https://gitlab.com/alexprowars/bitrix | PHP | 157 lines
1<?php 2 108 } 109 $arFriends["PERSONAL_PHOTO"] = COption::GetOptionInt("socialnetwork", "default_user_picture_".$suffix, false, SITE_ID); 110 }ReCaptcha.php https://gitlab.com/blingbang2016/shop | PHP | 502 lines
1<?php 2/** 22/** @see Zend_Service_Abstract */ 23#require_once 'Zend/Service/Abstract.php'; 24 25/** @see Zend_Json */ 26#require_once 'Zend/Json.php'; 27 28/** @see Zend_Service_ReCaptcha_Response */ 29#require_once 'Zend/Service/ReCaptcha/Response.php'; 30 230 /** @see Zend_Service_ReCaptcha_Exception */ 231 #require_once 'Zend/Service/ReCaptcha/Exception.php'; 232 294 /** @see Zend_Service_ReCaptcha_Exception */ 295 #require_once 'Zend/Service/ReCaptcha/Exception.php'; 296deck.scale.js https://gitlab.com/Mirros/cdnjs | JavaScript | 190 lines
26 var scaleDeck = function() { 27 var options = $.deck('getOptions'); 28 var $container = $.deck('getContainer'); 54 var populateRootSlides = function() { 55 var options = $.deck('getOptions'); 56 var slideTest = $.map([ 78 var wrapRootSlideContent = function() { 79 var options = $.deck('getOptions'); 80 var wrap = '<div class="' + options.classes.scaleSlideWrapper + '"/>'; 86 var scaleOnResizeAndLoad = function() { 87 var options = $.deck('getOptions'); 88 99 var bindKeyEvents = function() { 100 var options = $.deck('getOptions'); 101 $document.unbind('keydown.deckscale');index.htm https://gitlab.com/shides-ac/HitOrMiss | HTML | 157 lines
76 // https://github.com/highcharts/highcharts/blob/master/samples/data/activity.json 77 $.getJSON('https://www.highcharts.com/samples/data/jsonp.php?filename=activity.json&callback=?', function (activity) { 78 $.each(activity.datasets, function (i, dataset) { 139 type: dataset.type, 140 color: Highcharts.getOptions().colors[i], 141 fillOpacity: 0.3,UpgradeTask.php git://github.com/croogo/croogo.git | PHP | 353 lines
1<?php 2 8 * @author Fahad Ibnay Heylaal <contact@fahad19.com> 9 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 10 * @link http://www.croogo.org 56/** 57 * getOptionParser 58 */ 58 */ 59 public function getOptionParser() { 60 return parent::getOptionParser() 65 'Upgrades the ACO hierarchy from 1.3/1.4 so it follows the default ' . 66 'behavior in normal CakePHP applications. The primary difference is ' . 67 'plugin controllers now are stored underneath its own Plugin ACO record, ' .toastr.js https://gitlab.com/Mirros/cdnjs | JavaScript | 306 lines
6 * Use, reproduction, distribution, and modification of this code is subject to the terms and 7 * conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php 8 * 43 type: toastType.error, 44 iconClass: getOptions().iconClasses.error, 45 message: message, 53 type: toastType.info, 54 iconClass: getOptions().iconClasses.info, 55 message: message, 67 type: toastType.success, 68 iconClass: getOptions().iconClasses.success, 69 message: message, 77 type: toastType.warning, 78 iconClass: getOptions().iconClasses.warning, 79 message: message,adv_graph_list.php https://gitlab.com/alexprowars/bitrix | PHP | 413 lines
1<?php 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/prolog.php"); 4/** @var CMain $APPLICATION */ 4/** @var CMain $APPLICATION */ 5include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/colors.php"); 6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/img.php"); 12$err_mess = "File: ".__FILE__."<br>Line: "; 13define("HELP_FILE","adv_list.php"); 14 142{ 143 $width = COption::GetOptionString("statistic", "GRAPH_WEIGHT"); 144 $height = COption::GetOptionString("statistic", "GRAPH_HEIGHT"); 171 <?if($context=="tab"):?> 172 <a href="/bitrix/admin/adv_dynamic_list.php?lang=<?=LANG?>&find_adv_id=<?=$ADV_ID?>&set_default=Y"><?=GetMessage("STAT_ALL_DYNAMICS")?></a><br> 173 <a href="/bitrix/admin/adv_graph_list.php?lang=<?=LANG?>&ADV_ID=<?=$ADV_ID?>"><?=GetMessage("STAT_ALL_GRAPHICS")?></a><br>groupstepper.php https://gitlab.com/alexprowars/bitrix | PHP | 364 lines
1<?php 2namespace Bitrix\Landing\Copy\Integration; 36 $this->setQueue($queue); 37 $queueOption = $this->getOptionData($this->baseName); 38 if (empty($queueOption)) 302 { 303 return $this->getOptionData($this->queueName); 304 } 318 { 319 return $this->getOptionData($this->baseName); 320 } 348 { 349 $queue = $this->getOptionData($this->queueName); 350 return empty($queue); 352 353 protected function getOptionData($optionName) 354 {component.php https://gitlab.com/alexprowars/bitrix | PHP | 277 lines
30 31 CComponentUtil::__IncludeLang("/bitrix/components/bitrix/webservice.sale/", "/component_1.php", $lang); 32 33 $arFilter = array(); 34 $server_name = COption::GetOptionString("main", "server_name", $GLOBALS["SERVER_NAME"]); 35 $protocol = (CMain::IsHTTPS() ? "https" : "http"); 222 "TEXT_MESSAGE" => htmlspecialchars($strSaleStatText), 223 "URL" => htmlspecialchars($protocol."://".$server_name."/bitrix/admin/sale_stat.php?lang=".$lang) 224 );components_lib.php https://gitlab.com/alexprowars/bitrix | PHP | 417 lines
25 ), 26 "DEFAULT" => $GLOBALS["DB"]->DateFormatToPHP(CSite::GetDateFormat("FULL")), 27 "ADDITIONAL_VALUES" => "Y", 49 ), 50 "DEFAULT" => $GLOBALS["DB"]->DateFormatToPHP(CSite::GetDateFormat("SHORT")), 51 "ADDITIONAL_VALUES" => "Y", 102 { 103 if ((COption::GetOptionString("forum", "SHOW_ICQ_CONTACT", "N") != "Y")): 104 return array( 250 case "SHORT": 251 return FormatDate($DB->dateFormatToPHP(FORMAT_DATE), $timestamp); 252 case "FULL": 252 case "FULL": 253 return FormatDate($DB->dateFormatToPHP(FORMAT_DATETIME), $timestamp); 254 default:Option.php https://gitlab.com/blingbang2016/shop | PHP | 284 lines
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 */ 58 if (is_null($this->_showSingle)) { 59 $_option = $this->getOption(); 60 $_selections = $_option->getSelections(); 74 { 75 $_option = $this->getOption(); 76 $_default = $_option->getDefaultSelection(); 109 $this->_selectedOptions = array(); 110 $option = $this->getOption(); 111Router.php https://gitlab.com/HatemProjects/hatem | PHP | 323 lines
1<?php 2 110 'generator_base_class' => 'Symfony\\Component\\Routing\\Generator\\UrlGenerator', 111 'generator_dumper_class' => 'Symfony\\Component\\Routing\\Generator\\Dumper\\PhpGeneratorDumper', 112 'generator_cache_class' => 'ProjectUrlGenerator', 114 'matcher_base_class' => 'Symfony\\Component\\Routing\\Matcher\\UrlMatcher', 115 'matcher_dumper_class' => 'Symfony\\Component\\Routing\\Matcher\\Dumper\\PhpMatcherDumper', 116 'matcher_cache_class' => 'ProjectUrlMatcher', 161 */ 162 public function getOption($key) 163 { 251 $class = $this->options['matcher_cache_class']; 252 $cache = new ConfigCache($this->options['cache_dir'].'/'.$class.'.php', $this->options['debug']); 253 if (!$cache->isFresh()) { 283 $class = $this->options['generator_cache_class']; 284 $cache = new ConfigCache($this->options['cache_dir'].'/'.$class.'.php', $this->options['debug']); 285 if (!$cache->isFresh()) {rating_rules.php https://gitlab.com/alexprowars/bitrix | PHP | 168 lines
1<?php 2 2 3require($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/classes/general/rating_rules.php"); 4 37 $sRatingUser = ""; 38 $sRatingWeightType = COption::GetOptionString("main", "rating_weight_type", "auto"); 39 if ($sRatingWeightType == 'auto') 40 { 41 $sRatingAuthrorityWeight = COption::GetOptionString("main", "rating_authority_weight_formula", 'Y'); 42 if ($sRatingAuthrorityWeight == 'Y') 43 { 44 $communitySize = COption::GetOptionString("main", "rating_community_size", 1); 45 $communityAuthority = COption::GetOptionString("main", "rating_community_authority", 1); 45 $communityAuthority = COption::GetOptionString("main", "rating_community_authority", 1); 46 $voteWeight = COption::GetOptionString("main", "rating_vote_weight", 1); 47 $sValue = "($communitySize*(RR.VOTE_WEIGHT/".round($voteWeight, 4).")/".round($communityAuthority).") as VALUE";XmlFileLoaderTest.php https://gitlab.com/freebird/WebApp | PHP | 138 lines
1<?php 2 17 18class XmlFileLoaderTest extends \PHPUnit_Framework_TestCase 19{ 46 $this->assertSame('\w+', $route->getRequirement('locale')); 47 $this->assertSame('RouteCompiler', $route->getOption('compiler_class')); 48 $this->assertEquals(array('GET', 'POST', 'PUT', 'OPTIONS'), $route->getMethods()); 67 $this->assertNull($route->getDefault('slug')); 68 $this->assertSame('RouteCompiler', $route->getOption('compiler_class')); 69 } 83 $this->assertSame('\d+', $route->getRequirement('foo')); 84 $this->assertSame('bar', $route->getOption('foo')); 85 $this->assertSame('', $route->getHost());highloadblock_directory_ajax.php https://gitlab.com/alexprowars/bitrix | PHP | 461 lines
12 13require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php"); 14Loc::loadMessages(__FILE__); 34 echo Bitrix\Main\Web\Json::encode(array('ERROR' => 'SS_MODULE_NOT_INSTALLED')); 35 require($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/epilog_admin_after.php'); 36 die(); 42 echo Bitrix\Main\Web\Json::encode(array('ERROR' => 'SS_IBLOCK_ID_ABSENT')); 43 require($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/epilog_admin_after.php'); 44 die(); 50 echo Bitrix\Main\Web\Json::encode(array('ERROR' => 'SS_NO_ADMIN')); 51 require($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/epilog_admin_after.php'); 52 die(); 69 echo Bitrix\Main\Web\Json::encode(array('ERROR' => 'SS_ACCESS_DENIED')); 70 require($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/epilog_admin_after.php'); 71 die();AbstractOptions.php https://gitlab.com/daigiangaitu91/magento | PHP | 184 lines
1<?php 2/** 97 */ 98 public function getOption() 99 { 107 { 108 if ($option = $this->getOption()) { 109 return $this->_formatPrice(FormatterPluginManager.php git://github.com/drupal/drupal.git | PHP | 210 lines
1<?php 2 168 */ 169 public function getOptions($field_type = NULL) { 170 if (!isset($this->formatterOptions)) {ReCaptchaTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: ReCaptchaTest.php 24220 2011-07-11 21:31:29Z matthew $ 21 */ 23/** @see Zend_Service_ReCaptcha */ 24require_once 'Zend/Service/ReCaptcha.php'; 25 26/** @see Zend_Http_Client_Adapter_Test */ 27require_once 'Zend/Http/Client/Adapter/Test.php'; 28 29/** @see Zend_Config */ 30require_once 'Zend/Config.php'; 31 40 */ 41class Zend_Service_ReCaptcha_ReCaptchaTest extends PHPUnit_Framework_TestCase 42{Item.php https://gitlab.com/daigiangaitu91/magento | PHP | 203 lines
1<?php 2/** 195 */ 196 public function getOptionBycode($code) 197 { 198 if ($this->getQuoteItem()) { 199 return $this->getQuoteItem()->getOptionBycode($code); 200 }template.php https://gitlab.com/alexprowars/bitrix | PHP | 124 lines
19$arParams["ADDITIONAL_URL"] = htmlspecialcharsbx(trim($arParams["ADDITIONAL_URL"])); 20$arParams["SERVER_NAME"] = (defined("SITE_SERVER_NAME") && SITE_SERVER_NAME <> '') ? SITE_SERVER_NAME : COption::GetOptionString("main", "server_name"); 21$arParams["NAME_TEMPLATE"] = str_replace(array("#NOBR#","#/NOBR#"), "", (!!$arParams["NAME_TEMPLATE"] ? $arParams["NAME_TEMPLATE"] : CSite::GetDefaultNameFormat())); 29if (intval($arResult["FILE"]["ID"]) > 0) 30 $arResult["FILE"]["SRC"] = "/bitrix/components/bitrix/forum.interface/show_file.php?fid=". 31 htmlspecialcharsbx($arResult["FILE"]["ID"]).action.php https://gitlab.com/alexprowars/bitrix | PHP | 157 lines
1<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();?><? 2include_once(GetLangFileName(dirname(__FILE__)."/", "/payment.php")); 3// Input: 22 23include(dirname(__FILE__)."/common.php"); 24 88 $strPostQueryString .= "&x_email_customer=FALSE"; 89 $strPostQueryString .= "&x_merchant_email=".urlencode(COption::GetOptionString("sale", "order_email", "")); 90 154 $OUTPUT_CURRENCY = $INPUT_CURRENCY; 155 $OUTPUT_RESPONSE_DATE = Date(CDatabase::DateFormatToPHP(CLang::GetDateFormat("FULL", LANG))); 156}ProductExternalTest.php https://gitlab.com/daigiangaitu91/magento | PHP | 321 lines
1<?php 2/** 13 * @see \Magento\Catalog\Model\ProductPriceTest 14 * @magentoDataFixture Magento/Catalog/_files/categories.php 15 */ 15 */ 16class ProductExternalTest extends \PHPUnit_Framework_TestCase 17{ 252 * @covers \Magento\Catalog\Model\Product::addOption 253 * @covers \Magento\Catalog\Model\Product::getOptionById 254 * @covers \Magento\Catalog\Model\Product::getOptions 257 { 258 $this->assertEquals([], $this->_model->getOptions()); 259 267 268 $this->assertSame($option, $this->_model->getOptionById($optionId)); 269 $this->assertEquals([$optionId => $option], $this->_model->getOptions());dd-template-normal-display.php https://gitlab.com/hop23typhu/list-theme | PHP | 338 lines
111 112 <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post" id="<?php echo DD_FORM; ?>"> 113 260 <option value="<?php echo DD_SELECT_NONE; ?>" <?php echo ($obj->getOptionAppendType()==DD_SELECT_NONE) ? DD_SELECT_SELECTED : DD_EMPTY_VALUE; ?>><?php echo DD_SELECT_NONE; ?></option> 261 <option value="<?php echo DD_SELECT_LEFT_FLOAT; ?>" <?php echo ($obj->getOptionAppendType()==DD_SELECT_LEFT_FLOAT) ? DD_SELECT_SELECTED : DD_EMPTY_VALUE; ?>><?php echo DD_SELECT_LEFT_FLOAT; ?></option> 262 <option value="<?php echo DD_SELECT_RIGHT_FLOAT; ?>" <?php echo ($obj->getOptionAppendType()==DD_SELECT_RIGHT_FLOAT) ? DD_SELECT_SELECTED : DD_EMPTY_VALUE; ?>><?php echo DD_SELECT_RIGHT_FLOAT; ?></option> 262 <option value="<?php echo DD_SELECT_RIGHT_FLOAT; ?>" <?php echo ($obj->getOptionAppendType()==DD_SELECT_RIGHT_FLOAT) ? DD_SELECT_SELECTED : DD_EMPTY_VALUE; ?>><?php echo DD_SELECT_RIGHT_FLOAT; ?></option> 263 <option value="<?php echo DD_SELECT_BEFORE_CONTENT; ?>" <?php echo ($obj->getOptionAppendType()==DD_SELECT_BEFORE_CONTENT) ? DD_SELECT_SELECTED : DD_EMPTY_VALUE; ?>><?php echo DD_SELECT_BEFORE_CONTENT; ?></option> 264 <option value="<?php echo DD_SELECT_AFTER_CONTENT; ?>" <?php echo ($obj->getOptionAppendType()==DD_SELECT_AFTER_CONTENT) ? DD_SELECT_SELECTED : DD_EMPTY_VALUE; ?>><?php echo DD_SELECT_AFTER_CONTENT; ?></option> 283 <td> 284 <input name=<?php echo $obj->option_button_weight; ?> type="text" value="<?php echo ($obj->getOptionButtonWeight()==DD_EMPTY_VALUE) ? 0 : $obj->getOptionButtonWeight(); ?>" size="3" maxlength="3"/> 285 </td> 289 ?> 290 <INPUT TYPE=CHECKBOX NAME="<?php echo $obj->option_lazy_load; ?>" <?php echo ($obj->getOptionLazyLoad()==DD_DISPLAY_ON) ? DD_CHECK_BOX_ON : DD_CHECK_BOX_OFF ?>> 291 <?phpModuleUninstallCommand.php https://gitlab.com/daigiangaitu91/magento | PHP | 379 lines
1<?php 2/** 27 * 28 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 29 * @SuppressWarnings(PHPMD.ExcessiveParameterList) 192 * {@inheritdoc} 193 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 194 */ 230 $this->takeBackup($input, $output); 231 $dbBackupOption = $input->getOption(self::INPUT_KEY_BACKUP_DB); 232 if ($input->getOption(self::INPUT_KEY_REMOVE_DATA)) { 272 $time = time(); 273 if ($input->getOption(self::INPUT_KEY_BACKUP_CODE)) { 274 $codeBackup = $this->backupRollbackFactory->create($output); 356 "<error>Cannot uninstall module '$module' because the following module(s) depend on it:</error>" . 357 PHP_EOL . "\t<error>" . implode('</error>' . PHP_EOL . "\t<error>", array_keys($dependingModules)) . 358 "</error>";component.php https://gitlab.com/alexprowars/bitrix | PHP | 250 lines
13) 14 $arParams["REDIRECT_PAGE"] = "index.php"; 15 179 "ACTIVE" => ((DoubleVal($arPlan["MIN_PLAN_VALUE"]) > 0) ? "N" : "Y"), 180 "DATE_CREATE" => date($DB->DateFormatToPHP(CSite::GetDateFormat("FULL")), time()+CTimeZone::GetOffset()), 181 "PAID_SUM" => 0, 215 $arResult["USER_AUTHORIZED"] = "N"; 216 $arResult["DEFAULT_USER_LOGIN"] = ${COption::GetOptionString("main", "cookie_name", "BITRIX_SM")."_LOGIN"}; 217 218 $arResult["CAPTCHA_CODE"] = False; 219 if (COption::GetOptionString("main", "captcha_registration", "N") == "Y") 220 $arResult["CAPTCHA_CODE"] = htmlspecialcharsbx($GLOBALS["APPLICATION"]->CaptchaGetCode());menu.php https://gitlab.com/alexprowars/bitrix | PHP | 142 lines
38 "url" => "cluster_slave_list.php?lang=".LANGUAGE_ID."&group_id=".$arGroup["ID"], 39 "more_url" => Array("cluster_slave_list.php?group_id=".$arGroup["ID"], "cluster_slave_edit.php?group_id=".$arGroup["ID"]), 40 "title" => GetMessage("CLU_MENU_SLAVE_ITEM_TITLE"), 67 "url" => "cluster_webnode_list.php?lang=" . LANGUAGE_ID . "&group_id=" . $arGroup["ID"], 68 "more_url" => Array("cluster_webnode_list.php?group_id=" . $arGroup["ID"], "cluster_webnode_edit.php?group_id=" . $arGroup["ID"]), 69 "title" => GetMessage("CLU_MENU_WEBNODE_ITEM_TITLE"), 107 "url" => "cluster_webnode_list.php?lang=".LANGUAGE_ID."&group_id=1", 108 "more_url" => Array("cluster_webnode_list.php?group_id=1", "cluster_webnode_edit.php?group_id=1"), 109 "title" => GetMessage("CLU_MENU_WEBNODE_ITEM_TITLE"), 115 "url" => "cluster_dbnode_list.php?lang=".LANGUAGE_ID, 116 "more_url" => Array("cluster_dbnode_list.php", "cluster_dbnode_edit.php"), 117 "title" => GetMessage("CLU_MENU_DBNODE_TITLE"), 129 "url" => "cluster_index.php?lang=".LANGUAGE_ID, 130 "more_url" => array("cluster_index.php", "cluster_group_edit.php"), 131 "title" => GetMessage("CLU_MENU_GROUP_ITEM_TITLE"),ReCaptchaTest.php git://pkgs.fedoraproject.org/php-ZendFramework | PHP | 295 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: ReCaptchaTest.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 23/** @see Zend_Service_ReCaptcha */ 24require_once 'Zend/Service/ReCaptcha.php'; 25 26/** @see Zend_Http_Client_Adapter_Test */ 27require_once 'Zend/Http/Client/Adapter/Test.php'; 28 29/** @see Zend_Config */ 30require_once 'Zend/Config.php'; 31 40 */ 41class Zend_Service_ReCaptcha_ReCaptchaTest extends PHPUnit_Framework_TestCase 42{Wishlist.php https://gitlab.com/blingbang2016/shop | PHP | 186 lines
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 */ 96 */ 97 public function getOptionsRenderCfgs() 98 { 123 */ 124 public function getOptionsRenderCfg($productType) 125 { 143 { 144 $cfg = $this->getOptionsRenderCfg($item->getProduct()->getTypeId()); 145 if (!$cfg) {menu.php https://gitlab.com/alexprowars/bitrix | PHP | 470 lines
1<?php 2if ( ! CModule::IncludeModule('learning') ) 56 "text" => GetMessage("LEARNING_QUESTION"), 57 "url" => "learn_question_admin.php?lang=" . LANG 58 . '&PARENT_LESSON_ID=' . ($parentLessonId + 0) 64 array( 65 "learn_question_admin.php?lang=" . LANG 66 . '&PARENT_LESSON_ID=' . ($parentLessonId + 0) 68 . "&from=learn_menu", 69 "learn_question_edit.php?lang=" . LANG 70 . '&LESSON_PATH=' . $urlPath 71 . "&from=learn_menu", 72 "learn_question_admin.php?lang=" . LANG 73 . '&PARENT_LESSON_ID=' . ($parentLessonId + 0) 74 . '&LESSON_PATH=' . $urlPath, 75 "learn_question_edit.php?lang=" . LANG 76 . '&LESSON_PATH=' . $urlPath,search_sitemap.php https://gitlab.com/alexprowars/bitrix | PHP | 279 lines
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/search/prolog.php"); 16{ 17 require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_js.php"); 18 46 $arOptions = array( 47 "FORUM_TOPICS_ONLY" => COption::GetOptionString("search", "sm_forum_topics_only"), 48 "BLOG_NO_COMMENTS" => COption::GetOptionString("search", "sm_blog_no_comments"), 48 "BLOG_NO_COMMENTS" => COption::GetOptionString("search", "sm_blog_no_comments"), 49 "USE_HTTPS" => COption::GetOptionString("search", "sm_use_https"), 50 ); 51 52 $sm_max_execution_time = COption::GetOptionString("search", "sm_max_execution_time"); 53 $sm_record_limit = COption::GetOptionString("search", "sm_record_limit");Request.php https://gitlab.com/blingbang2016/shop | PHP | 140 lines
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 */ 120 * @method Mage_Shipping_Model_Rate_Request setOptionInsurance(boolean $value) 121 * @method boolean getOptionInsurance() 122 * @method Mage_Shipping_Model_Rate_Request setOptionHandling(float $flag) 122 * @method Mage_Shipping_Model_Rate_Request setOptionHandling(float $flag) 123 * @method float getOptionHandling() 124 *component.php https://gitlab.com/alexprowars/bitrix | PHP | 277 lines
33$arParams["COMMENTS_PER_PAGE"] = intval($arParams["COMMENTS_PER_PAGE"] > 0 ? $arParams["COMMENTS_PER_PAGE"] : 34 COption::GetOptionString("forum", "COMMENTS_PER_PAGE", "10")); 35$arParams["SHOW_FORUM_ANOTHER_SITE"] = ($arParams["SHOW_FORUM_ANOTHER_SITE"] == "Y" ? "Y" : "N"); 35$arParams["SHOW_FORUM_ANOTHER_SITE"] = ($arParams["SHOW_FORUM_ANOTHER_SITE"] == "Y" ? "Y" : "N"); 36$arParams["DATE_FORMAT"] = trim(empty($arParams["DATE_FORMAT"]) ? $DB->DateFormatToPHP(CSite::GetDateFormat("SHORT")) : $arParams["DATE_FORMAT"]); 37$arParams["DATE_TIME_FORMAT"] = trim(empty($arParams["DATE_TIME_FORMAT"]) ? $DB->DateFormatToPHP(CSite::GetDateFormat("FULL")) : 46/***************** STANDART ****************************************/ 47if ($arParams["CACHE_TYPE"] == "Y" || ($arParams["CACHE_TYPE"] == "A" && COption::GetOptionString("main", "component_cache_on", "Y") == "Y")) 48 $arParams["CACHE_TIME"] = intval($arParams["CACHE_TIME"]); 145 146 $res["~POST_MESSAGE_TEXT"] = (COption::GetOptionString("forum", "FILTER", "Y") == "Y" ? $res["~POST_MESSAGE_FILTER"] : $res["~POST_MESSAGE"]); 147ExportXmlTest.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 436 lines
1<?php 2 4 5namespace PhpMyAdmin\Tests\Plugins\Export; 6 6 7use PhpMyAdmin\DatabaseInterface; 8use PhpMyAdmin\Plugins\Export\ExportXml; 8use PhpMyAdmin\Plugins\Export\ExportXml; 9use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyMainGroup; 10use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup; 10use PhpMyAdmin\Properties\Options\Groups\OptionsPropertyRootGroup; 11use PhpMyAdmin\Properties\Options\Items\BoolPropertyItem; 12use PhpMyAdmin\Properties\Options\Items\HiddenPropertyItem; 12use PhpMyAdmin\Properties\Options\Items\HiddenPropertyItem; 13use PhpMyAdmin\Properties\Plugins\ExportPluginProperties; 14use PhpMyAdmin\Table;Grid.php https://gitlab.com/blingbang2016/shop | PHP | 154 lines
1<?php 2class Magiccart_Shopbrand_Block_Adminhtml_Brand_Grid extends Mage_Adminhtml_Block_Widget_Grid 129 130 $statuses = Mage::getSingleton('shopbrand/status')->getOptionArray(); // option Action for change status 131 array_unshift($statuses, array('label' => '', 'value' => ''));sendcoinsdialog.cpp https://gitlab.com/bitcoin/bitcoin-stable.git | C++ | 329 lines
2// Distributed under the MIT/X11 software license, see the accompanying 3// file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 53 } 54 if(model && model->getOptionsModel()) 55 { 57 connect(model, SIGNAL(balanceChanged(qint64, qint64, qint64)), this, SLOT(setBalance(qint64, qint64, qint64))); 58 connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit())); 59 } 314 Q_UNUSED(immatureBalance); 315 if(!model || !model->getOptionsModel()) 316 return; 317 318 int unit = model->getOptionsModel()->getDisplayUnit(); 319 ui->labelBalance->setText(BitcoinUnits::formatWithUnit(unit, balance));Upsell.php https://gitlab.com/daigiangaitu91/magento | PHP | 376 lines
1<?php 2/** 64 * 65 * @SuppressWarnings(PHPMD.ExcessiveParameterList) 66 */ 183 * @return $this 184 * @SuppressWarnings(PHPMD.ExcessiveMethodLength) 185 */ 228 'type' => 'options', 229 'options' => $this->_type->getOptionArray(), 230 'header_css_class' => 'col-type', 256 'type' => 'options', 257 'options' => $this->_status->getOptionArray(), 258 'header_css_class' => 'col-status', 268 'type' => 'options', 269 'options' => $this->_visibility->getOptionArray(), 270 'header_css_class' => 'col-visibility',report.php https://gitlab.com/alexprowars/bitrix | PHP | 346 lines
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3 5 6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/sale/prolog.php"); 7 16{ 17 require($DOCUMENT_ROOT."/bitrix/modules/main/include/prolog_admin_after.php"); 18 20 21 require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php"); 22 die(); 53 $arParams = array( 54 'PATH_TO_REPORT_LIST' => '/bitrix/admin/sale_report.php?lang='.LANG 55 );fileman_file_upload.php https://gitlab.com/alexprowars/bitrix | PHP | 215 lines
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/fileman/prolog.php"); 6 $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED")); 7require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/fileman/include.php"); 8IncludeModuleLangFile(__FILE__); 65 { 66 $strWarning .= GetMessage("FILEMAN_FILEUPLOAD_PHPERROR")." \"".$pathto."\".\n"; 67 } 70 $bQuota = true; 71 if (COption::GetOptionInt("main", "disk_space") > 0) 72 { 84 $strWarning .= GetMessage("FILEMAN_FILEUPLOAD_FILE_CREATE_ERROR")." \"".$pathto."\"\n"; 85 elseif(COption::GetOptionInt("main", "disk_space") > 0) 86 CDiskQuota::updateDiskQuota("file", $size, "copy");Spellcheck.php git://github.com/basdenooijer/solarium.git | PHP | 397 lines
1<?php 2/** 110 { 111 return $this->getOption('query'); 112 } 133 { 134 return $this->getOption('build'); 135 } 156 { 157 return $this->getOption('reload'); 158 } 179 { 180 return $this->getOption('dictionary'); 181 } 202 { 203 return $this->getOption('count'); 204 }RouteCollectionBuilderTest.php https://gitlab.com/hatemdigify/digifyblog | PHP | 324 lines
1<?php 2 18 19class RouteCollectionBuilderTest extends \PHPUnit_Framework_TestCase 20{ 197 $this->assertEquals('\d+', $actualListRoute->getRequirement('id')); 198 $this->assertTrue($actualListRoute->getOption('expose')); 199 // none of these should be overridden 201 $this->assertEquals('json|xml', $actualListRoute->getRequirement('_format')); 202 $this->assertTrue($actualListRoute->getOption('fooBar')); 203 $this->assertEquals('example.com', $actualListRoute->getHost()); 209 $this->assertEquals('fr|en', $actualListRoute->getRequirement('_locale')); 210 $this->assertTrue($actualListRoute->getOption('niceRoute')); 211options.php https://gitlab.com/alexprowars/bitrix | PHP | 164 lines
5 6IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/options.php"); 7IncludeModuleLangFile(__FILE__); 78 ob_start(); 79 require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/admin/group_rights.php"); 80 ob_end_clean(); 102 $type = $Option[2]; 103 $val = COption::GetOptionString($module_id, $Option[0]); 104 ?> 151<?$tabControl->BeginNextTab();?> 152<?require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/admin/group_rights.php");?> 153<?$tabControl->Buttons();?>entity.php https://gitlab.com/alexprowars/bitrix | PHP | 334 lines
1<?php 2 41 $this->forum = $storage; 42 $this->editOwn = (\COption::GetOptionString("forum", "USER_EDIT_OWN_POST", "Y") == "Y"); 43 }Application.php https://gitlab.com/blingbang2016/shop | PHP | 440 lines
67 * 68 * Initialize application. Potentially initializes include_paths, PHP 69 * settings, and bootstrap class. 80 81 #require_once 'Zend/Loader/Autoloader.php'; 82 $this->_autoloader = Zend_Loader_Autoloader::getInstance(); 153 if (!empty($options['phpsettings'])) { 154 $this->setPhpSettings($options['phpsettings']); 155 } 210 */ 211 public function getOptions() 212 { 232 */ 233 public function getOption($key) 234 {class.php https://gitlab.com/alexprowars/bitrix | PHP | 360 lines
46 if ( 47 \COption::GetOptionInt("sender", "group_agent_added") === 0 48 || \COption::GetOptionInt("sender", "group_agent_added") === 1 97 98 $this->arResult['ACTION_URI'] = $this->getPath() . '/ajax.php'; 99Select.php https://gitlab.com/daigiangaitu91/magento | PHP | 359 lines
1<?php 2/** 333 foreach ($optionSpec['options'] as $nestedKey => $nestedOptionSpec) { 334 $values[] = $this->getOptionValue($nestedKey, $nestedOptionSpec); 335 } 338 339 $values[] = $this->getOptionValue($key, $optionSpec); 340 } 343 344 protected function getOptionValue($key, $optionSpec) 345 {class.php https://gitlab.com/alexprowars/bitrix | PHP | 301 lines
18 19 $arParams['IBLOCK_TYPE_ID'] = COption::GetOptionString("lists", "livefeed_iblock_type_id"); 20 30 $USER, 31 COption::GetOptionString("lists", "livefeed_iblock_type_id"), 32 false 154 global $DB; 155 $dateFormat = $DB->dateFormatToPHP(Csite::getDateFormat()); 156 $dateParse = date_parse_from_format($dateFormat, $value); 158 { 159 $timeFormat = $DB->dateFormatToPHP(CSite::getTimeFormat()); 160 $value .= " ".date($timeFormat, mktime(23, 59, 59, 0, 0, 0)); 191 $filter['CREATED_BY'] = $this->arParams['USER_ID']; 192 $iblockTypeId = COption::GetOptionString("lists", "livefeed_iblock_type_id"); 193 $filter['=IBLOCK_TYPE'] = $iblockTypeId;CollectionTypeTest.php https://gitlab.com/freebird/WebApp | PHP | 277 lines
1<?php 2 43 $this->assertEquals('foo@bar.com', $form[1]->getData()); 44 $formAttrs0 = $form[0]->getConfig()->getOption('attr'); 45 $formAttrs1 = $form[1]->getConfig()->getOption('attr'); 53 $this->assertEquals('foo@baz.com', $form[0]->getData()); 54 $formAttrs0 = $form[0]->getConfig()->getOption('attr'); 55 $this->assertEquals(20, $formAttrs0['maxlength']);Manager.php https://gitlab.com/alexprowars/bitrix | PHP | 273 lines
1<?php 2 150 { 151 return COption::GetOptionString('im', 'migration_to_new_settings') === 'Y'; 152 } 155 { 156 $lastConvertedId = COption::GetOptionInt('im', 'last_converted_user'); 157 return $userId < $lastConvertedId;component.php https://gitlab.com/alexprowars/bitrix | PHP | 335 lines
39 40if ($arParams["CACHE_TYPE"] == "Y" || ($arParams["CACHE_TYPE"] == "A" && COption::GetOptionString("main", "component_cache_on", "Y") == "Y")) 41 $arParams["CACHE_TIME"] = intval($arParams["CACHE_TIME"]); 43 $arParams["CACHE_TIME"] = 0; 44$arParams["DATE_TIME_FORMAT"] = trim(empty($arParams["DATE_TIME_FORMAT"]) ? $DB->DateFormatToPHP(CSite::GetDateFormat("FULL")) : $arParams["DATE_TIME_FORMAT"]); 45 67 $arParams["PATH_TO_USER"] = htmlspecialcharsbx($APPLICATION->GetCurPage()."?".$arParams["PAGE_VAR"]."=user&".$arParams["USER_VAR"]."=#user_id#"); 68$arParams["DATE_TIME_FORMAT"] = trim(empty($arParams["DATE_TIME_FORMAT"]) ? $DB->DateFormatToPHP(CSite::GetDateFormat("FULL")) : $arParams["DATE_TIME_FORMAT"]); 69$arParams["ALLOW_POST_CODE"] = $arParams["ALLOW_POST_CODE"] !== "N"; 75$user_id = intval($USER->GetID()); 76$cache = new CPHPCache; 77$cache_id = "blog_last_messages_".serialize($arParams)."_".serialize($UserGroupID)."_".$USER->IsAdmin();smslineby.php https://gitlab.com/alexprowars/bitrix | PHP | 335 lines
1<?php 2namespace Bitrix\MessageService\Sender\Sms; 46 { 47 $from = $this->getOption('from_list'); 48 return is_array($from) ? $from : []; 53 return ( 54 $this->getOption('login') !== null 55 && 55 && 56 $this->getOption('api_key') !== null 57 ); 82 return array( 83 'login' => $this->getOption('login'), 84 ); 246 { 247 $key = $this->getOption('api_key'); 248 }%%A1^A1B^A1B35AFB%%SN1_Serial_NumberEditViewfault_description.tpl.php https://bitbucket.org/allexblacker/suitecrm.git | PHP | 401 lines
1<?php /* Smarty version 2.6.29, created on 2018-03-15 01:35:35 2 compiled from cache/include/InlineEditing/SN1_Serial_NumberEditViewfault_description.tpl */ ?> 2 compiled from cache/include/InlineEditing/SN1_Serial_NumberEditViewfault_description.tpl */ ?> 3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); 4smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'cache/include/InlineEditing/SN1_Serial_NumberEditViewfault_description.tpl', 10, false),array('function', 'sugar_getimagepath', 'cache/include/InlineEditing/SN1_Serial_NumberEditViewfault_description.tpl', 43, false),array('modifier', 'lookup', 'cache/include/InlineEditing/SN1_Serial_NumberEditViewfault_description.tpl', 38, false),array('modifier', 'count', 'cache/include/InlineEditing/SN1_Serial_NumberEditViewfault_description.tpl', 143, false),)), $this); ?> 6 7<?php if (! isset ( $this->_tpl_vars['config']['enable_autocomplete'] ) || $this->_tpl_vars['config']['enable_autocomplete'] == false): ?> 8 <select name="<?php echo $this->_tpl_vars['fields']['fault_description']['name']; ?> 9" 10 id="<?php echo $this->_tpl_vars['fields']['fault_description']['name']; ?> 11" 24 <?php $this->assign('field_options', $this->_tpl_vars['fields']['fault_description']['options']); ?> 25 <?php ob_start(); ?><?php echo $this->_tpl_vars['fields']['fault_description']['value']; ?> 26<?php $this->_smarty_vars['capture']['field_val'] = ob_get_contents(); ob_end_clean(); ?> 27 <?php $this->assign('field_val', $this->_smarty_vars['capture']['field_val']); ?> 28 <?php ob_start(); ?><?php echo $this->_tpl_vars['fields']['fault_description']['name']; ?> 29<?php $this->_smarty_vars['capture']['ac_key'] = ob_get_contents(); ob_end_clean(); ?>generate.bat https://gitlab.com/zenfork/vektor | Batch | 188 lines
17rem @copyright 2004 Andrey Demenev 18rem @license http://www.php.net/license/3_0.txt PHP License 19rem @version CVS: $Id: generate.bat,v 1.1 2007/06/03 02:35:28 ssttoo Exp $ 28:noshift 29@php_bin@ -q -d output_buffering=1 -d include_path="@php_dir@" @bin_dir@/Text/Highlighter/generate.bat %MHL_PARAMS% 30 39require_once 'Text/Highlighter/Generator.php'; 40require_once 'Console/Getopt.php'; 41 41 42$options = Console_Getopt::getopt($argv, 'x:p:d:h', array('xml=', 'php=','dir=', 'help')); 43 140 } else { 141 $phpfile = $dir . $gen->language . '.php'; 142 }getopt.m4 git://pkgs.fedoraproject.org/grep | m4 | 379 lines
67 dnl Test whether <getopt.h> is available. 68 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 69 AC_CHECK_HEADERS([getopt.h], [], [gl_replace_getopt=yes]) 72 dnl Test whether the function getopt_long is available. 73 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 74 AC_CHECK_FUNCS([getopt_long_only], [], [gl_replace_getopt=yes]) 120 [gl_cv_func_getopt_posix=maybe], 121 [gl_cv_func_getopt_posix=no]) 122 if test $gl_cv_func_getopt_posix = maybe; then 208 209 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 210 AC_CACHE_CHECK([for working GNU getopt function], [gl_cv_func_getopt_gnu], 365[ 366 GETOPT_H=getopt.h 367 AC_DEFINE([__GETOPT_PREFIX], [[rpl_]],Observer.php https://gitlab.com/blingbang2016/shop | PHP | 307 lines
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 */ 54 55 if ($product->getPriceType() == '0' && !$product->getOptionsReadonly()) { 56 $product->setCanSaveCustomOptions(true); 203 $product->getTypeInstance(true)->setStoreFilter($product->getStoreId(), $product); 204 $optionCollection = $product->getTypeInstance(true)->getOptionsCollection($product); 205 $selectionCollection = $product->getTypeInstance(true)->getSelectionsCollection( 205 $selectionCollection = $product->getTypeInstance(true)->getSelectionsCollection( 206 $product->getTypeInstance(true)->getOptionsIds($product), 207 $productbasefilter.php https://gitlab.com/alexprowars/bitrix | PHP | 350 lines
1<?php 2/** 329 $filterOptions = new FilterOptions($filterId, static::getUiFilterPresets()); 330 $settings = $filterOptions->getOptions(); 331 $cleared = false;Bundle.php https://gitlab.com/blingbang2016/shop | PHP | 133 lines
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 */ 59 $product->getTypeInstance(true)->setStoreFilter($product->getStoreId(), $product); 60 $optionCollection = $product->getTypeInstance(true)->getOptionsCollection($product); 61 $selectionCollection = $product->getTypeInstance(true)->getSelectionsCollection( 61 $selectionCollection = $product->getTypeInstance(true)->getSelectionsCollection( 62 $product->getTypeInstance(true)->getOptionsIds($product), $product 63 ); 70 $selections = $option->getSelections(); 71 $optionId = $option->getOptionId(); 72 if (empty($selections)) {