100+ results for 'php strtoupper'
Not the results you expected?
FilesystemOptions.php (https://gitlab.com/OnBlox/OnBlox-Template) PHP · 457 lines
108 {
109 // disable file/directory permissions by default on windows systems
110 if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') {
111 $this->filePermission = false;
112 $this->dirPermission = false;
225 * @see setUmask
226 * @see setFilePermission
227 * @link http://php.net/manual/function.chmod.php
228 */
229 public function setDirPermission($dirPermission)
293 * @see setUmask
294 * @see setDirPermission
295 * @link http://php.net/manual/function.chmod.php
296 */
297 public function setFilePermission($filePermission)
InputDefinition.php (https://github.com/deviantintegral/symfony.git) PHP · 402 lines
Input.php (https://gitlab.com/dleonov/my-framework-two) PHP · 419 lines
Form.php (https://github.com/outlawscumbag/symfony.git) PHP · 390 lines
1 <?php
3 /*
124 /**
125 * Gets the field values as PHP.
126 *
127 * This method converts fields with th array notation
128 * (like foo[bar] to arrays) like PHP does.
129 *
130 * @return array An array of field values.
132 * @api
133 */
134 public function getPhpValues()
135 {
136 $qs = http_build_query($this->getValues());
class-mb-include-exclude.php (https://gitlab.com/code26/selah) PHP · 379 lines
1 <?php
2 /**
3 * Control the include, exclude condition for meta boxes
63 protected static function maybe_exclude_include( $type, $meta_box ) {
64 $conditions = $meta_box[ $type ];
65 $relation = isset( $conditions['relation'] ) && in_array( strtoupper( $conditions['relation'] ), array( 'AND', 'OR' ), true ) ? strtoupper( $conditions['relation'] ) : 'OR';
67 // Initial value.
273 * This is required for MB User Meta extension.
274 */
275 if ( isset( $GLOBALS['pagenow'] ) && 'user-edit.php' === $GLOBALS['pagenow'] ) {
276 // If edit other's profile, check edited user.
277 $user_id = intval( $_REQUEST['user_id'] );
283 return ! empty( $roles );
284 } elseif ( isset( $GLOBALS['pagenow'] ) && 'profile.php' === $GLOBALS['pagenow'] ) {
285 // If edit profile, check current user.
286 return self::check_user_role( $roles );
ParseUtil.php (https://github.com/louislivi/SMProxy.git) PHP · 367 lines
HiveMail_122.php (https://github.com/axxtel/agilebill.git) PHP · 360 lines
1 <?php
3 /**
242 $dbm = new db_mapping;
243 $db2 = $dbm->DB_connect(false, $this->map['map']);
244 eval ( '@$db_prefix = DB2_PREFIX'. strtoupper($this->map['map']) .';' );
245 $sql = "SELECT username FROM " .
246 $db_prefix . "hive_user WHERE
289 $dbm = new db_mapping;
290 $db2 = $dbm->DB_connect(false, $this->map['map']);
291 eval ( '@$db_prefix = DB2_PREFIX'. strtoupper($this->map['map']) .';' );
292 $sql = "DELETE FROM " .
293 $db_prefix . "hive_alias WHERE userid = " .
class.wpcom-json-api-sharing-buttons-endpoint.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 385 lines
call.php (https://github.com/Hywan/atoum.git) PHP · 277 lines
1 <?php
3 namespace mageekguy\atoum\tests\units\test\adapter;
5 require_once __DIR__ . '/../../../runner.php';
7 use mageekguy\atoum;
146 ->boolean($call1->isEqualTo($call2))->isTrue()
147 ->boolean($call2->isEqualTo($call1))->isTrue()
148 ->if($call2 = new testedClass(strtoupper($function)))
149 ->then
150 ->boolean($call1->isEqualTo($call2))->isTrue()
174 ->boolean($call1->isEqualTo($call2))->isTrue()
175 ->boolean($call2->isEqualTo($call1))->isTrue()
176 ->if($call1 = new testedClass($function, $arguments = [$arg1 = uniqid(), $arg2 = uniqid(), $arg3 = new \mock\phpObject()]))
177 ->then
178 ->boolean($call1->isEqualTo($call2))->isFalse()
SimulasiController.php (https://bitbucket.org/gungun/contoh_program.git) PHP · 283 lines
1 <?php
3 /*
11 * @author msu
12 */
13 require_once 'BaseController.php';
14 class SimulasiController extends Web_BaseController {
15 const SUBSIDI_PREMI_PCT = 0.1;
40 $fAngsuranbulanan = ( $fPokokhutang + ( $fPokokhutang * $fBunga * $fTahun) ) / ( $fTenor );
42 if (trim(strtoupper($TipeAngsuran)) == 'ADV') $fTotalBayarAwal = $fUangMuka + $fAngsuranbulanan;
44 $UangMuka = $fUangMuka;
Decorators.php (https://github.com/kugu/limb.git) PHP · 363 lines
1 <?php
2 /* vim: set expandtab tabstop=4 shiftwidth=4: */
3 //
4 // +----------------------------------------------------------------------+
5 // | PHP Version 4 |
6 // +----------------------------------------------------------------------+
7 // | Copyright (c) 1997-2002 The PHP Group |
8 // +----------------------------------------------------------------------+
9 // | This source file is subject to version 2.02 of the PHP license, |
10 // | that is bundled with this package in the file LICENSE, and is |
11 // | available at through the world-wide-web at |
12 // | http://www.php.net/license/3_0.txt. |
13 // | If you did not receive a copy of the PHP license and are unable to |
TextCircle.php (https://github.com/livinglab/openlab.git) PHP · 250 lines
1 <?php
3 namespace Mpdf\Tag;
102 $objattr['fontstyle'] = '';
103 if (isset($properties['FONT-WEIGHT'])) {
104 if (strtoupper($properties['FONT-WEIGHT']) === 'BOLD') {
105 $objattr['fontstyle'] .= 'B';
106 }
107 }
108 if (isset($properties['FONT-STYLE'])) {
109 if (strtoupper($properties['FONT-STYLE']) === 'ITALIC') {
110 $objattr['fontstyle'] .= 'I';
111 }
ConvertCharset.class.php (https://github.com/mysnip/Core.git) PHP · 307 lines
1 <?php
3 $PATH_TO_CLASS = dirname(ereg_replace("\\\\", "/", __FILE__)) . "/" . "ConvertTables" . "/";
150 if (substr($HexValue[1], 0, 1) != "#")
151 {
152 $ArrayKey = strtoupper(str_replace(strtolower("0x"), "", $HexValue[1]));
153 $ArrayValue = strtoupper(str_replace(strtolower("0x"), "", $HexValue[0]));
186 $HexChar = "";
187 $UnicodeHexChar = "";
188 $HexChar = strtoupper(dechex(ord($StringToChange[$i])));
189 if (strlen($HexChar) == 1) $HexChar = "0" . $HexChar;
190 if (($this -> FromCharset == "gsm0338") && ($HexChar == '1B')){
191 $i++;
192 $HexChar .= strtoupper(dechex(ord($StringToChange[$i])));
193 }
194 if ($this -> ToCharset != "utf-8")
tests.php (https://github.com/pyrsmk/Chernozem.git) PHP · 515 lines
1 <?php
3 use Symfony\Component\ClassLoader\Psr4ClassLoader;
7 error_reporting(E_ALL);
9 require __DIR__.'/vendor/autoload.php';
10 require __DIR__.'/../vendor/autoload.php';
171 });
172 $suite['value']->addOutputInflector(function($value) {
173 return strtoupper($value);
174 });
175 });
211 });
212 $suite['chernozem']->getter('banana', function($value) {
213 return strtoupper($value);
214 });
215 });
OfertaActividad.php (https://gitlab.com/bluedrayco/Portafolio) PHP · 568 lines
1 <?php
3 namespace ControlEscolar\CalendarioBundle\Entity;
503 //Evakya su existe el elemento en el array de control de acceso de
504 //acuerdo al tipo dado, lo elimina si existe
505 if (false !== $key = array_search(strtoupper($acceso), $this->control_acceso[$tipo], true)) {
506 $controlAuxiliar = $this->control_acceso[$tipo];
507 unset($controlAuxiliar[$key]);
541 public function addAcceso($acceso,$tipo)
542 {
543 $acceso = strtoupper($acceso);
544 if(in_array($tipo, $this->control_acceso, true)){
545 $this->control_acceso[$tipo] = array();
ValueGeneratorMetadataBuilder.php (https://github.com/jaikdean/doctrine2.git) PHP · 190 lines
1 <?php
3 declare(strict_types=1);
18 use function in_array;
19 use function sprintf;
20 use function strtoupper;
22 class ValueGeneratorMetadataBuilder
106 $platform = $this->metadataBuildingContext->getTargetPlatform();
107 $strategy = strtoupper($this->generatedValueAnnotation->strategy);
108 $generatorType = constant(sprintf('%s::%s', Mapping\GeneratorType::class, $strategy));
Negotiator.php (https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git) PHP · 377 lines
1 <?php
2 // +----------------------------------------------------------------------+
3 // | PEAR :: I18Nv2 :: Negotiator |
4 // +----------------------------------------------------------------------+
5 // | This source file is subject to version 3.0 of the PHP license, |
6 // | that is available at http://www.php.net/license/3_0.txt |
7 // | If you did not receive a copy of the PHP license and are unable |
8 // | to obtain it through the world-wide-web, please send a note to |
9 // | license@php.net so we can mail you a copy immediately. |
11 // | Copyright (c) 2004 The Authors |
12 // +----------------------------------------------------------------------+
13 // | Authors: Naoki Shima <murahachibu@php.net> |
14 // | Wolfram Kriesing <wk@visionp.de> |
15 // | Michael Wallner <mike@iworks.at> |
Route.php (https://bitbucket.org/laborautonomo/laborautonomo-site.git) PHP · 594 lines
redis.php (https://bitbucket.org/anujan/shurima.net.git) PHP · 294 lines
Database.php (https://github.com/allinside/Yii-CMS.git) PHP · 384 lines
22 * @package PHPExcel_Calculation
23 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.7.6, 2011-02-27
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
36 }
49 private static function __fieldExtract($database,$field) {
50 $field = strtoupper(PHPExcel_Calculation_Functions::flattenSingleValue($field));
51 $fieldNames = array_map('strtoupper',array_shift($database));
97 if (isset($dataValues[$k])) {
98 $dataValue = $dataValues[$k];
99 $dataValue = (is_string($dataValue)) ? PHPExcel_Calculation::_wrapResult(strtoupper($dataValue)) : $dataValue;
100 $testConditionList = str_replace('[:'.$criteriaName.']',$dataValue,$testConditionList);
101 }
xml_saxy_lite_parser.php (https://github.com/shafiqissani/Jewelery-Ecommerce-.git) PHP · 243 lines
1 <?php
2 /**
3 * SAXY Lite is a non-validating, but lightweight and fast SAX parser for PHP, modelled on the Expat parser
24 define('SAXY_STATE_PARSING', 1);
26 require_once(SAXY_INCLUDE_PATH . 'xml_saxy_shared.php');
28 /**
142 case '!':
143 $upperCaseTagText = strtoupper($tagText);
145 if (strpos($upperCaseTagText, SAXY_SEARCH_CDATA) !== false) { //CDATA Section
idl.php (https://github.com/tstarling/hiphop-php.git) PHP · 328 lines
1 <?php
3 include_once __DIR__ . '/base.php';
32 $name = preg_replace('|[/\.]|', '_', $name);
33 $NAME = strtoupper($name);
34 $Name = ucfirst($name);
58 #define incl_${PREFIX}_${NAME}_H_
60 #include "hphp/runtime/base/base-includes.h"
62 EOT
70 <<<EOT
72 namespace HPHP {
73 ///////////////////////////////////////////////////////////////////////////////
modulelayout.php (https://github.com/Hackwar/joomla-platform.git) PHP · 209 lines
1 <?php
2 /**
3 * @package Joomla.Legacy
120 // Add the layout options from the module path.
121 if (is_dir($module_path) && ($module_layouts = JFolder::files($module_path, '^[^_]*\.php$')))
122 {
123 // Create the group for the module
130 {
131 // Add an option to the module group
132 $value = basename($file, '.php');
133 $text = $lang->hasKey($key = strtoupper($module . '_LAYOUT_' . $value)) ? JText::_($key) : $value;
154 // Add the layout options from the template path.
155 if (is_dir($template_path) && ($files = JFolder::files($template_path, '^[^_]*\.php$')))
156 {
157 foreach ($files as $i => $file)
gravatar.php (https://github.com/kemo/kohana-gravatar.git) PHP · 289 lines
1 <?php defined('SYSPATH') or die('No direct script access.');
2 /**
3 * [Gravatar's](http://en.gravatar.com) are universal avatars available to all web sites and services.
11 * @author Kohana Team
12 * @copyright (c) 2009-2010 Kohana Team
13 * @license http://kohanaphp.com/license
14 */
15 class Kohana_Gravatar {
152 public function rating($rating = NULL)
153 {
154 $rating = strtoupper($rating);
156 if ($rating === NULL)
205 * Renders the Gravatar using supplied configuration and attributes. Can use custom view.
206 *
207 * @param string view [Optional] a kohana PHP
208 * @param string email [Optional] the valid email of a Gravatar user
209 * @return string the rendered Gravatar output
class.jetpack-client-server.php (https://github.com/chopsuei3/oscc.git) PHP · 219 lines
SubscriptionHandler.inc.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 365 lines
1 <?php
3 /**
4 * SubscriptionHandler.inc.php
5 *
6 * Copyright (c) 2003-2004 The Public Knowledge Project
11 * Handle requests for subscription management functions.
12 *
13 * $Id: SubscriptionHandler.inc.php,v 1.11 2005/11/30 19:31:05 alec Exp $
14 */
119 } else if (isset($searchInitial)) {
120 $searchInitial = String::strtoupper($searchInitial);
121 $searchType = USER_FIELD_INITIAL;
122 $search = $searchInitial;
Route.php (https://github.com/360i/sonno.git) PHP · 415 lines
FileFrontendTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 234 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: FileFrontendTest.php 24989 2012-06-21 07:24:13Z mabe $
21 */
24 * Zend_Cache
25 */
26 require_once 'Zend/Cache.php';
27 require_once 'Zend/Cache/Frontend/File.php';
49 public function setUp()
50 {
51 if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
52 $this->_masterFile = $this->_getTmpDirWindows() . DIRECTORY_SEPARATOR . 'zend_cache_master';
53 $this->_masterFile1 = $this->_getTmpDirWindows() . DIRECTORY_SEPARATOR . 'zend_cache_master1';
thumbnail_lib_alt.php (https://github.com/GunioRobot/DynamicMTML.git) PHP · 354 lines
61 $src_file = $this->src_file;
62 if (strtoupper(substr(PHP_OS, 0,3) == 'WIN') && extension_loaded('mbstring')) {
63 // Changes character-set of filename to SJIS on Windows.
64 $src_file = mb_convert_encoding($src_file, "SJIS", "auto");
73 $dest_file = $this->dest_file;
74 if (strtoupper(substr(PHP_OS, 0,3) == 'WIN') && extension_loaded('mbstring')) {
75 // Changes character-set of filename to SJIS on Windows.
76 $src_file = mb_convert_encoding($dest_file, "SJIS", "auto");
123 public function dest() {
124 $dest_file = $this->dest_file();
125 if ( strtoupper(substr(PHP_OS, 0,3) == 'WIN') && extension_loaded('mbstring') ) {
126 // Changes character-set of filename to 'UTF-8' on Windows.
127 $dest_file = mb_convert_encoding($dest_file, mb_internal_encoding(), "auto");
SqlsrvChangeItem.php (https://github.com/joomla/joomla-cms.git) PHP · 145 lines
1 <?php
3 /**
62 // We can only make check queries for alter table and create table queries
63 $command = strtoupper($wordArray[0] . ' ' . $wordArray[1]);
65 if ($command === 'ALTER TABLE') {
66 $alterCommand = strtoupper($wordArray[3] . ' ' . $wordArray[4]);
68 if ($alterCommand === 'ADD') {
75 $this->queryType = 'CREATE INDEX';
76 $this->msgElements = array($this->fixQuote($wordArray[2]), $index);
77 } elseif (strtoupper($wordArray[3]) === 'MODIFY' || strtoupper($wordArray[3]) === 'CHANGE') {
78 $result = 'SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = ' . $this->fixQuote($wordArray[2]);
79 $this->queryType = 'ALTER COLUMN COLUMN_NAME =' . $this->fixQuote($wordArray[4]);
Response.php (https://bitbucket.org/beaucollins/phluid-php.git) PHP · 283 lines
Abstract.php (https://github.com/expressdecor/Expressdecor.git) PHP · 355 lines
QubitQuery.class.php (https://github.com/mikesname/ehri-ica-atom.git) PHP · 410 lines
SummaryOfOrganization.php (https://gitlab.com/farhana_bristy/LabExam8_Atomic_Project_Farhana_142236_B36) PHP · 193 lines
1 <?php
3 namespace App\SummaryOfOrganization;
53 Message::message("Failed!! Data has not been inserted successfully :(");
54 }
55 Utility::redirect('create.php');
61 $STH = $this->dbh->query('SELECT * from summary_of_organization WHERE is_deleted = 0 ORDER BY summary_organizaton_id DESC');
63 $fetchMode = strtoupper($fetchMode);
64 if(substr_count($fetchMode,'OBJ') > 0)
65 $STH->setFetchMode(PDO::FETCH_OBJ);
79 $STH = $this->dbh->query($sql);
81 $fetchMode = strtoupper($fetchMode);
82 if(substr_count($fetchMode,'OBJ') > 0)
83 $STH->setFetchMode(PDO::FETCH_OBJ);
BookTitle.php (https://gitlab.com/farhana_bristy/LabExam8_Atomic_Project_Farhana_142236_B36) PHP · 199 lines
1 <?php
3 namespace App\BookTitle;
59 Message::message("Failed!! Data has not been inserted successfully :(");*/
61 Utility::redirect('create.php');
63 }
67 $STH = $this->dbh->query('SELECT * from book_title WHERE is_deleted =0 ORDER BY book_id ASC');
69 $fetchMode = strtoupper($fetchMode);
70 if(substr_count($fetchMode,'OBJ') > 0)
71 $STH->setFetchMode(PDO::FETCH_OBJ);
85 $STH = $this->dbh->query($sql);
87 $fetchMode = strtoupper($fetchMode);
88 if(substr_count($fetchMode,'OBJ') > 0)
89 $STH->setFetchMode(PDO::FETCH_OBJ);
databasequery.php (https://github.com/pacoqueen/callao_chico.git) PHP · 576 lines
1 <?php
2 /**
3 * @version $Id: databasequery.php 20824 2011-02-21 23:12:11Z dextercowley $
62 public function __toString()
63 {
64 return PHP_EOL.$this->_name.' '.implode($this->_glue, $this->_elements);
65 }
341 $this->_join = array();
342 }
343 $this->_join[] = new JDatabaseQueryElement(strtoupper($type) . ' JOIN', $conditions);
345 return $this;
408 {
409 if (is_null($this->_set)) {
410 $glue = strtoupper($glue);
411 $this->_set = new JDatabaseQueryElement('SET', $conditions, "\n\t$glue ");
412 }
apiHttpRequest.php (https://bitbucket.org/baddog/google-latitude-history.git) PHP · 262 lines
content.php (https://bitbucket.org/nlabyt/bcf-ball-4eb2.git) PHP · 239 lines
1 <?php
2 /**
3 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
31 JSubMenuHelper::addEntry(
32 JText::_('JGLOBAL_ARTICLES'),
33 'index.php?option=com_content&view=articles',
34 $vName == 'articles'
35 );
36 JSubMenuHelper::addEntry(
37 JText::_('COM_CONTENT_SUBMENU_CATEGORIES'),
38 'index.php?option=com_categories&extension=com_content',
39 $vName == 'categories');
40 JSubMenuHelper::addEntry(
41 JText::_('COM_CONTENT_SUBMENU_FEATURED'),
42 'index.php?option=com_content&view=featured',
43 $vName == 'featured'
44 );
userfile.php (https://github.com/yyms/lilacweb.git) PHP · 309 lines
JString-helper-dataset.php (https://bitbucket.org/talueses/joomla-cms.git) PHP · 194 lines
ProfilePicture.php (https://gitlab.com/israt12/AtomicProject_IsratJerin_146574_CRUD_Create_Read_update_delete) PHP · 253 lines
1 <?php
2 namespace App\ProfilePicture;
47 Message::setMessage("Failed!Data has been inserted successfully");
49 Utility::redirect('create.php');
50 }
51 public function index($fetchMode='ASSOC')
54 $STH = $this->DBH->query($sql);
56 $fetchMode = strtoupper($fetchMode);
57 if (substr_count($fetchMode, 'OBJ') > 0)
58 $STH->setFetchMode(PDO::FETCH_OBJ);
69 $STH = $this->DBH->query('SELECT * from profile_picture where id='.$this->id);
71 $fetchMode = strtoupper($fetchMode);
72 if(substr_count($fetchMode,'OBJ') > 0)
73 $STH->setFetchMode(PDO::FETCH_OBJ);
get_user_info.php (https://gitlab.com/xusasuke6/Slg_php) PHP · 198 lines
1 <?php
2 /**
3 * Created by PhpStorm.
9 define('IN_DATANG_SYSTEM', true);
10 include "../config/config.php";
11 include SYSDIR_ROOT_CLIENT.'config/config.key.php';
12 include SYSDIR_ADMIN.'/include/api_global.php';
13 global $db;
39 else
40 {
41 $token = strtoupper(md5($account.$game.$server.$time.$key));
42 if($token != $sign )
43 {
apiHttpRequest.php (https://bitbucket.org/matheusmatos/kadum.git) PHP · 262 lines
Birthday.php (https://gitlab.com/farhana_bristy/LabExam8_Atomic_Project_Farhana_142236_B36) PHP · 195 lines
1 <?php
3 namespace App\Birthday;
54 }*/
56 Utility::redirect('create.php');
62 $STH = $this->dbh->query('SELECT * from birthday WHERE is_deleted = 0 ORDER BY birthday_id DESC');
64 $fetchMode = strtoupper($fetchMode);
65 if(substr_count($fetchMode,'OBJ') > 0)
66 $STH->setFetchMode(PDO::FETCH_OBJ);
80 $STH = $this->dbh->query($sql);
82 $fetchMode = strtoupper($fetchMode);
83 if(substr_count($fetchMode,'OBJ') > 0)
84 $STH->setFetchMode(PDO::FETCH_OBJ);
ViewModel.class.php (https://github.com/dzx0315/509.git) PHP · 285 lines
1 <?php
2 // +----------------------------------------------------------------------
3 // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4 // +----------------------------------------------------------------------
5 // | Copyright (c) 2010 http://thinkphp.cn All rights reserved.
6 // +----------------------------------------------------------------------
7 // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
13 /**
14 +------------------------------------------------------------------------------
15 * ThinkPHP 视图模型类
16 +------------------------------------------------------------------------------
17 * @category Think
61 // 指定JOIN类型 例如 RIGHT INNER LEFT 下一个表有效
62 $type = !empty($view['_type'])?$view['_type']:'';
63 $tableName .= ' '.strtoupper($type).' JOIN ';
64 $len = strlen($type.'_JOIN ');
65 }
welcome.php (https://github.com/tediscript/generator.git) PHP · 350 lines
71 function generate_dashboard_controller() {
72 $data = array(
73 'php_open' => '<?php',
74 'php_close' => '?>',
106 <?php foreach($foreign'.$foreign_num.' as $item): ?>
107 <option value="<?php echo $item->'.$field->name.';?>" <?php if($result[0]->'.$field->name.' == $foreign'.$foreign_num++.'->'.$field->name.') echo \'selected\';?>><?php echo $item->'.$field->name.';?></option>
108 <?php endforeach; ?>
288 $data = array(
289 'php_open' => '<?php',
290 'php_close' => '?>',
330 $data = array(
331 'php_open' => '<?php',
332 'php_close' => '?>',
Hobbies.php (https://gitlab.com/Shweta_riya/practice) PHP · 239 lines
1 <?php
3 namespace App\Hobbies;
7 use PDO;
9 //require_once("../../../../vendor/autoload.php");
51 Message::setMessage("Failure!data has not been inserted sucessfully");
53 Utility::redirect('create.php');
54 }// end of store method
55 public function index($fetchMode='ASSOC'){
58 $STH = $this->DBH->query($sql);
60 $fetchMode = strtoupper($fetchMode);
61 if(substr_count($fetchMode,'OBJ') > 0)
62 $STH->setFetchMode(PDO::FETCH_OBJ);
header.php (https://github.com/elinw/joomla-cms.git) PHP · 578 lines
changeitemsqlsrv.php (https://bitbucket.org/dreamriks/giftjaipur.git) PHP · 150 lines
1 <?php
2 /**
3 * @package CMS.Library
57 }
58 // we can only make check queries for alter table and create table queries
59 $command = strtoupper($wordArray[0] . ' ' . $wordArray[1]);
60 if ($command === 'ALTER TABLE') {
61 $alterCommand = strtoupper($wordArray[3] . ' ' . $wordArray[4]);//print_r($wordArray[4]);die();
73 $this->msgElements = array($this->fixQuote($wordArray[2]), $index);
74 }
75 elseif (strtoupper($wordArray[3]) == 'MODIFY') {
76 $type = $this->fixQuote($wordArray[5]);
77 if (isset($wordArray[6])) {
82 $this->msgElements = array($this->fixQuote($wordArray[2]), $this->fixQuote($wordArray[4]));
83 }
84 elseif (strtoupper($wordArray[3]) == 'CHANGE') {
85 // Kludge to fix problem with "integer unsigned"
86 $type = $this->fixQuote($this->fixInteger($wordArray[6], $wordArray[7]));
mhi.php (https://github.com/error10/Ushahidi_Web.git) PHP · 140 lines
60 <!-- green-box -->
61 <div class="green-box" id="submitStatus">
62 <h3><?php echo Kohana::lang('ui_admin.instances'); ?> <?php echo $form_action; ?> <a href="#" id="hideMessage" class="hide"><?php echo Kohana::lang('ui_main.hide_this_message');?></a></h3>
63 </div>
64 <?php
121 if ($instance_active)
122 {
123 ?><a href="#" class="status_yes" onclick="mhiAction('u','UNAPPROVE', '<?php echo $instance_id; ?>');"><?php echo Kohana::lang('ui_main.approved');?></a><?php
124 }
125 else
126 {
127 ?><a href="#" class="status_no" onclick="mhiAction('a','APPROVE', '<?php echo $instance_id; ?>');"><?php echo Kohana::lang('ui_main.approve');?></a><?php
128 }
129 ?></li>
Default.php (https://bitbucket.org/acidel/buykoala.git) PHP · 310 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Default.php 20096 2010-01-06 02:05:09Z bkarwin $
20 */
86 * @see Zend_Ldap_Exception
87 */
88 #require_once 'Zend/Ldap/Exception.php';
89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
90 }
212 break;
213 case self::ATTRIBUTE_TO_UPPER:
214 $attrName = strtoupper($name);
215 break;
216 case self::ATTRIBUTE_NATIVE:
RedisClusterHashStrategy.php (https://bitbucket.org/helfreire/tccsite.git) PHP · 291 lines
RouterListener.php (https://bitbucket.org/helfreire/tccwebservice.git) PHP · 140 lines
1 <?php
3 /*
116 throw new NotFoundHttpException($message, $e);
117 } catch (MethodNotAllowedException $e) {
118 $message = sprintf('No route found for "%s %s": Method Not Allowed (Allow: %s)', $request->getMethod(), $request->getPathInfo(), strtoupper(implode(', ', $e->getAllowedMethods())));
120 throw new MethodNotAllowedHttpException($e->getAllowedMethods(), $message, $e);
menus.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 184 lines
1 <?php
3 // Sécurité
36 if (! empty($entree['necessites']['plugin'])) {
37 /* la globale $plugins liste tout en majuscule */
38 $entree['necessites']['plugin'] = array_map("strtoupper", $entree['necessites']['plugin']);
39 foreach($entree['necessites']['plugin'] as $plugin) {
40 if ( ! array_key_exists($plugin,$plugins_actifs) )
MANUAL.php (https://github.com/axxtel/agilebill.git) PHP · 163 lines
1 <?php
3 /**
68 } else {
69 $account_id = $rs->fields['account_id'];
70 include_once(PATH_MODULES.'email_template/email_template.inc.php');
71 $mail = new email_template;
72 $mail->send('registrar_manual_admin', $account_id, $this->domainrs['account_id'], '', $msg);
91 } else {
92 $account_id = $rs->fields['account_id'];
93 include_once(PATH_MODULES.'email_template/email_template.inc.php');
94 $mail = new email_template;
95 $mail->send('registrar_manual_admin', $account_id, $this->domainrs['account_id'], '', $msg);
114 } else {
115 $account_id = $rs->fields['account_id'];
116 include_once(PATH_MODULES.'email_template/email_template.inc.php');
117 $mail = new email_template;
118 $mail->send('registrar_manual_admin', $account_id, $this->domainrs['account_id'], '', $msg);
db.php (https://github.com/vivid-planet/library.git) PHP · 153 lines
CMB2_Utils.php (https://gitlab.com/iamgraeme/royalmile) PHP · 194 lines
1 <?php
2 /**
3 * CMB2 Utilities
129 public function is_valid_time_stamp( $timestamp ) {
130 return (string) (int) $timestamp === (string) $timestamp
131 && $timestamp <= PHP_INT_MAX
132 && $timestamp >= ~PHP_INT_MAX;
168 }
170 if ( 'WIN' === strtoupper( substr( PHP_OS, 0, 3 ) ) ) {
171 // Windows
172 $content_dir = str_replace( '/', DIRECTORY_SEPARATOR, WP_CONTENT_DIR );
Category.php (https://gitlab.com/Incolab/IncolabForumBundle) PHP · 599 lines
1 <?php
3 namespace Incolab\ForumBundle\Entity;
499 public function addReadRole($readRole)
500 {
501 $readRole = strtoupper($readRole);
502 if (!in_array($readRole, $this->readRoles, true)) {
503 $this->readRoles[] = $readRole;
541 public function hasReadRole($readRole)
542 {
543 return in_array(strtoupper($readRole), $this->getReadRoles(), true);
544 }
553 public function addWriteRole($writeRole)
554 {
555 $writeRole = strtoupper($writeRole);
556 if (!in_array($writeRole, $this->writeRoles, true)) {
557 $this->writeRoles[] = $writeRole;
JStringTest.php (https://github.com/dextercowley/joomla-platform.git) PHP · 613 lines
1 <?php
2 /**
3 * @package Joomla.UnitTest
8 */
10 require_once JPATH_PLATFORM . '/joomla/string/string.php';
11 require_once 'TestHelpers/JString-helper-dataset.php';
13 /**
14 * Test class for JString.
15 * Generated by PHPUnit on 2009-10-26 at 22:29:34.
16 */
17 class JStringTest extends PHPUnit_Framework_TestCase
78 * @since 11.2
79 */
80 public function getStrtoupperData()
81 {
82 return JStringTest_DataSet::$strtoupperTests;
template.class.php (https://github.com/saePixel/jcore.git) PHP · 294 lines
1 <?php
3 /***************************************************************************
4 * template.class.php
5 *
6 * Jul 05, 07:00:00 2009
41 template::$selected = $row;
43 if (@is_file('template/'.WEBSITE_TEMPLATE.'/template.php'))
44 include_once('template/'.WEBSITE_TEMPLATE.'/template.php');
265 (isset($success)?
266 ($success?
267 " <span class='align-right'>[".strtoupper(__("Success"))."]</span>":
268 " <span class='align-right'>[".strtoupper(__("Error"))."]</span>"):
Connection.php (https://github.com/tmccormi/openemr.git) PHP · 285 lines
OauthPlugin.php (https://bitbucket.org/cesarmedrano/cesarmedrano.git) PHP · 226 lines
UnionProcessor.php (https://gitlab.com/staging06/myproject) PHP · 168 lines
1 <?php
2 /**
3 * UnionProcessor.php
31 */
33 require_once(dirname(__FILE__) . '/AbstractProcessor.php');
34 require_once(dirname(__FILE__) . '/SQLProcessor.php');
35 require_once(dirname(__FILE__) . '/DefaultProcessor.php');
36 require_once(dirname(__FILE__) . '/../utils/ExpressionType.php');
121 continue; // read the next token
122 }
123 if (strtoupper($trim) === $skipUntilToken) {
124 $skipUntilToken = false;
125 continue; // read the next token
UrlMatcher.php (https://bitbucket.org/laborautonomo/laborautonomo-site.git) PHP · 208 lines
1 <?php
3 /*
89 throw 0 < count($this->allow)
90 ? new MethodNotAllowedException(array_unique(array_map('strtoupper', $this->allow)))
91 : new ResourceNotFoundException();
92 }
129 }
131 if (!in_array($method, $req = explode('|', strtoupper($req)))) {
132 $this->allow = array_merge($this->allow, $req);
155 * As this method requires the Route object, it is not available
156 * in matchers that do not have access to the matched Route instance
157 * (like the PHP and Apache matcher dumpers).
158 *
159 * @param Route $route The route we are matching against
Syslog.php (https://github.com/grjones/qframe.git) PHP · 252 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Syslog.php 22632 2010-07-18 18:30:08Z ramon $
21 */
23 /** Zend_Log_Writer_Abstract */
24 require_once 'Zend/Log/Writer/Abstract.php';
26 /**
192 }
194 if ('WIN' == strtoupper(substr(PHP_OS, 0, 3))
195 && ($facility !== LOG_USER)
196 ) {
SortableBehaviorQueryBuilderModifier.php (https://github.com/fabienpomerol/Propel2.git) PHP · 297 lines
1 <?php
3 /**
140 public function orderByRank(\$order = Criteria::ASC)
141 {
142 \$order = strtoupper(\$order);
143 switch (\$order) {
144 case Criteria::ASC:
255 $this->builder->declareClasses('\Propel\Runtime\Propel');
256 $peerClassName = $this->peerClassName;
257 $columnGetter = 'get' . $this->behavior->getColumnForParameter('rank_column')->getPhpName();
258 $columnSetter = 'set' . $this->behavior->getColumnForParameter('rank_column')->getPhpName();
class-wc-customer-download-log-data-store.php (https://gitlab.com/campus-academy/krowkaramel) PHP · 239 lines
1 <?php
2 /**
3 * Class WC_Customer_Download_Log_Data_Store file.
190 $allowed_orders = array( 'download_log_id', 'timestamp', 'permission_id', 'user_id' );
191 $orderby = in_array( $args['orderby'], $allowed_orders, true ) ? $args['orderby'] : 'download_log_id';
192 $order = 'DESC' === strtoupper( $args['order'] ) ? 'DESC' : 'ASC';
193 $orderby_sql = sanitize_sql_orderby( "{$orderby} {$order}" );
194 $query[] = "ORDER BY {$orderby_sql}";
ADrupal.php (https://github.com/Koc/core.git) PHP · 254 lines
1 <?php
2 // vim: set ts=4 sw=4 sts=4 et:
10 * that is bundled with this package in the file LICENSE.txt.
11 * It is also available through the world-wide-web at this URL:
12 * http://opensource.org/licenses/osl-3.0.php
13 * If you did not receive a copy of the license and are unable to
14 * obtain it through the world-wide-web, please send an email
15 * to licensing@litecommerce.com so we can send you a copy immediately.
16 *
17 * PHP version 5.3.0
18 *
19 * @category LiteCommerce
20 * @author Creative Development LLC <info@cdev.ru>
21 * @copyright Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved
22 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
23 * @link http://www.litecommerce.com/
24 * @see ____file_see____
show.php (https://gitlab.com/cserobiul/BITM-LabMs-New) PHP · 152 lines
2 <?php
3 $data = $labInfoObject->assign($_REQUEST)->show();
11 <div class="breadcrumb-line">
12 <ul class="breadcrumb">
13 <li><a href="index.php"><i class="icon-home2 position-left"></i> Home</a></li>
14 <li><a href="?p=allLab">All Lab</a></li>
15 <li class="active">Lab Details</li>
26 </div>
27 <br>
28 <?php if (!empty($data)) { ?>
29 <div class="panel panel-white">
30 <div class="panel-heading">
31 <h5 class="panel-title">Lab Details Information </h5>
32 <div class="heading-elements">
33 <a href="?p=editLab&labNo=<?php echo $data['lab_no'] ?>">
34 <button type="button" class="btn btn-default btn-xs heading-btn"><i class="icon-pencil position-left"></i> Edit</button>
35 </a>
PermissionPeer.php (https://github.com/richhl/kalturaCE.git) PHP · 280 lines
Birthday.php (https://gitlab.com/Afsana/Afsana_148423_B35_Session_31) PHP · 282 lines
1 <?php
3 namespace App\Birthday;
55 Message::message("Failed! Data Has Not Been Inserted Successfully :(");
57 Utility::redirect('create.php'); // redirect korte hobe create.php te tai utility.php use korechi //
59 }//end of store method
63 $STH = $this->DBH->query("SELECT * from birthday where is_deleted='No'");
65 $fetchMode = strtoupper($fetchMode);
66 if(substr_count($fetchMode,'OBJ') > 0)
67 $STH->setFetchMode(PDO::FETCH_OBJ);
79 $STH = $this->DBH->query('SELECT * from birthday where id='.$this->id);
81 $fetchMode = strtoupper($fetchMode);
82 if(substr_count($fetchMode,'OBJ') > 0)
83 $STH->setFetchMode(PDO::FETCH_OBJ);
MultiPartyCall.php (https://github.com/plivo/plivohelper-php.git) PHP · 223 lines
1 <?php
3 namespace Plivo\XML;
64 $attributes['recordMinMemberCount'] = 1;
65 }
66 if(isset($attributes['waitMusicMethod']) and !in_array(strtoupper($attributes['waitMusicMethod']), $VALID_METHOD_VALUES, true)){
67 throw new PlivoXMLException('Invalid attribute value ' . $attributes['waitMusicMethod']. ' for waitMusicMethod');
68 }
70 $attributes['waitMusicMethod'] = 'GET';
71 }
72 if(isset($attributes['agentHoldMusicMethod']) and !in_array(strtoupper($attributes['agentHoldMusicMethod']), $VALID_METHOD_VALUES, true)){
73 throw new PlivoXMLException('Invalid attribute value ' . $attributes['agentHoldMusicMethod']. ' for agentHoldMusicMethod');
74 }
76 $attributes['agentHoldMusicMethod'] = 'GET';
77 }
78 if(isset($attributes['customerHoldMusicMethod']) and !in_array(strtoupper($attributes['customerHoldMusicMethod']), $VALID_METHOD_VALUES, true)){
79 throw new PlivoXMLException('Invalid attribute value ' . $attributes['customerHoldMusicMethod']. ' for customerHoldMusicMethod');
80 }
Logical.php (https://github.com/livinglab/openlab.git) PHP · 350 lines
1 <?php
3 namespace PhpOffice\PhpSpreadsheet\Calculation;
5 class Logical
50 $returnValue += ((int) $arg != 0);
51 } elseif (is_string($arg)) {
52 $arg = strtoupper($arg);
53 if (($arg == 'TRUE') || ($arg == Calculation::getTRUE())) {
54 $arg = true;
220 if (is_string($logical)) {
221 $logical = strtoupper($logical);
222 if (($logical == 'TRUE') || ($logical == Calculation::getTRUE())) {
223 return false;
Column.php (https://gitlab.com/team_fsn/fsn-php) PHP · 394 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.8.0, 2014-03-02
33 * @package PHPExcel_Worksheet
34 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_AutoFilter_Column
178 * @return PHPExcel_Worksheet_AutoFilter_Column
179 */
180 public function setParent(PHPExcel_Worksheet_AutoFilter $pParent = NULL) {
181 $this->_parent = $pParent;
325 * @param PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule
326 * @param boolean $returnRule Flag indicating whether the rule object or the column object should be returned
327 * @return PHPExcel_Worksheet_AutoFilter_Column|PHPExcel_Worksheet_AutoFilter_Column_Rule
328 */
329 public function addRule(PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule, $returnRule=TRUE) {
wptools.php (https://github.com/demental/M.git) PHP · 63 lines
1 <?php
3 /**
39 public static function on_switch_lang($new_lang) {
40 foreach(array('wp_root','wp_login','wp_password') as $varname) {
41 $constname = strtoupper($new_lang.'_'.$varname);
42 if(!defined($constname)) {
43 $constname = strtoupper('default_'.$varname);
50 {
51 try {
52 $client = new Zend\XmlRpc\Client(self::$wp_root.'/xmlrpc.php');
53 $c = (object)$client->getProxy(self::$namespace)->callWpMethod(self::$wp_login, self::$wp_password,'get_page_by_path', array($pageID));
54 $c->post_content = $client->getProxy(self::$namespace)->callWpMethod(self::$wp_login, self::$wp_password, 'wpautop', array($c->post_content));
dir_edit.php (https://github.com/ericpareja/playSMS.git) PHP · 55 lines
1 <?php
2 if(!(defined('_SECURE_'))){die('Intruder alert');};
14 <h2>"._('Edit group')."</h2>
15 <p>
16 <form action=index.php?app=menu&inc=tools_simplephonebook&route=dir_edit&op=edit_yes&gpid=$gpid method=POST>
17 <table width=100% cellpadding=1 cellspacing=2 border=0>
18 <tr>
31 case "edit_yes":
32 $dir_name = $_POST['dir_name'];
33 $dir_code = strtoupper(trim($_POST['dir_code']));
34 if ($dir_name && $dir_code)
35 {
38 if ($db_row = dba_fetch_array($db_result))
39 {
40 header("Location: index.php?app=menu&inc=phonebook_list&err=".urlencode(_('No changes has been made')));
41 die();
42 }
changeitemsqlsrv.php (https://github.com/rvsjoen/joomla-cms.git) PHP · 164 lines
1 <?php
2 /**
3 * @package CMS.Library
61 // We can only make check queries for alter table and create table queries
62 $command = strtoupper($wordArray[0] . ' ' . $wordArray[1]);
63 if ($command === 'ALTER TABLE')
64 {
65 $alterCommand = strtoupper($wordArray[3] . ' ' . $wordArray[4]);
66 if ($alterCommand == 'ADD')
67 {
79 $this->msgElements = array($this->fixQuote($wordArray[2]), $index);
80 }
81 elseif (strtoupper($wordArray[3]) == 'MODIFY')
82 {
83 $type = $this->fixQuote($wordArray[5]);
text.php (https://bitbucket.org/asosso/joomla31.git) PHP · 333 lines
1 <?php
2 /**
3 * @package Joomla.Platform
31 *
32 * Examples:
33 * <script>alert(Joomla.JText._('<?php echo JText::_("JDEFAULT", array("script"=>true));?>'));</script>
34 * will generate an alert message containing 'Default'
35 * <?php echo JText::_("JDEFAULT");?> it will generate a 'Default' string
69 {
70 $test = substr($string, strpos($string, ','));
71 if (strtoupper($test) === $test)
72 {
73 $strs = explode(',', $string);
101 *
102 * Examples:
103 * <?php echo JText::alt("JALL","language");?> it will generate a 'All' string in English but a "Toutes" string in French
104 * <?php echo JText::alt("JALL","module");?> it will generate a 'All' string in English but a "Tous" string in French
helper.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 70 lines
source.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 49 lines
1 <?php
3 /**
10 * other free or open source software licenses.
11 */
12 require_once (WF_EDITOR_LIBRARIES . '/classes/plugin.php');
14 final class WFSourcePlugin extends WFEditorPlugin {
20 $view->addTemplatePath(WF_EDITOR_PLUGIN . '/tmpl');
22 $document->setTitle(WFText::_('WF_' . strtoupper($this->getName() . '_TITLE')));
24 $theme = $this->getParam('source.theme', 'textmate');
Unit.php (https://gitlab.com/koodersmiikka/operaatio-terveys) PHP · 244 lines
1 <?php
3 namespace Punic;
118 $result = '';
119 if (is_string($territoryCode) && preg_match('/^[a-z0-9]{2,3}$/i', $territoryCode)) {
120 $territoryCode = strtoupper($territoryCode);
121 $data = Data::getGeneric('measurementData');
122 while (isset($territoryCode[0])) {
186 $result = '';
187 if (is_string($territoryCode) && preg_match('/^[a-z0-9]{2,3}$/i', $territoryCode)) {
188 $territoryCode = strtoupper($territoryCode);
189 $data = Data::getGeneric('measurementData');
190 while (isset($territoryCode[0])) {
Request.php (https://bitbucket.org/emerido/test.git) PHP · 360 lines
1 <?php
2 /**
3 * Smart - PHP 5 Content Management Framework
168 {
169 if (null === $this->content) {
170 $this->content = trim(file_get_contents('php://input'));
171 }
172 return $this->content;
215 {
216 if (null === $this->method) {
217 $this->method = strtoupper($this->server->get('REQUEST_METHOD', 'GET'));
218 }
219 return $this->method;
231 {
232 $this->method = null;
233 $this->server->set('REQUEST_METHOD', strtoupper($method));
234 return $this;
235 }
StringMethods.php (https://bitbucket.org/larryg/powerhut.git) PHP · 358 lines
class-bp-activity-query.php (https://github.com/livinglab/openlab.git) PHP · 247 lines
SendmailTest.php (https://github.com/zucchi/zf2.git) PHP · 135 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
20 * @group Zend_Mail
21 */
22 class SendmailTest extends \PHPUnit_Framework_TestCase
23 {
24 public $transport;
40 $self->additional_parameters = $additional_parameters;
41 });
42 $this->operating_system = strtoupper(substr(PHP_OS, 0, 3));
43 }
Default.php (https://github.com/Unplagged/unplagged.git) PHP · 310 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Default.php 23775 2011-03-01 17:25:24Z ralph $
20 */
86 * @see Zend_Ldap_Exception
87 */
88 require_once 'Zend/Ldap/Exception.php';
89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
90 }
212 break;
213 case self::ATTRIBUTE_TO_UPPER:
214 $attrName = strtoupper($name);
215 break;
216 case self::ATTRIBUTE_NATIVE:
default_rankingheading.php (https://gitlab.com/julienv/joomleague) PHP · 277 lines
1 <?php defined( '_JEXEC' ) or die( 'Restricted access' );
3 $columns = explode( ',', $this->config['ordered_columns'] );
20 <thead>
21 <tr class="sectiontableheader">
22 <th class="rankheader" colspan="<?php echo $colspan; ?>">
23 <?php JoomleagueHelperHtml::printColumnHeadingSort( JText::_( 'COM_JOOMLEAGUE_RANKING_POSITION' ), "rank", $this->config, "ASC" ); ?>
24 </th>
26 <?php
27 if ( $this->config['show_picture'] != "no_logo" )
28 {
33 <th class="teamheader">
34 <?php JoomleagueHelperHtml::printColumnHeadingSort( JText::_( 'COM_JOOMLEAGUE_RANKING_TEAM' ), "name", $this->config, "ASC" ); ?>
35 </th>
decision.php (https://github.com/joelbrock/is4c_nofc.git) PHP · 68 lines
1 <?php
2 /*******************************************************************************
25 <html>
26 <body>
27 <FORM name='Form1' method='post' action='/pos2.php'>
28 <INPUT Type='hidden' name='input' value=''>
29 </FORM>
31 <?php
32 if (!function_exists("endorseType")) include_once("clientscripts.php"); // apbw 03/24/05 Wedge Printer Swap Patch
34 $decision = strtoupper(trim($_POST["input"]));
36 if ($decision == "CL") {
language.php (https://github.com/pjwiseman/joomla-cms.git) PHP · 95 lines
language.php (https://gitlab.com/srueegger/1zu12bB) PHP · 189 lines
1 <?PHP
2 class Language{
76 if(sizeOf($namespaces) >= 2){
77 if($namespaces[0] == "plugin"){
78 return strtoupper($language)."_plugin_".$namespaces[1];
79 }
80 else if($namespaces[0] == "skin"){
81 return strtoupper($language)."_skin_".$namespaces[1];
82 }
83 }
84 return strtoupper($language)."_global";
85 }
Caller.php (https://gitlab.com/judielsm/Handora) PHP · 438 lines
3 /*
4 * This file is part of PhpSpec, A php toolset to drive emergent
5 * design by specification.
6 *
351 * @param array $arguments
352 *
353 * @return \PhpSpec\Exception\Fracture\MethodNotFoundException|\PhpSpec\Exception\Fracture\MethodNotVisibleException
354 */
355 private function namedConstructorNotFound($method, array $arguments = array())
363 * @param $method
364 * @param array $arguments
365 * @return \PhpSpec\Exception\Fracture\MethodNotFoundException|\PhpSpec\Exception\Fracture\MethodNotVisibleException
366 */
367 private function methodNotFound($method, array $arguments = array())
Date.php (https://github.com/sublimino/phpsw.git) PHP · 251 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Date.php 23775 2011-03-01 17:25:24Z ralph $
20 */
117 public function setLocale($locale = null)
118 {
119 require_once 'Zend/Locale.php';
120 $this->_locale = Zend_Locale::findLocale($locale);
121 return $this;
205 'date_format' => $this->_format, 'format_type' => 'iso',
206 'fix_date' => false));
207 if (isset($parsed['year']) and ((strpos(strtoupper($this->_format), 'YY') !== false) and
208 (strpos(strtoupper($this->_format), 'YYYY') === false))) {
orders.php (https://github.com/rkshakya/RKSProjects.git) PHP · 191 lines
1 <?php
2 /**
3 *
112 // is 'ordering', default direction is ascending
113 $filter_order = $mainframe->getUserStateFromRequest($option.'filter_order', 'filter_order', 'order_date');
114 $filter_order_Dir = strtoupper($mainframe->getUserStateFromRequest($option.'filter_order_Dir', 'filter_order_Dir', 'DESC'));
116 // Validate the order direction, must be ASC or DESC
input.php (https://bitbucket.org/ke2083/transfans.co.uk-website.git) PHP · 383 lines
ABackend.php (https://gitlab.com/rsilveira1987/Expresso) PHP · 203 lines
1 <?php
2 /**
3 * Syncroton
109 $stmt = $this->_db->query($select);
110 $data = $stmt->fetch();
111 $stmt = null; # see https://bugs.php.net/bug.php?id=44081
112 } catch (Zend_Db_Statement_Exception $zdbse) {
113 throw new Syncroton_Exception_NotFound('id not found');
144 /**
145 * (non-PHPdoc)
146 * @see Syncroton_Backend_IBackend::delete()
147 */
157 /**
158 * (non-PHPdoc)
159 * @see Syncroton_Backend_IBackend::update()
160 */
ajaxGetTitle.php (https://github.com/lucanos/scuttle.git) PHP · 59 lines
1 <?php
2 /***************************************************************************
3 Copyright (c) 2005 - 2010 Marcus Campbell
22 header('Last-Modified: '. gmdate("D, d M Y H:i:s") .' GMT');
23 header('Cache-Control: no-cache, must-revalidate');
24 require_once 'header.inc.php';
26 function getTitle($url) {
36 // Get encoding from charset attribute
37 preg_match_all('/<meta.*charset=([^;"]*)">/i', $html, $matches);
38 $encoding = strtoupper($matches[1][0]);
40 // Convert to UTF-8 from the original encoding
Abstract.php (https://bitbucket.org/acidel/buykoala.git) PHP · 254 lines
1 <?php
2 /**
3 * Zend Framework
21 /** Zend_Form_Decorator_Interface */
22 #require_once 'Zend/Form/Decorator/Interface.php';
24 /**
30 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
31 * @license http://framework.zend.com/license/new-bsd New BSD License
32 * @version $Id: Abstract.php 21146 2010-02-23 14:35:57Z yoshida@zend.co.jp $
33 */
34 abstract class Zend_Form_Decorator_Abstract implements Zend_Form_Decorator_Interface
61 * @var string
62 */
63 protected $_separator = PHP_EOL;
65 /**
Date.php (https://github.com/viggof/moodle.git) PHP · 259 lines
1 <?php
2 /**
3 * Zend Framework
23 * @see Zend_Validate_Abstract
24 */
25 require_once 'Zend/Validate/Abstract.php';
27 /**
95 if (!array_key_exists('locale', $options)) {
96 require_once 'Zend/Registry.php';
97 if (Zend_Registry::isRegistered('Zend_Locale')) {
98 $options['locale'] = Zend_Registry::get('Zend_Locale');
123 public function setLocale($locale = null)
124 {
125 require_once 'Zend/Locale.php';
126 $this->_locale = Zend_Locale::findLocale($locale);
127 return $this;
CacheSqlite.class.php (https://github.com/liujinsong668/epptime.git) PHP · 169 lines
1 <?php
2 // +----------------------------------------------------------------------
3 // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4 // +----------------------------------------------------------------------
5 // | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
6 // +----------------------------------------------------------------------
7 // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
52 $this->handler = $func($this->options['db']);
53 $this->connected = is_resource($this->handler);
54 $this->type = strtoupper(substr(__CLASS__,6));
56 }
input.php (https://github.com/dextercowley/joomla-platform.git) PHP · 348 lines
UserListSizeRange.php (https://gitlab.com/remyvianne/krowkaramel) PHP · 169 lines
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: google/ads/googleads/v9/enums/user_list_size_range.proto
156 public static function value($name)
157 {
158 $const = __CLASS__ . '::' . strtoupper($name);
159 if (!defined($const)) {
160 throw new UnexpectedValueException(sprintf(
EducationPlaceholderField.php (https://gitlab.com/remyvianne/krowkaramel) PHP · 190 lines
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: google/ads/googleads/v9/enums/education_placeholder_field.proto
177 public static function value($name)
178 {
179 $const = __CLASS__ . '::' . strtoupper($name);
180 if (!defined($const)) {
181 throw new UnexpectedValueException(sprintf(
Default.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 312 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Default.php 24612 2012-01-21 14:42:30Z sgehrig $
20 */
86 * @see Zend_Ldap_Exception
87 */
88 require_once 'Zend/Ldap/Exception.php';
89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
90 }
212 break;
213 case self::ATTRIBUTE_TO_UPPER:
214 $attrName = strtoupper($name);
215 break;
216 case self::ATTRIBUTE_NATIVE:
Logical.php (https://gitlab.com/adamlwalker/generatedata) PHP · 288 lines
22 * @package PHPExcel_Calculation
23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
36 }
43 * @package PHPExcel_Calculation
44 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
45 */
46 class PHPExcel_Calculation_Logical {
118 if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {
119 $arg = TRUE;
120 } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {
121 $arg = FALSE;
122 } else {
TBGLogging.class.php (https://github.com/pb30/thebuggenie.git) PHP · 204 lines
1 <?php
3 /**
6 * @author Daniel Andre Eikeland <zegenie@zegeniestudios.net>
7 * @version 3.1
8 * @license http://www.opensource.org/licenses/mozilla1.1.php Mozilla Public License 1.1 (MPL 1.1)
9 * @package thebuggenie
10 * @subpackage core
52 if (self::$_cli_log_to_screen_in_debug_mode && TBGContext::isCLI() && TBGContext::isDebugMode() && class_exists('TBGCliCommand'))
53 {
54 TBGCliCommand::cli_echo(mb_strtoupper(self::getLevelName($level)), 'white', 'bold');
55 TBGCliCommand::cli_echo(" [{$category}] ", 'green', 'bold');
56 TBGCliCommand::cli_echo("$message\n");
60 if (self::$_logfile !== null)
61 {
62 file_put_contents(self::$_logfile, mb_strtoupper(self::getLevelName($level)) . " [{$category}] {$message}\n", FILE_APPEND);
63 }
64 $time_msg = (TBGContext::isDebugMode()) ? (($load_time = TBGContext::getLoadtime()) >= 1) ? round($load_time, 2) . ' seconds' : round(($load_time * 1000), 3) . ' ms' : '';
xpdoquery.class.php (https://github.com/enigmatic-user/revolution.git) PHP · 157 lines
1 <?php
2 /*
3 * Copyright 2010-2015 by MODX, LLC.
28 /** Include the base {@see xPDOQuery} class */
29 include_once (dirname(__DIR__) . '/xpdoquery.class.php');
31 /**
44 $constructed= false;
45 $this->bindings= array ();
46 $command= strtoupper($this->query['command']);
47 $sql= $this->query['command'] . ' ';
48 if ($command == 'SELECT') $sql.= $this->query['distinct'] ? $this->query['distinct'] . ' ' : '';