100+ results results for 'php dir' (1396 ms)
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"> 3 29<script type='text/javascript' src='http://localhost:8888/reservation-telephone-company/wp-content/plugins/gs-presentation/js/gs-presentation.js?ver=3.0-RC1-15112'></script> 30<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://localhost:8888/reservation-telephone-company/xmlrpc.php?rsd" /> 31<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://localhost:8888/reservation-telephone-company/wp-includes/wlwmanifest.xml" /> 244 <div class="row-1-col-2-row-2"> 245 <a class="online-directory " href="online-directory"></a> 246 <a class="contact-us " href="contact-us"></a> 362<li class="page_item page-item-265"><a href="http://localhost:8888/reservation-telephone-company/legal-notice/" title="Legal Notice">Legal Notice</a></li> 363<li class="page_item page-item-11"><a href="http://localhost:8888/reservation-telephone-company/online-directory/" title="Online Directory">Online Directory</a></li> 364<li class="page_item page-item-280"><a href="http://localhost:8888/reservation-telephone-company/privacy-policy/" title="Privacy Policy">Privacy Policy</a></li>Pager.php https://github.com/cawago/ci_campusync_auth.git | PHP | 576 lines
1<?php 2/* 8 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 9 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 10 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 27 * @subpackage Pager 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @version $Revision$ 29 * @version $Revision$ 30 * @link www.phpdoctrine.org 31 * @since 0.9VarCloner.php https://gitlab.com/Sigpot/AirSpot | PHP | 324 lines
1<?php 2 43 $stub = null; // Stub capturing the main properties of an original item value 44 // or null if the original value is used directly 45 $zval = array( // Main properties of the current value 95 } 96 // Create $stub when the original value $v can not be used directly 97 // If $v is a nested structure, put that structure in array $a 148 case 'object': 149 if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) { 150 $stub = new Stub(); 164 } else { 165 $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE)); 166 } 300 $obj = (object) array(); 301 self::$hashOffset = 16 - PHP_INT_SIZE; 302 self::$hashMask = -1;Particle3DTest.cpp https://github.com/dumganhar/cocos2d-x.git | C++ | 480 lines
67 68 Size size = Director::getInstance()->getWinSize(); 69 _camera = Camera::createPerspective(30.0f, size.width / size.height, 1.0f, 1000.0f); 78 listener->onTouchesEnded = CC_CALLBACK_2(Particle3DTestDemo::onTouchesEnded, this); 79 _eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this); 80header.tmpl.php https://github.com/harriswong/ATutor.git | PHP | 237 lines
57 <link rel="alternate" type="application/rss+xml" title="<?php echo SITE_NAME; ?> - RSS 2.0" href="<?php echo $this->base_path; ?>get_rss.php?<?php echo $_SESSION['course_id']; ?>-2" /> 58 <link rel="alternate" type="application/rss+xml" title="<?php echo SITE_NAME; ?> - RSS 1.0" href="<?php echo $this->base_path; ?>get_rss.php?<?php echo $_SESSION['course_id']; ?>-1" /> 59 <?php endif; ?> 87 <?php if (get_num_new_messages()): ?> 88 <strong><a href="<?php echo $this->base_path; ?>inbox/index.php"><?php echo _AT('inbox'); ?> - <?php echo get_num_new_messages(); ?></a></strong> | 89 <?php else: ?> 102 <a href="<?php echo $this->base_path; ?>browse.php"><?php echo _AT('browse_courses'); ?></a> | 103 <a href="<?php echo $this->base_path; ?>login.php?course=<?php echo $_SESSION['course_id']; ?>"><?php echo _AT('login'); ?></a> | 104 <a href="<?php echo $this->base_path; ?>search.php"><?php echo _AT('search'); ?></a> | 219 <?php if ($this->sequence_links['resume']): ?> 220 <a style="color:white;" href="<?php echo $this->sequence_links['resume']['url']; ?>" accesskey="."><img src="<?php echo $this->img; ?>resume.gif" border="0" title="<?php echo _AT('resume').': '.$this->sequence_links['resume']['title']; ?> Alt+." alt="<?php echo $this->sequence_links['resume']['title']; ?> Alt+." class="img-size-ascdesc" /></a> 221 <?php else: 222 if ($this->sequence_links['previous']): ?> 223 <a href="<?php echo $this->sequence_links['previous']['url']; ?>" title="<?php echo _AT('previous_topic').': '. $this->sequence_links['previous']['title']; ?> Alt+," accesskey=","><img src="<?php echo $this->img; ?>previous.gif" border="0" alt="<?php echo _AT('previous_topic').': '. $this->sequence_links['previous']['title']; ?> Alt+," class="img-size-ascdesc" /></a> 224 <?php endif;TrustedMath.i18n.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 274 lines
1<?php 2/** 16 'trustedmath-permission-error' => 'Untrusted math is disabled on this wiki', 17 'trustedmath-path-error' => 'Error creating the math directory', 18 'trustedmath-convert-error' => 'Error creating math image. "$1" returned <tt><nowiki>$2</nowiki></tt>.', 46 'trustedmath-permission-error' => 'Neprovjereni matematski izrazi su onemogućeni na ovoj wiki', 47 'trustedmath-path-error' => 'Greška pri pravljenju matematskog direktorija', 48 'trustedmath-convert-error' => 'Greška pri pravljenju matematske slike. "$1" vratila <tt><nowiki>$2</nowiki></tt>.', 57 'trustedmath-permission-error' => "En aquest wiki s'han desactivat les matemàtiques no fiables", 58 'trustedmath-path-error' => 'Error en crear el directori math', 59 'trustedmath-convert-error' => 'Error en crear la imatge matemàtica. «$1» ha retornar <tt><nowiki>$2</nowiki></tt>.', 109 'trustedmath-permission-error' => 'As matemáticas non fiables están desactivadas neste wiki', 110 'trustedmath-path-error' => 'Erro ao crear o directorio de matemáticas', 111 'trustedmath-convert-error' => 'Erro ao crear a imaxe matemática. "$1" devolveu <tt><nowiki>$2</nowiki></tt>.', 142 'trustedmath-permission-error' => 'Le functionalitate mathematic non approbate es disactivate in iste wiki', 143 'trustedmath-path-error' => 'Error durante le creation del directorio "math"', 144 'trustedmath-convert-error' => 'Error durante le creation del imagine a mathematica. "$1" retornava <tt><nowiki>$2</nowiki></tt>.',WizardController.php https://github.com/rgranadino/magento-mirror.git | PHP | 464 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) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 35 $this->setFlag('', self::FLAG_NO_DISPATCH, true); 36 $this->_redirect('/'); 37 return; 88 if ($this->_getInstaller()->isApplicationInstalled()) { 89 $this->getResponse()->setRedirect(Mage::getBaseUrl())->sendResponse(); 90 exit; 131 if ($agree && $step = $this->_getWizard()->getStepByName('begin')) { 132 $this->getResponse()->setRedirect($step->getNextUrl()); 133 }MaildirFolderTest.php https://github.com/sidealice/zf2.git | PHP | 444 lines
82 foreach (array('cur', 'new') as $subdir) { 83 if (!file_exists($this->_originalDir . $dir . '/' . $subdir)) { 84 continue; 86 mkdir($this->_tmpdir . $dir . '/' . $subdir); 87 $dh = opendir($this->_originalDir . $dir . '/' . $subdir); 88 while (($entry = readdir($dh)) !== false) { 106 } 107 $dh = opendir($this->_tmpdir . $dir . '/' . $subdir); 108 while (($entry = readdir($dh)) !== false) { 115 closedir($dh); 116 rmdir($this->_tmpdir . $dir . '/' . $subdir); 117 } 118 if ($dir != '.') { 119 rmdir($this->_tmpdir . $dir); 120 }bltGrHairs.c https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C | 544 lines
20 * fitness. In no event shall Lucent Technologies be liable for any 21 * special, indirect or consequential damages or any damages 22 * whatsoever resulting from loss of use, data or profits, whether in 149 } 150 XDrawSegments(graphPtr->display, Tk_WindowId(graphPtr->tkwin), 151 chPtr->gc, chPtr->segArr, 2); 234 if (!graphPtr->crosshairs->hidden) { 235 TurnOnHairs(graphPtr, graphPtr->crosshairs); 236 } 243 if (!graphPtr->crosshairs->hidden) { 244 TurnOffHairs(graphPtr->tkwin, graphPtr->crosshairs); 245 } 325 326 if (Blt_ConfigureWidgetComponent(graphPtr->interp, graphPtr->tkwin, 327 "crosshairs", "Crosshairs", configSpecs, 0, (char **)NULL,arr.php https://bitbucket.org/i1598/caiyun_stat.git | PHP | 602 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 351 /** 352 * Recursive version of [array_map](http://php.net/array_map), applies one or more 353 * callbacks to all elements in an array, including sub-arrays. 403 * Merges one or more arrays recursively and preserves all keys. 404 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)! 405 *InstallSchema.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 407 lines
1<?php 2/** 19 * {@inheritdoc} 20 * @SuppressWarnings(PHPMD.ExcessiveMethodLength) 21 */ 44 [], 45 'Widget code for template directive' 46 )->addColumn( 99 'length' => 255, 100 'comment' => 'Widget code for template directive' 101 ]ContributionPage.php https://github.com/michaelmcandrew/vaw.git | PHP | 354 lines
1<?php 2 36 37require_once 'CRM/Core/Form.php'; 38require_once 'CRM/Core/PseudoConstant.php'; 38require_once 'CRM/Core/PseudoConstant.php'; 39require_once 'CRM/Contribute/PseudoConstant.php'; 40 115 // set up tabs 116 require_once 'CRM/Contribute/Form/ContributionPage/TabHeader.php'; 117 CRM_Contribute_Form_ContributionPage_TabHeader::build( $this ); 208 { 209 //some child classes calling setdefaults directly w/o preprocess. 210 $this->_values = $this->get( 'values' ); 224 //set defaults for pledgeBlock values. 225 require_once 'CRM/Pledge/BAO/PledgeBlock.php'; 226 $pledgeBlockParams = array( 'entity_id' => $this->_id,admin_review.php https://bitbucket.org/prat_h/rakbuku.git | PHP | 501 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 2 3require_once(APPPATH.'controllers/project.php'); 4 21 if( $this->laststate !== "admin_review" && $match !== false ){ 22 $this->redirect_to_state_url($this->laststate, $url); 23 } 139 if( $sendreview ) { 140 redirect("admin_review/".$this->input->post("projurl"), "refresh"); 141 } 314 315 redirect('karya_tulis/'.$this->input->post( "project_url" ), "refresh"); 316 429 430 redirect($this->input->post("project_url")); 431permissions.inc.php https://bitbucket.org/orchdork10159/dnsman.ly.git | PHP | 193 lines
1<?php 2/** 44$_lang['perm.delete_user_desc'] = 'Benutzer löschen oder entfernen.'; 45$_lang['perm.directory_chmod_desc'] = 'Verzeichnisrechte eines Verzeichnisses ändern (CHMOD).'; 46$_lang['perm.directory_create_desc'] = 'Verzeichnisse anlegen.'; 46$_lang['perm.directory_create_desc'] = 'Verzeichnisse anlegen.'; 47$_lang['perm.directory_list_desc'] = 'Liste der Unterverzeichnisse eines Verzeichnisses anzeigen.'; 48$_lang['perm.directory_remove_desc'] = 'Verzeichnisse löschen.'; 48$_lang['perm.directory_remove_desc'] = 'Verzeichnisse löschen.'; 49$_lang['perm.directory_update_desc'] = 'Verzeichnisse umbenennen.'; 50$_lang['perm.edit_category_desc'] = 'Kategorien bearbeiten.'; // any: beliebige? (auch bei den anderen so aufgebauten Begriffen)WizardController.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 464 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) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 35 $this->setFlag('', self::FLAG_NO_DISPATCH, true); 36 $this->_redirect('/'); 37 return; 88 if ($this->_getInstaller()->isApplicationInstalled()) { 89 $this->getResponse()->setRedirect(Mage::getBaseUrl())->sendResponse(); 90 exit; 131 if ($agree && $step = $this->_getWizard()->getStepByName('begin')) { 132 $this->getResponse()->setRedirect($step->getNextUrl()); 133 }Location.js https://github.com/stephaneerard/qooxdoo.git | JavaScript | 406 lines
11 LGPL: http://www.gnu.org/licenses/lgpl.html 12 EPL: http://www.eclipse.org/org/documents/epl-v10.php 13 See the LICENSE file in the project's top-level directory for details.resource.inc.php https://github.com/enigmatic-user/revolution.git | PHP | 160 lines
1<?php 2/** 32$_lang['resource_cacheable_help'] = 'Bila diaktifkan, sumber daya yang akan disimpan ke cache.'; 33$_lang['resource_cancel_dirty_confirm'] = 'Anda memiliki perubahan tertunda; Apakah Anda yakin mau membatalkan?'; 34$_lang['resource_class_key_help'] = 'Ini adalah kunci kelas sumber daya, menampilkan jenis MODX.'; 62$_lang['resource_err_duplicate'] = 'Terjadi kesalahan saat duplikasi sumber.'; 63$_lang['resource_err_move_to_child'] = 'Anda tidak dapat memindahkan sumber daya untuk di bawah salah satu dari anak-anaknya sendiri.'; 64$_lang['resource_err_move_sitestart'] = 'Sumber daya yang dihubungkan ke variabel site_start dan tidak dapat dipindahkan ke konteks lain!'; 67$_lang['resource_err_ns'] = 'Sumber daya yang tidak ditentukan.'; 68$_lang['resource_err_own_parent'] = 'Sumber daya yang tidak dapat induknya sendiri.'; 69$_lang['resource_err_publish'] = 'Terjadi kesalahan saat mencoba untuk menerbitkan sumber.';File.php https://github.com/Riges/KawaiViewModel.git | PHP | 468 lines
25 */ 26require_once 'Zend/CodeGenerator/Php/Abstract.php'; 27 86 if ($fileName == '') { 87 require_once 'Zend/CodeGenerator/Php/Exception.php'; 88 throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.'); 209 require_once 'Zend/CodeGenerator/Php/Exception.php'; 210 throw new Zend_CodeGenerator_Php_Exception('setDocblock() is expecting either a string, array or an instance of Zend_CodeGenerator_Php_Docblock'); 211 } 293 require_once 'Zend/CodeGenerator/Php/Exception.php'; 294 throw new Zend_CodeGenerator_Php_Exception('Expecting either an array or an instance of Zend_CodeGenerator_Php_Class'); 295 } 460 if ($this->_filename == '' || !is_writable(dirname($this->_filename))) { 461 require_once 'Zend/CodeGenerator/Php/Exception.php'; 462 throw new Zend_CodeGenerator_Php_Exception('This code generator object is not writable.');lang.php https://gitlab.com/gideonmarked/atls-express | PHP | 326 lines
1<?php 2 34 ], 35 'directory' => [ 36 'create_fail' => "Kunde inte skapa mapp: :name", 141 'sender_email' => 'Avsändarens e-postadress', 142 'php_mail' => 'PHP mail', 143 'smtp' => 'SMTP', 300 'menu_label' => 'Förfrågningslogg', 301 'menu_description' => 'Visa otillåtna eller omdirigerade förfrågningar, så som Sidan kunde inte hittas (404).', 302 'empty_link' => 'Töm förfrågningsloggen',about.html https://gitlab.com/adrian.io/ide | HTML | 275 lines
16 Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available 17 at <a href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/legal/epl-v10.html</a>. 18 For purposes of the EPL, "Program" will mean the Content.</p> 19 20 <p>If you did not receive this Content directly from the Eclipse Foundation, the Content is 21 being redistributed by another party ("Redistributor") and different terms and conditions may 28 <p>The Content includes items that have been sourced from third parties as set out below. If you 29 did not receive this Content directly from the Eclipse Foundation, the following is provided 30 for informational purposes only, and you should look to the Redistributor's license for 90 control with that entity. For the purposes of this definition, 91 "control" means (i) the power, direct or indirect, to cause the 92 direction or management of such entity, whether by contract or 250 negligent acts) or agreed to in writing, shall any Contributor be 251 liable to You for damages, including any direct, indirect, special, 252 incidental, or consequential damages of any character arising as aweb.php https://github.com/XioNoX/Benevolus.git | PHP | 509 lines
1<?php 2 3/** 4 Web pack for the PHP Fat-Free Framework 5 78 return $url[0]; 79 $fdir=dirname($file); 80 $rewrite=explode( 80 $rewrite=explode( 81 '/',$path.($fdir!='.'?$fdir.'/':'').$url[2] 82 ); 205 if ($echo) { 206 if (PHP_SAPI!='cli' && !headers_sent()) 207 header(self::HTTP_Content.': '.$mime[$ext[1]].'; '. 232 /** 233 Send HTTP/S request to another host; Follow 30x redirects (default); 234 Forward headers received (if specified) and return contentcore.php https://bitbucket.org/daveschwan/ronin-group.git | PHP | 385 lines
6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @link http://cakephp.org CakePHP(tm) Project 16 * @package app.Config 30 * 31 * In production mode, flash messages redirect after a time interval. 32 * In development mode, you need to click the flash message to continue. 100 * To work around this issue you should either symlink or copy 101 * the plugin assets into you app's webroot directory. This is 102 * recommended even when you are using mod_rewrite. Handling static 205 * 206 * - 'php' - Uses settings defined in your php.ini. 207 * - 'cake' - Saves session files in CakePHP's /tmp directory.pearcmd.php https://github.com/ianbogda/FileZ.git | PHP | 445 lines
59if (!isset($_SERVER['argv']) && !isset($argv) && !isset($HTTP_SERVER_VARS['argv'])) { 60 echo 'ERROR: either use the CLI php executable, or set register_argc_argv=On in php.ini'; 61 exit(1); 132// this is used in the error handler to retrieve a relative path 133$_PEAR_PHPDIR = $config->get('php_dir'); 134$ui->setConfig($config); 155 if (strpos(dirname(__FILE__), 'scripts')) { 156 $packagexml = dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'package2.xml'; 157 $pearbase = dirname(dirname(__FILE__)); 166 ); 167 $config->set('php_dir', $pearbase . DIRECTORY_SEPARATOR . 'php'); 168 $config->set('data_dir', $pearbase . DIRECTORY_SEPARATOR . 'data'); 169 $config->set('doc_dir', $pearbase . DIRECTORY_SEPARATOR . 'docs'); 170 $config->set('test_dir', $pearbase . DIRECTORY_SEPARATOR . 'tests'); 171 $config->set('ext_dir', $pearbase . DIRECTORY_SEPARATOR . 'extensions');auth_tkt.py https://bitbucket.org/eaviles/gobierno.git | Python | 380 lines
1# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) 2# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 3########################################################################## 70 print 71 ... redirect HTML ... 72 78 79 Be careful not to do an HTTP redirect after login; use meta 80 refresh or Javascript -- some browsers have bugs where cookies 80 refresh or Javascript -- some browsers have bugs where cookies 81 aren't saved when set on a redirect. 82 """ClassLoader.php https://gitlab.com/wendy-du-973/club-invest-gr2 | PHP | 481 lines
32 * the autoloader will first look for the class under the component/ 33 * directory, and it will then fallback to the framework/ directory if not 34 * found before giving up. 65 { 66 $this->vendorDir = $vendorDir; 67 } 418 $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); 419 foreach ($this->prefixDirsPsr4[$search] as $dir) { 420 if (file_exists($file = $dir . $pathEnd)) { 428 // PSR-4 fallback dirs 429 foreach ($this->fallbackDirsPsr4 as $dir) { 430 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { 458 foreach ($this->fallbackDirsPsr0 as $dir) { 459 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { 460 return $file;PersistentTokenBasedRememberMeServicesTest.php https://github.com/jdewit/symfony.git | PHP | 329 lines
1<?php 2 26 27class PersistentTokenBasedRememberMeServicesTest extends \PHPUnit_Framework_TestCase 28{ 314 315 return new PersistentTokenBasedRememberMeServices(array($userProvider), 'fookey', 'fookey', $options, $logger, new SecureRandom(sys_get_temp_dir().'/_sf2.seed')); 316 }directories.php https://github.com/projectfork/Projectfork.git | PHP | 420 lines
101 ->join('LEFT', '#__pf_ref_labels AS lbl ON (lbl.item_id = a.id ' 102 . 'AND lbl.item_type = ' . $this->_db->quote('com_pfrepo.directory') . ')'); 103 185 $order_col = $this->state->get('list.ordering', 'a.title'); 186 $order_dir = $this->state->get('list.direction', 'asc'); 187 188 if ($order_col != 'a.lft') { 189 $order_col = $order_col . ' ' . $order_dir . ', a.lft'; 190 } 191 192 $query->order($this->_db->escape($order_col . ' ' . $order_dir)) 193 ->group('a.id'); 393 // Call parent method 394 parent::populateState($ordering, $direction); 395 }bp-loader.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 487 lines
261 // '/plugins/bp-custom.php' and it will be loaded before anything else. 262 if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) ) 263 require( WP_PLUGIN_DIR . '/bp-custom.php' ); 354 // Load the WP abstraction file so BuddyPress can run on all WordPress setups. 355 require( BP_PLUGIN_DIR . '/bp-core/bp-core-wpabstraction.php' ); 356 392 if ( !empty( $this->maintenance_mode ) ) { 393 require( $this->plugin_dir . 'bp-core/bp-core-admin.php' ); 394 require( $this->plugin_dir . 'bp-core/bp-core-functions.php' ); 421 require( $this->plugin_dir . 'bp-core/bp-core-classes.php' ); 422 require( $this->plugin_dir . 'bp-core/bp-core-filters.php' ); 423 require( $this->plugin_dir . 'bp-core/bp-core-avatars.php' ); 479 // Setup the BuddyPress theme directory 480 register_theme_directory( $this->themes_dir ); 481 }ps_perm.php https://github.com/Shigaru/shigaru.git | PHP | 461 lines
1<?php 2if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); 4* 5* @version $Id: ps_perm.php 1818 2009-06-23 19:07:21Z soeren_nb $ 6* @package VirtueMart 8* @copyright Copyright (C) 2004-2009 soeren - All rights reserved. 9* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php 10* VirtueMart is free software. This version may have been modified pursuant 13* other free or open source software licenses. 14* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details. 15* 240 if( $size==1 ) { 241 $values[0] = $VM_LANG->_('PHPSHOP_SELECT'); 242 } 449// Thomas Kahl - Feb. 2009 450if (!defined('VM_ALLOW_EXTENDED_CLASSES') && file_exists(dirname(__FILE__).'/../virtuemart.cfg.php')) { 451 include_once(dirname(__FILE__).'/../virtuemart.cfg.php');UpgradeComponentGroup.php https://github.com/orchestra-io/sample-openx.git | PHP | 320 lines
1<?php 2 24+---------------------------------------------------------------------------+ 25$Id: UpgradeComponentGroup.php 30820 2009-01-13 19:02:17Z andrew.hill $ 26*/ 34 35require_once MAX_PATH.'/lib/OA/Upgrade/Upgrade.php'; 36 60 /*$this->nobackupsFile = MAX_PATH.$pluginPath.'NOBACKUPS'; 61 $this->postTaskFile = MAX_PATH.$pluginPath.'TASKS.php';*/ 62 65 { 66 @mkdir(MAX_PATH.'/var/plugins/log'); 67 }edit.php https://github.com/thisduck/wordpress.git | PHP | 294 lines
18if ( $_redirect = intval( max( @$_REQUEST['p'], @$_REQUEST['attachment_id'], @$_REQUEST['page_id'] ) ) ) { 19 wp_redirect( admin_url('edit-comments.php?p=' . $_redirect ) ); 20 exit; 40 } else { 41 wp_redirect( admin_url("edit.php?post_type=$post_type") ); 42 } 107} elseif ( ! empty($_REQUEST['_wp_http_referer']) ) { 108 wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) ); 109 exit; 163<?php screen_icon(); ?> 164<h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="button add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php 165if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) 170if ( isset($_REQUEST['posted']) && $_REQUEST['posted'] ) : $_REQUEST['posted'] = (int) $_REQUEST['posted']; ?> 171<div id="message" class="updated"><p><strong><?php _e('This has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_REQUEST['posted'] ); ?>"><?php _e('View Post'); ?></a> | <a href="<?php echo get_edit_post_link( $_REQUEST['posted'] ); ?>"><?php _e('Edit Post'); ?></a></p></div> 172<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);view.html.php https://bitbucket.org/ke2083/transfans.co.uk-website.git | PHP | 496 lines
1<?php 2/** 121 $categoryModel->setState('list.ordering', 'a.name'); 122 $categoryModel->setState('list.direction', 'asc'); 123 $categoryModel->setState('filter.published', 1);lang.php https://gitlab.com/michield/dokuwiki | PHP | 188 lines
1<?php 2/** 43$lang['lang'] = 'Nyelv'; 44$lang['basedir'] = 'Báziskönyvtár'; 45$lang['baseurl'] = 'Alap URL'; 45$lang['baseurl'] = 'Alap URL'; 46$lang['savedir'] = 'Könyvtár az adatok mentésére'; 47$lang['start'] = 'Kezdőoldal neve'; 56$lang['htmlok'] = 'Beágyazott HTML engedélyezése'; 57$lang['phpok'] = 'Beágyazott PHP engedélyezése'; 58$lang['dformat'] = 'Dátum formázás (lásd a PHP <a href="http://www.php.net/strftime">strftime</a> függvényt)'; 102$lang['locktime'] = 'Oldal-zárolás maximális időtartama (másodperc)'; 103$lang['fetchsize'] = 'Maximális méret (bájtban), amit a fetch.php letölthet kívülről'; 104$lang['notify'] = 'Az oldal-változásokat erre az e-mail címre küldje'; 117$lang['sitemap'] = 'Hány naponként generáljunk Google sitemap-ot?'; 118$lang['broken_iua'] = 'Az ignore_user_abort függvény hibát dob a rendszereden? Ez nem működő keresési indexet eredményezhet. Az IIS+PHP/CGI összeállításról tudjuk, hogy hibát dob. Lásd a <a href="http://bugs.splitbrain.org/?do=details&task_id=852">Bug 852</a> oldalt a további infóért.'; 119$lang['xsendfile'] = 'Használjuk az X-Sendfile fejlécet, hogy a webszerver statikus állományokat tudjon küldeni? A webszervernek is támogatnia kell ezt a funkciót.';IndexController.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 390 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) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 55 * Admin area entry point 56 * Always redirects to the startup page url 57 */ 62 if ($session->isFirstPageAfterLogin()) { 63 // retain the "first page after login" value in session (before redirect) 64 $session->setIsFirstPageAfterLogin(true); 65 } 66 $this->_redirect($url); 67 }hostkreskoweczki.py https://gitlab.com/nunigaia/iptvplayer-for-e2 | Python | 318 lines
6from Plugins.Extensions.IPTVPlayer.components.ihost import CHostBase, CBaseHostClass, CDisplayListItem, RetHost, CUrlItem, ArticleContent 7from Plugins.Extensions.IPTVPlayer.tools.iptvtools import printDBG, printExc, CSearchHistoryHelper, GetDefaultLang, remove_html_markup, GetLogoDir, GetCookieDir, byteify 8from Plugins.Extensions.IPTVPlayer.libs.pCommon import common, CParsingHelper 60 self.MAIN_URL = 'http://www.kreskoweczki.pl/' 61 self.SEARCH_URL = self.MAIN_URL + 'search.php?keywords=' 62 self.DEFAULT_ICON = "http://www.kreskoweczki.pl/uploads/custom-logo.png" 85 params.update({'category':category, 'title':title, 'url':url}) 86 self.addDir(params) 87 142 params.update({'desc':self.cleanHtmlStr(item.replace('</b>', '[/br]'))}) 143 self.addDir(params) 144 147 params.update({'title':_('Next page'), 'page':page+1}) 148 self.addDir(params) 149ee374469f3039f2afc01916b1c6255a7d0864358.file.view-registration.tpl.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 260 lines
146 <select name="vLanguageCode" id="vLanguageCode" class="form-input-select form-re-selec"> 147 <option value="EN" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='EN'){?> selected <?php }?>><?php echo @LBL_ENGLISH;?> 148</option> 148</option> 149 <option value="DN" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='DN'){?> selected <?php }?>><?php echo @LBL_DANISH;?> 150</option> 156</option> 157 <option value="EE" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='EE'){?> selected <?php }?>><?php echo @LBL_ESTONIAN;?> 158</option> 164</option> 165 <option value="PO" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='PO'){?> selected <?php }?>><?php echo @LBL_POLISH;?> 166</option> 168</option> 169 <option value="ES" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='ES'){?> selected <?php }?>><?php echo @LBL_SPANISH;?> 170</option>EditView.php https://github.com/lukio/sugarcrm_dev.git | PHP | 349 lines
106}else{ 107 $params[] = "<a href='index.php?module={$focus->module_dir}&action=DetailView&record={$focus->id}'>{$focus->name}</a>"; 108 $params[] = $GLOBALS['app_strings']['LBL_EDIT_BUTTON_LABEL']; 110 111echo getClassicModuleTitle($focus->module_dir, $params, true); 112 166//Assign qsd script 167require_once('include/QuickSearchDefaults.php'); 168$qsd = new QuickSearchDefaults(); 175 176if(!is_file($GLOBALS['sugar_config']['cache_dir'] . 'jsLanguage/' . $GLOBALS['current_language'] . '.js')) { 177 require_once('include/language/jsLanguage.php'); 179} 180$jsLang = '<script type="text/javascript" src="' . $GLOBALS['sugar_config']['cache_dir'] . 'jsLanguage/' . $GLOBALS['current_language'] . '.js?s=' . $GLOBALS['sugar_version'] . '&c=' . $GLOBALS['sugar_config']['js_custom_version'] . '&j=' . $GLOBALS['sugar_config']['js_lang_version'] . '"></script>'; 181$xtpl->assign("JSLANG", $jsLang);sbhnddma.h https://github.com/Entropy512/linux_kernel_sgh-i997r.git | C Header | 343 lines
9 * under the terms of the GNU General Public License version 2 (the "GPL"), 10 * available at http://www.broadcom.com/licenses/GPLv2.php, with the 11 * following added to such license: 114#define RC_RO_SHIFT 1 115#define RC_FM ((uint32)1 << 8) /* direct fifo receive (pio) mode */ 116#define RC_SH ((uint32)1 << 9) /* separate rx header descriptor enable */ 261#define D64_RC_RO_SHIFT 1 262#define D64_RC_FM 0x00000100 /* direct fifo receive (pio) mode */ 263#define D64_RC_SH 0x00000200 /* separate rx header descriptor enable */lang.php https://github.com/godber/PHXdata-Website.git | PHP | 186 lines
1<?php 2/** 40$lang['lang'] = 'Idioma'; 41$lang['basedir'] = 'Pasta Base'; 42$lang['baseurl'] = 'URL Base'; 42$lang['baseurl'] = 'URL Base'; 43$lang['savedir'] = 'Pasta para guardar dados'; 44$lang['start'] = 'Nome da Página Inicial'; 53$lang['htmlok'] = 'Permitir embeber HTML'; 54$lang['phpok'] = 'Permitir embeber PHP'; 55$lang['dformat'] = 'Formato de Data (ver função PHP\'s <a href="http://www.php.net/strftime">strftime</a>)'; 101$lang['locktime'] = 'Idade máxima para locks (seg.)'; 102$lang['fetchsize'] = 'Tamanho máximo (bytes) que o fetch.php pode transferir do exterior'; 103$lang['notify'] = 'Enviar notificações de mudanças para este endereço de email'; 185$lang['useheading_o_1'] = 'Sempre'; 186$lang['readdircache'] = 'Idade máxima para a cache de "readdir" (seg)'; 187Files.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 311 lines
1<?php 2/* 204 * Supported groupings are: 'user' (files created by, opened by, or shared 205 * directly with the user), 'drive' (files in the specified shared drive as 206 * indicated by the 'driveId'), 'domain' (files shared to the user's domain),menu.php https://github.com/be3/FUEL-CMS.git | PHP | 438 lines
6 7<pre class="brush: php">$this->load->library('menu');</pre> 8 10 11<pre class="brush: php">$this->load->library('menu', array('active_class'=>'on', 'render_type' => 'collapsible'));</pre> 12 186 <td>asc,desc</td> 187 <td>The direction the page title should build</td> 188 </tr> 208<p>Below is an common example:</p> 209<pre class="brush: php"> 210$nav = array(); 231 232<pre class="brush: php"> 233$nav = array();class-cp-user-relationships.php https://gitlab.com/clusterpress/clusterpress | PHP | 543 lines
1<?php 2/** 10 11// Exit if accessed directly. 12defined( 'ABSPATH' ) || exit;Configuration.php https://github.com/sellingsource/symfony.git | PHP | 362 lines
1<?php 2 120 ->booleanNode('only_master_requests')->defaultFalse()->end() 121 ->scalarNode('dsn')->defaultValue('file:%kernel.cache_dir%/profiler')->end() 122 ->scalarNode('username')->defaultValue('')->end() 354 ->scalarNode('cache')->defaultValue('file')->end() 355 ->scalarNode('file_cache_dir')->defaultValue('%kernel.cache_dir%/annotations')->end() 356 ->booleanNode('debug')->defaultValue($this->debug)->end()facebook.php https://github.com/copongcopong/CakePHP-Facebook-Plugin.git | PHP | 425 lines
20 */ 21 var $__fbShareScript = 'http://static.ak.fbcdn.net/connect.php/js/FB.Share'; 22 81 * - confirm string Alert dialog which will be visible if user clicks on the button/link 82 * - custom used to create custom link instead of standart fbml. if redirect option is set this one is not required. 83 * @return string XFBML tag for logout button 95 if(isset($options['redirect']) || $options['custom']){ 96 if(isset($options['redirect']) && $options['redirect']){ 97 $options['redirect'] = Router::url($options['redirect']); 97 $options['redirect'] = Router::url($options['redirect']); 98 $response = "window.location = '{$options['redirect']}'"; 99 } else { 129 ); 130 if(isset($options['redirect']) && $options['redirect']){ 131 $options['redirect'] = Router::url($options['redirect']);user.inc.php https://gitlab.com/haque.mdmanzurul/modx-improve-carolyn | PHP | 202 lines
1<?php 2/** 91$_lang['user_err_not_specified_email'] = 'Please specify a valid email address.'; 92$_lang['user_err_not_specified_fileman_path'] = 'The directory you have specified either:<br />1) Does not exist.<br />2) Does not have read permissions.<br />3) Is not a directory.'; 93$_lang['user_err_not_specified_manageraccess'] = 'Please specify whether or not the user should have manager access.'; 99$_lang['user_err_not_specified_phonenumber'] = 'Please specify a valid phone number. (If in US, please specify area code.)'; 100$_lang['user_err_not_specified_resourcedir'] = 'The directory you\'ve specified is not a valid directory.'; 101$_lang['user_err_not_specified_resource_baseurl'] = 'Please specify a valid resource URL.'; 110$_lang['user_err_remove'] = 'An error occurred while trying to remove the user.'; 111$_lang['user_err_resource_subdirectory'] = 'The directory you\'ve specified does not contain the %s directories.'; 112$_lang['user_err_save'] = 'An error occurred while saving the user.';Move.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 364 lines
9// | This LICENSE is in the BSD license style. | 10// | http://www.opensource.org/licenses/bsd-license.php | 11// | | 31// | FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | 32// | COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | 33// | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | 43// 44// $Id: Move.php 12 2007-09-17 20:20:11Z killersoft $ 45// 97 * // treat value as being in charset encoding ARG 98 * 'config-dir' => 'Path to a Subversion configuration directory' 99 * ); 112 * <code> 113 * <?php 114 * require_once 'VersionControl/SVN.php';admin.php https://github.com/Brucee/pyrocms.git | PHP | 562 lines
1<?php defined('BASEPATH') OR exit('No direct script access allowed'); 2/** 268 269 // Redirect back to the form or main page 270 $this->input->post('btnAction') == 'save_exit' 270 $this->input->post('btnAction') == 'save_exit' 271 ? redirect('admin/pages') 272 : redirect('admin/pages/edit/'.$id); 321 { 322 $id OR redirect('admin/pages'); 323 334 $this->session->set_flashdata('error', lang('pages_page_not_found_error')); 335 redirect('admin/pages/create'); 336 } 374 375 // Set the flashdata message and redirect the user 376 $link = anchor('admin/pages/preview/'.$id, $this->input->post('title'), 'class="modal-large"');Index.php https://gitlab.com/tonycodes/october | PHP | 458 lines
1<?php namespace Cms\Controllers; 2 131 'templateType' => $type, 132 'templateTheme' => $this->theme->getDirName(), 133 'templateMtime' => $template->mtime 219 'templateType' => $type, 220 'templateTheme' => $this->theme->getDirName(), 221 'templateMtime' => null 321 { 322 if ($this->theme->getDirName() != Request::input('theme')) { 323 throw new ApplicationException(trans('cms::lang.theme.edit.not_match'));zone.php https://bitbucket.org/sandeepbhaskar/inspiredliving.git | PHP | 441 lines
1<?php 2class ControllerLocalisationZone extends Controller { 40 41 $this->redirect($this->url->link('localisation/zone', 'token=' . $this->session->data['token'] . $url, 'SSL')); 42 } 72 73 $this->redirect($this->url->link('localisation/zone', 'token=' . $this->session->data['token'] . $url, 'SSL')); 74 } 106 107 $this->redirect($this->url->link('localisation/zone', 'token=' . $this->session->data['token'] . $url, 'SSL')); 108 }Tab.php https://github.com/ksecor/civicrm.git | PHP | 344 lines
1<?php 2 35 36require_once 'CRM/Contact/Page/View.php'; 37 94 { 95 require_once 'CRM/Contribute/BAO/Contribution.php'; 96 190 if ( $mode == 'test' || $mode == 'live' ) { 191 CRM_Utils_System::redirectToSSL( ); 192 }date.php https://github.com/chemila/kohana.git | PHP | 566 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 28 * Timezone for formatted_time 29 * @link http://uk2.php.net/manual/en/timezones.php 30 * @var string 39 * 40 * [!!] A list of time zones that PHP supports can be found at 41 * <http://php.net/timezones>. 496 * this is needed, but some binary formats use it (eg: zip files.) 497 * Converting the other direction is done using {@link Date::dos2unix}. 498 * 524 * this is needed, but some binary formats use it (eg: zip files.) 525 * Converting the other direction is done using {@link Date::unix2dos}. 526 * 548 * 549 * @see http://php.net/manual/en/datetime.construct.php 550 * @param string datetime_str datetime stringTrustRoot.php https://github.com/kbjr/EasyOpenID.git | PHP | 461 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 14 15require_once OPENID_DIRECTORY.'Auth/OpenID/Discover.php'; 16 405 406 list($rp_url_after_redirects, $endpoints) = 407 Auth_Yadis_getServiceEndpoints($relying_party_url, $xrds_parse_cb, 409 410 if ($rp_url_after_redirects != $relying_party_url) { 411 // Verification caused a redirect 431 * This function builds a discovery URL, performs Yadis discovery on 432 * it, makes sure that the URL does not redirect, parses out the 433 * return_to URLs, and finally checks to see if the current return_toroute.php https://github.com/ymtn/core.git | PHP | 589 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 288 * The $uri parameter can either be a string for basic regex matching or it 289 * can be a valid callback or anonymous function (php 5.3+). If you use a 290 * callback or anonymous function, your method should return an arrayLayout.php https://github.com/nationalfield/symfony.git | PHP | 490 lines
1<?php 2/* 8 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 9 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 10 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 * @subpackage Pager 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @version $Revision$transformation.php https://github.com/xc/zetacomponents.git | PHP | 417 lines
1<?php 2/** 225 // Start atomic file operation 226 $fileTmp = tempnam( dirname( $fileOut ) . DIRECTORY_SEPARATOR, '.'. basename( $fileOut ) ); 227 copy( $fileIn, $fileTmp );install-location.php https://github.com/nsswaga/OSClass.git | PHP | 418 lines
5 6define( 'ABS_PATH', dirname(dirname(dirname(__FILE__))) . '/' ); 7define( 'LIB_PATH', ABS_PATH . 'oc-includes/'); 10require_once LIB_PATH . 'osclass/db.php'; 11require_once LIB_PATH . 'osclass/classes/DAO.php'; 12require_once LIB_PATH . 'osclass/helpers/hDatabaseInfo.php'; 14require_once LIB_PATH . 'osclass/formatting.php'; 15require_once LIB_PATH . 'osclass/compatibility.php'; 16require_once LIB_PATH . 'osclass/utils.php'; 96 try{ 97 require_once LIB_PATH . 'phpmailer/class.phpmailer.php' ; 98 $mail = new PHPMailer(true) ; 403 404 require_once ABS_PATH . 'oc-includes/osclass/model/Country.php'; 405 require_once ABS_PATH . 'oc-includes/osclass/model/Region.php';class-inl.h https://gitlab.com/0072016/0072016-PHP.LLC | C Header | 522 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 16 17#ifndef incl_HPHP_VM_CLASS_INL_H_ 18#error "class-inl.h should only be included by class.h"mkdist.php https://gitlab.com/0072016/appengine-php | PHP | 548 lines
15 16$dist_dir = $build_dir . "/php-" . phpversion(); 17$test_dir = $build_dir . "/php-test-pack-" . phpversion(); 127 echo "Copying $item from $source_dir to $dest_dir\n"; 128 copy($source_dir . DIRECTORY_SEPARATOR . $item, $dest_dir . DIRECTORY_SEPARATOR . $item); 129 if ($is_debug) { 210/* the core dll */ 211copy("$build_dir/php.exe", "$dist_dir/php.exe"); 212copy("$build_dir/$phpdll", "$dist_dir/$phpdll"); 215$phplib = str_replace(".dll", ".lib", $phpdll); 216copy("$build_dir/$phplib", "$dist_dir/dev/$phplib"); 217/* debug builds; copy the symbols too */ 219 $phppdb = str_replace(".dll", ".pdb", $phpdll); 220 copy("$build_dir/$phppdb", "$dist_dir/dev/$phppdb"); 221}PyDown.py https://github.com/jedie/python-code-snippets.git | Python | 459 lines
12__author__ = "Jens Diemer (www.jensdiemer.de)" 13__license__ = "GNU General Public License v2 or above - http://www.opensource.org/licenses/gpl-license.php" 14__url__ = "http://www.jensdiemer.de/Programmieren/Python/PyDown" 99 "upload_bufsize" : 8192, 100 "upload_dir" : "uploads", 101 # Soll nach dem Upload eine eMail verschickt werden?display-debug.page.php https://github.com/evadne/wp-e-commerce.git | PHP | 365 lines
49 <li> 50 <a href='?page=wpsc-debug&wpsc_debug_action=phpinfo'>Display phpinfo</a> 51 </li> 52 <li> 53 <a href='<?php echo $fixpage; ?>'>Fix Purchaselogs</a> 54 </li> 182 $new_theme_path = WPSC_THEMES_PATH; 183 $new_dir = @opendir($new_theme_path); 184 $num = 0; 185 $file_names = array(); 186 while(($file = @readdir($new_dir)) !== false) { 187 if(is_dir($new_theme_path.$file) && ($file != "..") && ($file != ".")){ 192 $old_dir = @opendir($old_theme_path); 193 while(($file = @readdir($old_dir)) !== false) { 194 if(is_dir($old_theme_path.$file) && ($file != "..") && ($file != ".")){plugin.php https://github.com/mrmark/moodle.git | PHP | 352 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 55 global $CFG; 56 require_once($CFG->libdir . '/filelib.php'); 57 201 global $CFG; 202 require_once($CFG->libdir . '/filelib.php'); 203 if ($this->extensions === null) { 263 $this->language = current_language(); 264 $basedir = $CFG->dirroot . '/media/player/videojs/videojs/lang/'; 265 $langfiles = get_directory_list($basedir); 273 // Found an exact match for the language. 274 $js = file_get_contents($basedir . $langfile); 275 break; 284 $this->language = key($candidates); 285 $js = file_get_contents($basedir . $candidates[$this->language]); 286 }Controller.php https://github.com/quarkness/piwik.git | PHP | 321 lines
1<?php 2/** 167 Piwik_Tracker_IgnoreCookie::setIgnoreCookie(); 168 Piwik::redirectToModule('UsersManager', 'userSettings'); 169 } 203 // we manually imitate what would happen, in case the anonymous user logs in 204 // and is redirected to the first website available to him in the list 205 // @see getDefaultWebsiteId()FileValidatorTest.php https://github.com/Exercise/symfony.git | PHP | 324 lines
1<?php 2 18 19abstract class FileValidatorTest extends \PHPUnit_Framework_TestCase 20{ 34 $this->validator->initialize($this->context); 35 $this->path = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'FileValidatorTest'; 36 $this->file = fopen($this->path, 'w'); 310 array(UPLOAD_ERR_NO_FILE, 'uploadNoFileErrorMessage'), 311 array(UPLOAD_ERR_NO_TMP_DIR, 'uploadNoTmpDirErrorMessage'), 312 array(UPLOAD_ERR_CANT_WRITE, 'uploadCantWriteErrorMessage'),category.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 394 lines
188 { 189 $mainframe->redirect( 'index.php?option=com_easyblog&view=category' , $message , $type ); 190 $mainframe->close(); 191 } 192 $mainframe->redirect( 'index.php?option=com_easyblog&view=categories' , $message , $type ); 193 } 199 200 $this->setRedirect( 'index.php?option=com_easyblog&view=categories' ); 201 268 $type = 'error'; 269 $this->setRedirect( 'index.php?option=com_easyblog&view=categories' , $message , $type ); 270 return; 391 392 $this->setRedirect( 'index.php?option=com_easyblog&view=categories' , $message , $type ); 393 }behat_config_manager.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 279 lines
27 28require_once(__DIR__ . '/../lib.php'); 29require_once(__DIR__ . '/behat_command.php'); 29require_once(__DIR__ . '/behat_command.php'); 30require_once(__DIR__ . '/../../testing/classes/tests_finder.php'); 31 156 $userdir = behat_command::get_behat_dir() . '/users/' . $USER->id; 157 make_writable_directory($userdir); 158 175 176 $basedir = $CFG->dirroot . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'behat'; 177 $config = array( 180 'features' => $basedir . DIRECTORY_SEPARATOR . 'features', 181 'bootstrap' => $basedir . DIRECTORY_SEPARATOR . 'features' . DIRECTORY_SEPARATOR . 'bootstrap', 182 ),instances.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 244 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 25 26require('../config.php'); 27 36if ($course->id == SITEID) { 37 redirect("$CFG->wwwroot/"); 38} 44 45$PAGE->set_url('/enrol/instances.php', array('id'=>$course->id)); 46$PAGE->set_pagelayout('admin'); 72 } 73 redirect($PAGE->url); 74 92 } 93 redirect($PAGE->url); 94wp-settings.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 323 lines
5 * 6 * Allows for some configuration in wp-config.php (see default-constants.php) 7 * 61if ( WP_CACHE ) 62 WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' ); 63 156// Define constants that rely on the API to obtain the default value. 157// Define must-use plugin directory constants, which may be overridden in the sunrise.php drop-in. 158wp_plugin_directory_constants( ); 266$locale = get_locale(); 267$locale_file = WP_LANG_DIR . "/$locale.php"; 268if ( ( 0 === validate_file( $locale ) ) && is_readable( $locale_file ) ) 315 * 316 * AJAX requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for 317 * users not logged in.langimport.php https://github.com/dhamma-dev/SEA.git | PHP | 387 lines
30 31require_once(dirname(dirname(__FILE__)).'/config.php'); 32require_once($CFG->libdir.'/adminlib.php'); 32require_once($CFG->libdir.'/adminlib.php'); 33require_once($CFG->libdir.'/filelib.php'); 34require_once($CFG->libdir.'/componentlib.class.php'); 35 36$thisversion = '2.0'; // TODO this information should be taken from version.php or similar source 37 130 if (file_exists($dest2)){ 131 $rm2 = remove_dir($dest2); 132 } 162 163 if (file_exists($dest1.'/langconfig.php') || file_exists($dest2.'/langconfig.php')){ 164 $updateablelangs[] = $clang;authentication_documentation.html https://github.com/cgajardo/repositorium.git | HTML | 355 lines
127 The username and password will now be sent with every 128 subsequent request to that directory and subdirectories. 129 You will have to authenticate again if you step outside 129 You will have to authenticate again if you step outside 130 the authenticated directory, but SimpleTest is smart enough 131 to merge subdirectories into a common realm. 164 user interface for web developers. 165 More likely this functionality will be coded directly into 166 the web architecture using cookies and complicated timeouts. 198 function testSessionCookieSetBeforeForm() { 199 $this->get('http://www.my-site.com/login.php');<strong> 200 $this->assertCookie('SID');</strong> 209 function testSessionCookieIsCorrectPattern() { 210 $this->get('http://www.my-site.com/login.php'); 211 $this->assertCookie('SID', <strong>new PatternExpectation('/[a-f0-9]{32}/i')</strong>);bcm_umi_nand.c https://github.com/mstsirkin/linux.git | C | 579 lines
6* under the terms of the GNU General Public License version 2, available at 7* http://www.broadcom.com/licenses/GPLv2.php (the "GPL"). 8* 74#define DMA_MAX_BUFLEN PAGE_SIZE 75#define USE_DIRECT_IO(len) (((len) < DMA_MIN_BUFLEN) || \ 76 ((len) > DMA_MAX_BUFLEN)) 89#define DMA_MAX_BUFLEN 0 90#define USE_DIRECT_IO(len) 1 91#endif 299CMD: 300 /* Send command to chip directly */ 301 if (cmd != NAND_CMD_NONE) 307{ 308 if (USE_DIRECT_IO(len)) { 309 /* Do it the old way if the buffer is small or too large.functions.inc.php https://gitlab.com/boxnia/NFU_MOVIL | PHP | 346 lines
1<?php 2 22 ), 23 'direccion' => array( 24 'filter' => FILTER_VALIDATE_REGEXP, 318 if ($passwd != $passwd2) { 319 return $errorpassw = "Los password deben coincidir"; 320 }index.html https://gitlab.com/essere.lab.public/qualitas.class-corpus | HTML | 305 lines
89<br> 90<span class="element"><a href="http://jasperforge.org/scm/viewvc.php/tags/jr-3-7-4/jasperreports/demo/samples/xlsdatasource/?root=jasperreports" target="_blank">Browse Sample Source Files on SVN</a></span> 91<table cellspacing="0" cellpadding="0" border="0" width="100%"> 283In order to figure out more on XLS data sources, just test this sample by running from the command line the <code>ant test view</code> command. 284It will generate all supported document types containing the sample report in the /build/reports directory, and then the report will be open with JasperReports internal viewer. 285 </span></td>multiple-featured-images.php https://gitlab.com/webkod3r/tripolis | PHP | 374 lines
1<?php 2/* 91 public function kd_admin_init() { 92 if( strstr($_SERVER['REQUEST_URI'], 'wp-admin/post-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/post.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/media-upload.php')) { 93 wp_enqueue_script( 94 'kd-multiple-featured-images', 95 get_template_directory_uri().'/framework/plugins/multiple-featured-images/js/kd-admin.js', 96 'jquery' 373 374// Omit closing PHP tag to avoid "Headers already sent" issues. 375readme.md https://gitlab.com/buitenzorg812/garapic.cms | Markdown | 217 lines
113 114Models and libraries can also be loaded from sub-directories in their respective application directories. 115 1597. Create module directory structure application/modules/welcome/controllers 1608. Move controller application/controllers/welcome.php to application/modules/welcome/controllers/welcome.php 1619. Access the URL /index.php/welcome => shows Welcome to CodeIgniter 16210. Create directory application/modules/welcome/views 16311. Move view application/views/welcome_message.php to application/modules/welcome/views/welcome_message.php 16412. Access the URL /index.php/welcome => shows Welcome to CodeIgniter 175-Steps 6-8 show MX working alongside CI - controller moved to the “welcome” module, the view file remains 176in the CI application/views directory - MX can find module resources in several places, including the application directory. 177 2061. No need to get and use the CI instance within an HMVC class 2072. HMVC classes are stored in a modules directory as opposed to the libraries directory. 208Test.php https://bitbucket.org/Nemcio/kloxo-mr.git | PHP | 275 lines
18 * @copyright 1997-2006 The PHP Group 19 * @license http://www.php.net/license/3_0.txt PHP License 3.0 20 * @version CVS: $Id: Test.php,v 1.1.1.1 2009/05/08 18:30:19 root Exp $ 56 'shortopt' => 'r', 57 'doc' => 'Run tests in child directories, recursively. 4 dirs deep maximum', 58 ), 81 'shortopt' => 'u', 82 'doc' => 'Search parameters for AllTests.php, and use that to run phpunit-based tests', 83 ), 85 'doc' => '[testfile|dir ...] 86Run regression tests with PHP\'s regression testing script (run-tests.php).', 87 ), 179 } 180 $dir = System::find(array(dirname($p), '-type', 'f', 181 '-maxdepth', $depth,instructions_de.htm https://bitbucket.org/vins13pattar/adaptive-images.git | HTML | 177 lines
22 <h2>Basis Anweisungen</h2> 23 <p>Kopieren Sie <code>adaptive-images.php</code> und <code>.htaccess</code> 24 in das Hauptverzeichniss ihres Internetauftritts. 33 <p>Das wars. Sie sind fertig</p> 34 <p>ANMERKUNG: Die <code>ai-cookie.php</code> Datei wird normalerweise nicht 35 benötigt. Nur beim Einsatz der <a href="#alternate">Alternativen Methode</a> 46 47# Add any directories you wish to omit from the Adaptive-Images process on a new 48line, as follows: 48line, as follows: 49# RewriteCond %{REQUEST_URI} !some-directory 50# RewriteCond %{REQUEST_URI} !another-directory 54# Send any GIF, JPG, or PNG request that IS NOT stored inside one of the above 55directories 56# to adaptive-images.php so we can select appropriately sized versionstest.php https://github.com/md-tech/openemr.git | PHP | 422 lines
1<?php 2$debug=1; 2$debug=1; 3require_once("gacl_admin.inc.php"); 4 146/* 147//require_once('../Cache_Lite.php'); 148require_once('./profiler.inc'); 152 'caching' => true, 153 'cacheDir' => '/tmp/phpgacl_cache', 154 'lifeTime' => 100sfValidatorBaseTest.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 246 lines
1<?php 2 10 11require_once(dirname(__FILE__).'/../../bootstrap/unit.php'); 12index.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 336 lines
1<?php 2 16require_once('../../../config.php'); 17require_once($CFG->libdir.'/adminlib.php'); 18 96 97<form method="post" action="index.php"> 98 <div> 98 <div> 99 <label class="accesshide" for="keyword_el"><?php print_string('spamkeyword', 'tool_spamcleaner') ?></label> 100 <input type="text" name="keyword" id="keyword_el" value="<?php p($keyword) ?>" /> 100 <input type="text" name="keyword" id="keyword_el" value="<?php p($keyword) ?>" /> 101 <input type="hidden" name="sesskey" value="<?php echo sesskey();?>" /> 102 <input type="submit" value="<?php echo get_string('spamsearch', 'tool_spamcleaner')?>" /> 104</form> 105<p><?php echo get_string('spameg', 'tool_spamcleaner');?></p> 106FinderTest.php https://github.com/Exercise/symfony.git | PHP | 333 lines
222 $finder = new Finder(); 223 $iterator = $finder->files()->name('*.php')->depth('< 1')->in(array(self::$tmpDir, __DIR__))->getIterator(); 224 224 225 $this->assertIterator(array(self::$tmpDir.DIRECTORY_SEPARATOR.'test.php', __DIR__.DIRECTORY_SEPARATOR.'FinderTest.php', __DIR__.DIRECTORY_SEPARATOR.'bootstrap.php', __DIR__.DIRECTORY_SEPARATOR.'GlobTest.php'), $iterator); 226 } 239 $dirs = array(); 240 foreach ($finder->directories()->in(self::$tmpDir) as $dir) { 241 $dirs[] = (string) $dir; 251 $finder = new Finder(); 252 $this->assertEquals(2, iterator_count($finder->directories()->in(self::$tmpDir)), 'implements the \IteratorAggregate interface'); 253 327 foreach ($files as $file) { 328 $f[] = self::$tmpDir . DIRECTORY_SEPARATOR . str_replace('/', DIRECTORY_SEPARATOR, $file); 329 }Graph.php https://github.com/studioskylab/Docblox.git | PHP | 259 lines
1<?php 2/** 4 * 5 * PHP Version 5 6 * 11 * @copyright 2010-2011 Mike van Riel / Naenius (http://www.naenius.com) 12 * @license http://www.opensource.org/licenses/mit-license.php MIT 13 * @link http://docblox-project.org 24 * @author Mike van Riel <mike.vanriel@naenius.com> 25 * @license http://www.opensource.org/licenses/mit-license.php MIT 26 * @link http://docblox-project.org 108 ->setFontSize('11') 109 ->setRankDir('LR'); 110 127 if (!isset($this->class_paths[$sub_element->getElementsByTagName('full_name')->item(0)->nodeValue])) { 128 echo $sub_element->getElementsByTagName('full_name')->item(0)->nodeValue.PHP_EOL; 129 } else {ajax.function.php https://github.com/ardowz/Thesis-SideB.git | PHP | 302 lines
1<?php 2/* 2/* 3 * @version $Id: ajax.function.php 14684 2011-06-11 06:32:40Z remi $ 4 ------------------------------------------------------------------------- 34 * @param $use_ajax Use ajax search system (if not display a standard dropdown) 35 * @param $relativeurl Relative URL to the root directory of GLPI 36 * @param $params Parameters to send to ajax URLValidationStatistics_body.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 307 lines
1<?php 2 131 htmlspecialchars( $wgLang->formatnum( $reviewed ) . 132 $wgContLang->getDirMark() ) . " <i>$percRev</i> 133 </td> 135 htmlspecialchars( $wgLang->formatnum( $synced ) . 136 $wgContLang->getDirMark() ) . " <i>$percLatest</i> 137 </td> 187 global $wgPhpCli; 188 $ext = !empty( $wgPhpCli ) ? $wgPhpCli : 'php'; 189 $path = wfEscapeShellArg( dirname( __FILE__ ) . '/../maintenance/updateStats.php' );jlparameter.php https://gitlab.com/julienv/joomleague | PHP | 552 lines
216 { 217 $this->addElementPath(JPATH_ROOT . str_replace('/', DS, $dir)); 218 } 522 * 523 * @param mixed $path Directory (string) or directories (array) to search. 524 * 538 // No surrounding spaces allowed! 539 $dir = trim($dir); 540 541 // Add trailing separators as needed. 542 if (substr($dir, -1) != DIRECTORY_SEPARATOR) 543 { 544 // Directory 545 $dir .= DIRECTORY_SEPARATOR; 546 }SAPI.h https://gitlab.com/iranjith4/hhvm | C Header | 310 lines
2 +----------------------------------------------------------------------+ 3 | PHP Version 5 | 4 +----------------------------------------------------------------------+ 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 248 int php_ini_ignore; 249 int php_ini_ignore_cwd; /* don't look for php.ini in the current directory */ 250 285#define SAPI_DEFAULT_CHARSET "" 286#define SAPI_PHP_VERSION_HEADER "X-Powered-By: PHP/" PHP_VERSION 287paypal-return-in-web-accept-sp.inc.php https://gitlab.com/Gashler/sg | PHP | 148 lines
1<?php 2/** 10 * You should have received a copy of the GNU General Public License, 11 * along with this software. In the main directory, see: /licensing/ 12 * If not, see: {@link http://www.gnu.org/licenses/}. 100 101 wp_redirect($sp_access_url); // Immediate redirection to Specific Post/Page. 102 } 102 } 103 else if($custom_success_redirection) // Using a custom success redirection URL? 104 { 104 { 105 $paypal['s2member_log'][] = 'Redirecting Customer to a custom URL on success: '.$custom_success_redirection; 106 106 107 wp_redirect($custom_success_redirection); 108 }about.php https://gitlab.com/Gashler/sg | PHP | 208 lines
9/** WordPress Administration Bootstrap */ 10require_once( dirname( __FILE__ ) . '/admin.php' ); 11 87 'heading' => __( 'Template Hierarchy' ), 88 /* Translators: 1: singular.php; 2: single.php; 3:page.php */ 89 'description' => sprintf( __( 'Added %1$s as a fallback for %2$s and %3$s' ), '<code>singular.php</code>', '<code>single.php</code>', '<code>page.php</code>.' ), 104 <h2 class="nav-tab-wrapper"> 105 <a href="about.php" class="nav-tab nav-tab-active"><?php _e( 'What’s New' ); ?></a> 106 <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a> 171 <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?> 172 <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>"> 173 <?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard → Updates' ); ?> 175 <?php endif; ?> 176 <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard → Home' ) : _e( 'Go to Dashboard' ); ?></a> 177 </div>ListenerOptions.php https://gitlab.com/yousafsyed/easternglamor | PHP | 396 lines
269 if ($this->getConfigCacheKey()) { 270 return $this->getCacheDir() . '/module-config-cache.' . $this->getConfigCacheKey().'.php'; 271 } 272 273 return $this->getCacheDir() . '/module-config-cache.php'; 274 } 291 */ 292 public function setCacheDir($cacheDir) 293 { 353 if ($this->getModuleMapCacheKey()) { 354 return $this->getCacheDir() . '/module-classmap-cache.' . $this->getModuleMapCacheKey() . '.php'; 355 } 356 357 return $this->getCacheDir() . '/module-classmap-cache.php'; 358 }ibase_driver.php https://gitlab.com/joshuacurci/swim-crm | PHP | 396 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 37 */ 38defined('BASEPATH') OR exit('No direct script access allowed'); 39Currency.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 357 lines
30 * @category Mage 31 * @package Mage_Directory 32 * @author Magento Core Team <core@magentocommerce.com> 33 */ 34class Mage_Directory_Model_Currency extends Mage_Core_Model_Abstract 35{ 136 $code = $toCurrency; 137 } elseif ($toCurrency instanceof Mage_Directory_Model_Currency) { 138 $code = $toCurrency->getCurrencyCode(); 139 } else { 140 throw Mage::exception('Mage_Directory', Mage::helper('directory')->__('Invalid target currency.')); 141 } 163 } else { 164 throw Mage::exception('Mage_Directory', Mage::helper('directory')->__('Invalid target currency.')); 165 }Mail.php https://github.com/magikcypress/bbbweb.git | PHP | 270 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 28 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 29 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 30 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 40 * @copyright 1997-2010 Chuck Hagenbuch 41 * @license http://opensource.org/licenses/bsd-license.php New BSD License 42 * @version CVS: $Id: Mail.php 294747 2010-02-08 08:18:33Z clockwerx $ 42 * @version CVS: $Id: Mail.php 294747 2010-02-08 08:18:33Z clockwerx $ 43 * @link http://pear.php.net/package/Mail/ 44 */ 45 46require_once 'PEAR.php'; 47utils.php https://gitlab.com/elasa/shop2.elasa.ir | PHP | 313 lines
4 5function deleteDir($dir) { 6 if (!file_exists($dir)) return true; 6 if (!file_exists($dir)) return true; 7 if (!is_dir($dir)) return unlink($dir); 8 foreach (scandir($dir) as $item) { 9 if ($item == '.' || $item == '..') continue; 10 if (!deleteDir($dir.DIRECTORY_SEPARATOR.$item)) return false; 11 } 44 if(image_check_memory_usage($imgfile,$newwidth,$newheight)){ 45 require_once('php_image_magician.php'); 46 $magicianObj = new imageLib($imgfile); 281 $base_dir=$path.substr_replace($targetPath, '', 0, strlen($current_path)); 282 if (!file_exists($base_dir)) create_folder($base_dir,false); 283 $info=pathinfo($name);service.php https://gitlab.com/alexprowars/bitrix | PHP | 416 lines
36 const AUTHORIZE = "/register/"; 37 const REDIRECT_URI = "/bitrix/tools/seo_client.php"; 38 263 "CLIENT_SECRET" => $accessParams["client_secret"], 264 "REDIRECT_URI" => static::getRedirectUri(), 265 )); 301 "scope" => static::getEngine()->getInterface()->getScopeEncode(), 302 "redirect_uri" => static::getRedirectUri(), 303 ]; 361 "check_key" => urlencode($checkKey), 362 "redirect_uri" => static::getRedirectUri(), 363 ]; 405 406 $newRedirectUri = static::getRedirectUri(); 407 if(!empty($domains))ucp_prefs.php https://github.com/naderman/phpbb-orchestra.git | PHP | 357 lines
29 { 30 global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx; 31 165 'topic_sk' => request_var('topic_sk', (!empty($user->data['user_topic_sortby_type'])) ? $user->data['user_topic_sortby_type'] : 't'), 166 'topic_sd' => request_var('topic_sd', (!empty($user->data['user_topic_sortby_dir'])) ? $user->data['user_topic_sortby_dir'] : 'd'), 167 'topic_st' => request_var('topic_st', (!empty($user->data['user_topic_show_days'])) ? $user->data['user_topic_show_days'] : 0), 169 'post_sk' => request_var('post_sk', (!empty($user->data['user_post_sortby_type'])) ? $user->data['user_post_sortby_type'] : 't'), 170 'post_sd' => request_var('post_sd', (!empty($user->data['user_post_sortby_dir'])) ? $user->data['user_post_sortby_dir'] : 'a'), 171 'post_st' => request_var('post_st', (!empty($user->data['user_post_show_days'])) ? $user->data['user_post_show_days'] : 0), 288 'S_TOPIC_SORT_KEY' => $s_sort_topic_key, 289 'S_TOPIC_SORT_DIR' => $s_sort_topic_dir, 290 'S_POST_SORT_DAYS' => $s_limit_post_days, 291 'S_POST_SORT_KEY' => $s_sort_post_key, 292 'S_POST_SORT_DIR' => $s_sort_post_dir) 293 );Type.php https://bitbucket.org/rybadour/todo_list_site.git | PHP | 303 lines
27 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 28 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 29 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 36 * 37 * @package PHPUnit 38 * @subpackage Util 48 * 49 * @package PHPUnit 50 * @subpackage Util 50 * @subpackage Util 51 * @author Sebastian Bergmann <sebastian@phpunit.de> 52 * @copyright 2001-2012 Sebastian Bergmann <sebastian@phpunit.de> 159 // There seems to be no other way to check arrays for recursion 160 // http://www.php.net/manual/en/language.types.array.php#73936 161 preg_match_all('/\n \[(\w+)\] => Array\s+\*RECURSION\*/', print_r($value, TRUE), $matches);voucher.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 263 lines
1<?php 2class ControllerAccountVoucher extends Controller { 25 26 $this->redirect($this->url->link('account/voucher/success')); 27 } 163 164 if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/account/voucher.tpl')) { 165 $this->template = $this->config->get('config_template') . '/template/account/voucher.tpl'; 208 209 if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/success.tpl')) { 210 $this->template = $this->config->get('config_template') . '/template/common/success.tpl';Matcher.php https://bitbucket.org/rybadour/todo_list_site.git | PHP | 308 lines
1<?php 2/** 27 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 28 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 29 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 53 * 54 * @package PHPUnit_MockObject 55 * @author Sebastian Bergmann <sb@sebastian-bergmann.de> 61 */ 62class PHPUnit_Framework_MockObject_Matcher implements PHPUnit_Framework_MockObject_Matcher_Invocation 63{ 149 $builder = $invocation->object 150 ->__phpunit_getInvocationMocker() 151 ->lookupId($this->afterMatchBuilderId); 153 if (!$builder) { 154 throw new PHPUnit_Framework_Exception( 155 sprintf(Loader.php https://gitlab.com/buitenzorg812/garapic.cms | PHP | 481 lines
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed'); 2 12 * 13 * Install this file as application/third_party/MX/Loader.php 14 * 82 /* only add a module path if it exists */ 83 if (is_dir($module_path = $location.$module.'/') && ! in_array($module_path, $this->_ci_model_paths)) 84 { 352 { 353 echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path)))); 354 } 480/** load the CI class for Modular Separation **/ 481(class_exists('CI', FALSE)) OR require dirname(__FILE__).'/Ci.php';eclipse.php https://github.com/kpike/moodle.git | PHP | 307 lines
1<?php 2/** 10 */ 11include_once 'unit_tester.php'; 12include_once 'test_case.php'; 12include_once 'test_case.php'; 13include_once 'invoker.php'; 14include_once 'socket.php'; 14include_once 'socket.php'; 15include_once 'mock_objects.php'; 16/**#@-*/ 237 xdebug_stop_code_coverage(); 238 $thisdir = dirname(__FILE__); 239 $thisdirlen = strlen($thisdir); 240 foreach ($arrfiles as $index=>$file){ 241 if (substr($index, 0, $thisdirlen)===$thisdir){ 242 continue;AnnotationDriverTest.php https://bitbucket.org/iiic/iszp.git | PHP | 340 lines
1<?php 2 7 8require_once __DIR__ . '/../../TestInit.php'; 9 97 $annotationDriver = $this->_loadDriver(); 98 $annotationDriver->addPaths(array(__DIR__ . '/../../Models/CMS/')); 99 return $annotationDriver; 119 $annotationDriver = $this->_loadDriver(); 120 $annotationDriver->addPaths(array(__DIR__ . '/../../Models/DirectoryTree/')); 121 127 $classPage = $factory->getMetadataFor('Doctrine\Tests\Models\DirectoryTree\File'); 128 $this->assertEquals('Doctrine\Tests\Models\DirectoryTree\File', $classPage->associationMappings['parentDirectory']['sourceEntity']); 129 130 $classDirectory = $factory->getMetadataFor('Doctrine\Tests\Models\DirectoryTree\Directory'); 131 $this->assertEquals('Doctrine\Tests\Models\DirectoryTree\Directory', $classDirectory->associationMappings['parentDirectory']['sourceEntity']); 132 }recorded.php https://github.com/fracmak/mythweb.git | PHP | 233 lines
138 <td rowspan="2" class="x-pixmap"> 139 <a class="x-pixmap" href="<?php echo $show->url ?>" title="<?php echo t('Direct Download') ?>" 140 ><img src="<?php echo $show->thumb_url(100,0) ?>"></a> 144 <a class="x-download" 145 href="<?php echo $show->url ?>" title="<?php echo t('Direct Download') ?>" 146 ><img src="<?php echo skin_url ?>/img/video_sm.png"></a> 167 } 168 ?><a href="<?php echo root_url ?>tv/recorded?delete=yes&chanid=<?php echo $show->chanid ?>&starttime=<?php echo $show->recstartts ?>" 169 title="<?php echo html_entities(t('Delete $1', preg_replace('/: $/', '', $show->title.': '.$show->subtitle))) ?>" 170 ><?php echo t('Delete') ?></a> 171 <a href="<?php echo root_url ?>tv/recorded?delete=yes&chanid=<?php echo $show->chanid ?>&starttime=<?php echo $show->recstartts ?>&forget_old=yes" 172 title="<?php echo html_entities(t('Delete and rerecord $1', preg_replace('/: $/', '', $show->title.': '.$show->subtitle))) ?>" 202 <li><a href="<?php echo $show->url ?>"> 203 <img src="<?php echo skin_url ?>/img/video_sm.png"><?php echo t('Direct Download') ?></a></li> 204 </ul>store.php https://github.com/marxjohnson/moodle.git | PHP | 362 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 63 $replace = "module = 'course' AND action = 'new' AND userid = :userid AND url = :url AND time > :since"; 64 $params += array('url' => "view.php?id={$params['courseid']}"); 65 return array($replace, $params, $sort); 246 247 // If the 100 field size is changed, also need to alter print_log in course/lib.php. 248 if (!empty($url) && \core_text::strlen($url) > 100) { 277 if (empty($lasttime) || time() - $lasttime > 60 * 60 * 24) { // Limit to 1 email per day. 278 // Using email directly rather than messaging as they may not be able to log in to access a message. 279 mail($CFG->supportemail, $subject, $message);url_helper.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 593 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 341 var l=new Array(); 342 <?php 343 $i = 0; 343 $i = 0; 344 foreach ($x as $val){ ?>l[<?php echo $i++; ?>]='<?php echo $val; ?>';<?php } ?> 345 348 else document.write(unescape(l[i]));} 349 </script><?php 350 516/** 517 * Header Redirect 518 *MY_url_helper.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 542 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 183/** 184 * Variant of redirect() which takes the module into account - if any. 185 * 190 */ 191if( ! function_exists('module_redirect')) 192{ 192{ 193 function module_redirect($uri = '', $method = 'location', $http_response_code = 302) 194 { 200 // call "parent" 201 redirect($uri, $method, $http_response_code); 202 } 507/** 508 * Header Redirect 509 * Modified to redirect 303 by default.reindex.php https://github.com/karpenoktem/punbb.git | PHP | 267 lines
89<!DOCTYPE html> 90<html lang="<?php $lang_common['lang_identifier'] ?>" dir="<?php echo $lang_common['lang_direction'] ?>"> 91<head> 104 105<?php 106 229 <div class="sf-box text"> 230 <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_reindex['Posts per cycle'] ?></span> <small><?php echo $lang_admin_reindex['Posts per cycle info'] ?></small></label><br /> 231 <span class="fld-input"><input type="number" id="fld<?php echo $forum_page['fld_count'] ?>" name="i_per_page" size="7" maxlength="7" value="100" /></span> 236 <div class="sf-box text"> 237 <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span class="fld-label"><?php echo $lang_admin_reindex['Starting post'] ?></span> <small><?php echo $lang_admin_reindex['Starting post info'] ?></small></label><br /> 238 <span class="fld-input"><input type="number" id="fld<?php echo $forum_page['fld_count'] ?>" name="i_start_at" size="7" maxlength="7" value="<?php echo (isset($first_id)) ? $first_id : 0 ?>" /></span> 244 <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="i_empty_index" value="1" checked="checked" /></span> 245 <label for="fld<?php echo $forum_page['fld_count'] ?>"><?php echo $lang_admin_reindex['Empty index'] ?></label> 246 </div>RbacUsers.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 288 lines
1<?php 2 3/** 4 * RbacUsers.php 5 * @package rbac-classes-model 29 */ 30require_once 'classes/model/om/BaseRbacUsers.php'; 31 38 * application requirements. This class will only be generated as 39 * long as it does not already exist in the output directory. 40 *TranslateGettext.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 285 lines
9 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 10 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 11 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 51 const DOMAIN_KEY = "domain"; 52 const DIR_KEY = "dir"; 53 const LOCALE_KEY = "locale"; 87 * Sets the root locale directory. 88 * @param PhingFile $dir 89 */ 90 function setDir(PhingFile $dir) { 91 $this->dir = $dir; 92 } 256 $newFilter->setLocale($this->getLocale()); 257 $newFilter->setDir($this->getDir()); 258 return $newFilter;SYLK.php https://gitlab.com/Zinnurain/destination_finder_beta | PHP | 450 lines
22 * @package PHPExcel_Reader 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 28 29/** PHPExcel root directory */ 30if (!defined('PHPEXCEL_ROOT')) { 34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 42 * @package PHPExcel_Reader 43 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 44 */ 44 */ 45class PHPExcel_Reader_SYLK extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader 46{