PageRenderTime 1383ms queryTime 85ms sortTime 618ms getByIdsTime 64ms findMatchingLines 89ms

100+ results results for 'php log repo:prat_h/rakbuku' (1383 ms)

Not the results you expected?
DiffPanel.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 365 lines
                    
53import java.util.logging.Level;
                    
54import java.util.logging.Logger;
                    
55import javax.swing.JButton;
                    
84
                    
85    static final Logger LOGGER = Logger.getLogger(DiffPanel.class.getName());
                    
86
                    
133        descriptor.setValid(false);
                    
134        Dialog dialog = DialogDisplayer.getDefault().createDialog(descriptor);
                    
135        setDiffView();
                    
292        } catch (IOException ex) {
                    
293            LOGGER.log(Level.WARNING, null, ex);
                    
294            showError(Bundle.DiffPanel_error_copyContent());
                    
300        } catch (IOException ex) {
                    
301            LOGGER.log(Level.WARNING, null, ex);
                    
302            showError(Bundle.DiffPanel_error_opening());
                    
                
ez_sql_core.php https://github.com/LamCiuLoeng/BookShare.git | PHP | 552 lines
                    
1<?php
                    
2
                    
47		var $db_connect_time  = 0;
                    
48		var $trace_log        = array();
                    
49		var $use_trace_log    = false;
                    
49		var $use_trace_log    = false;
                    
50		var $sql_log_file     = false;
                    
51		var $do_profile       = false;
                    
115
                    
116			// Log how the function was called
                    
117			$this->func_call = "\$db->get_var(\"$query\",$x,$y)";
                    
141
                    
142			// Log how the function was called
                    
143			$this->func_call = "\$db->get_row(\"$query\",$output,$y)";
                    
206
                    
207			// Log how the function was called
                    
208			$this->func_call = "\$db->get_results(\"$query\", $output)";
                    
                
Particle3DTest.cpp https://github.com/dumganhar/cocos2d-x.git | C++ | 480 lines
                    
2 Copyright (c) 2012 cocos2d-x.org
                    
3 Copyright (c) 2013-2016 Chukong Technologies Inc.
                    
4 Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
                    
78    listener->onTouchesEnded = CC_CALLBACK_2(Particle3DTestDemo::onTouchesEnded, this);
                    
79    _eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this);
                    
80
                    
                
File.php https://gitlab.com/rsilveira1987/Expresso | PHP | 473 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage Storage
                    
18 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: File.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
21 */
                    
26 * @subpackage Storage
                    
27 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
28 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
190         */
                    
191        if (PHP_INT_SIZE > 4) {
                    
192            $str = $this->_fread(8);
                    
218         */
                    
219        if (PHP_INT_SIZE > 4) {
                    
220            settype($value, 'integer');
                    
                
catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
                    
9namespace Bitrix\Main\Analytics;
                    
10use Bitrix\Catalog\CatalogViewedProductTable;
                    
11use Bitrix\Main\Application;
                    
29{
                    
30	protected static $cookieLogName = 'RCM_PRODUCT_LOG';
                    
31
                    
60		$realProductId = $basketItem->getProductId();
                    
61		$isCatalog = $basketItem->getField('MODULE') == 'catalog';
                    
62
                    
568	 */
                    
569	public static function encodeProductLog(array $log)
                    
570	{
                    
588	 */
                    
589	public static function decodeProductLog($log)
                    
590	{
                    
                
MaildirFolderTest.php https://github.com/mfairchild365/zf2.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage UnitTests
                    
18 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
32 * @subpackage UnitTests
                    
33 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
34 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
36 */
                    
37class MaildirFolderTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
203        try {
                    
204            // explicit call of __toString() needed for PHP < 5.2
                    
205            $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder');
                    
235
                    
236            // explicit call of __toString() needed for PHP < 5.2
                    
237            $found_folders[$folder->__toString()] = $localName;
                    
                
bltGrHairs.c https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C | 544 lines
                    
6 *
                    
7 * Copyright 1993-1998 Lucent Technologies, Inc.
                    
8 *
                    
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,
                    
                
InstallSchema.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 407 lines
                    
1<?php
                    
2/**
                    
19     * {@inheritdoc}
                    
20     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
21     */
                    
221            [],
                    
222            'Catalog entities (comma separated)'
                    
223        )->addColumn(
                    
                
Descarte.php https://gitlab.com/SFMSP/Hagape | PHP | 346 lines
                    
1<?php
                    
2
                    
235        } catch (\Exception $ex) {
                    
236            $this->log->log(\Zend\Log\Logger::ERR, $ex->getMessage());
                    
237            $this->getEm()->rollback();
                    
339        } catch (\Exception $ex) {
                    
340            $this->log->log(\Zend\Log\Logger::ERR, $ex->getMessage());
                    
341            $this->getEm()->rollback();
                    
                
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
                    
51	public function index() {
                    
52		if( !is_login($this->data['login']) || ( $this->input->post("project_state") == "" && ($this->laststate != $this->uri->segment( 1 )) ) ){
                    
53			show_404();
                    
58	public function _remap($judul, $act) {
                    
59		if( !is_login( $this->data['login'] ) ){
                    
60			show_404();
                    
                
permissions.inc.php https://bitbucket.org/orchdork10159/dnsman.ly.git | PHP | 193 lines
                    
1<?php
                    
2/**
                    
36$_lang['perm.delete_document_desc'] = 'Ressourcen löschen oder entfernen.';
                    
37$_lang['perm.delete_eventlog_desc'] = 'Das Ereignisprotokoll leeren.';  // Manager-Aktivitäten?
                    
38$_lang['perm.delete_plugin_desc'] = 'Plugins löschen oder entfernen.';
                    
63$_lang['perm.empty_cache_desc'] = 'Den Site-Cache leeren.';
                    
64$_lang['perm.error_log_erase_desc'] = 'Das Fehlerprotokoll löschen.';  // leeren?
                    
65$_lang['perm.error_log_view_desc'] = 'Das Fehlerprotokoll anzeigen.';
                    
83$_lang['perm.load_desc'] = 'Elementare Berechtigung, Objekte zu "laden" oder überhaupt in der Lage zu sein, sie als Instanzen zurückzugeben.';
                    
84$_lang['perm.logout_desc'] = 'Als Benutzer ausloggen.';
                    
85$_lang['perm.logs_desc'] = 'Protokolle wie das Fehlerprotokoll und das Protokoll der Manager-Aktivitäten anzeigen.';
                    
181$_lang['perm.view_element_desc'] = 'Eine Liste von Elementen oder Element-Klassen anzeigen.';
                    
182$_lang['perm.view_eventlog_desc'] = 'Das Ereignisprotokoll anzeigen.';
                    
183$_lang['perm.view_offline_desc'] = 'Die Site anzeigen, wenn sie offline geschaltet ist.';
                    
                
Resource.php https://github.com/rico/flextrine.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage Autoloader
                    
18 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23568 2010-12-20 08:13:20Z mjh_ca $
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
31 * @subpackage Autoloader
                    
32 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
33 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
                
Inflector.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 506 lines
                    
1<?php
                    
2/**
                    
16 * @package    Zend_Filter
                    
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
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Inflector.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
20 */
                    
25 */
                    
26// require_once 'Zend/Filter.php';
                    
27
                    
30 */
                    
31// require_once 'Zend/Loader/PluginLoader.php';
                    
32
                    
37 * @package    Zend_Filter
                    
38 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
39 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
                
Command.php https://github.com/ckdimka/core.git | PHP | 512 lines
                    
1<?php
                    
2
                    
43     *
                    
44     * @throws \LogicException When the command name is empty
                    
45     */
                    
59        if (!$this->name) {
                    
60            throw new \LogicException('The command name cannot be empty.');
                    
61        }
                    
88     *
                    
89     * @throws \LogicException When this abstract class is not implemented
                    
90     */
                    
92    {
                    
93        throw new \LogicException('You must override the execute() method in the concrete command class.');
                    
94    }
                    
378            $name,
                    
379            $_SERVER['PHP_SELF'].' '.$name
                    
380        );
                    
                
File.php https://github.com/Riges/KawaiViewModel.git | PHP | 468 lines
                    
25 */
                    
26require_once 'Zend/CodeGenerator/Php/Abstract.php';
                    
27
                    
30 */
                    
31require_once 'Zend/CodeGenerator/Php/Class.php';
                    
32
                    
38 */
                    
39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract
                    
40{
                    
86        if ($fileName == '') {
                    
87            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
88            throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.');
                    
113            if ( ($realpath = Zend_Reflection_File::findRealpathInIncludePath($filePath)) === false) {
                    
114                require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
115                throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');
                    
                
Batch.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 514 lines
                    
1<?php
                    
2
                    
24  /**
                    
25   * Should CiviCRM log any modifications to this table in the civicrm_log table.
                    
26   *
                    
28   */
                    
29  public static $_log = FALSE;
                    
30
                    
459  /**
                    
460   * Returns if this table needs to be logged
                    
461   *
                    
463   */
                    
464  public function getLog() {
                    
465    return self::$_log;
                    
                
lang.php https://gitlab.com/gideonmarked/atls-express | PHP | 326 lines
                    
49            'misc' => 'Övrigt',
                    
50            'logs' => 'Loggar',
                    
51            'mail' => 'Mail',
                    
134    'mail' => [
                    
135        'log_file' => 'Loggfiler',
                    
136        'menu_label' => 'E-postkonfiguration',
                    
141        'sender_email' => 'Avsändarens e-postadress',
                    
142        'php_mail' => 'PHP mail',
                    
143        'smtp' => 'SMTP',
                    
288        'empty_link' => 'Töm händelseloggen',
                    
289        'empty_loading' => 'Tömmer händelselogg...',
                    
290        'empty_success' => 'Lyckades tömma händelseloggen.',
                    
316        'manage_software_updates' => 'Hantera systemuppdateringar',
                    
317        'access_logs' => 'Visa systemloggen',
                    
318        'manage_mail_templates' => 'Hantera e-postmallar',
                    
                
Inflector.php https://github.com/grandison/budo16.git | PHP | 506 lines
                    
1<?php
                    
2/**
                    
16 * @package    Zend_Filter
                    
17 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Inflector.php 17705 2009-08-21 07:50:57Z thomas $
                    
20 */
                    
25 */
                    
26// require_once 'Zend/Filter.php';
                    
27
                    
30 */
                    
31// require_once 'Zend/Loader/PluginLoader.php';
                    
32
                    
37 * @package    Zend_Filter
                    
38 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
39 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
                
about.html https://gitlab.com/adrian.io/ide | HTML | 275 lines
                    
16		Eclipse Public License Version 1.0 (&quot;EPL&quot;).  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, &quot;Program&quot; will mean the Content.</p>
                    
50
                    
51<h3>Apache Commons Logging v1.1</h3>
                    
52
                    
52
                    
53<p>This plugin is based on software developed by the Apache Commons Codec project at <a href="http://jakarta.apache.org/commons/logging/">http://jakarta.apache.org/commons/logging/</a>.
                    
54A copy of this library is distributed within this plugin and
                    
                
core.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
                    
38 * ErrorHandler::handleError() is used. It will display errors using Debugger, when debug > 0
                    
39 * and log errors with CakeLog when debug = 0.
                    
40 *
                    
70 * - `log` - boolean - Should Exceptions be logged?
                    
71 * - `skipLog` - array - list of exceptions to skip for logging. Exceptions that
                    
72 *   extend one of the listed exceptions will also be skipped for logging.
                    
205 *
                    
206 * - 'php' - Uses settings defined in your php.ini.
                    
207 * - 'cake' - Saves session files in CakePHP's /tmp directory.
                    
                
auth_tkt.py https://bitbucket.org/eaviles/gobierno.git | Python | 380 lines
                    
221        
                    
222    ``logout_path``:
                    
223        The path under this middleware that should signify a logout.  The
                    
223        The path under this middleware that should signify a logout.  The
                    
224        page will be shown as usual, but the user will also be logged out
                    
225        when they visit this page.
                    
239
                    
240        Logs out the user.
                    
241    """
                    
252        self.include_ip = include_ip
                    
253        self.logout_path = logout_path
                    
254        self.no_domain_cookie = no_domain_cookie
                    
295        environ['paste.auth_tkt.logout_user'] = logout_user
                    
296        if self.logout_path and environ.get('PATH_INFO') == self.logout_path:
                    
297            logout_user()
                    
                
NetClient.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 629 lines
                    
75	/**
                    
76	 * @var \MailSo\Log\Logger
                    
77	 */
                    
559	 */
                    
560	protected function writeLog($sDesc, $iDescType = \MailSo\Log\Enumerations\Type::INFO, $bDiplayCrLf = false)
                    
561	{
                    
563		{
                    
564			$this->oLogger->Write($sDesc, $iDescType, $this->getLogName(), true, $bDiplayCrLf);
                    
565		}
                    
605	/**
                    
606	 * @param \MailSo\Log\Logger $oLogger
                    
607	 *
                    
613	{
                    
614		if (!($oLogger instanceof \MailSo\Log\Logger))
                    
615		{
                    
                
ac28db01878361e31b02909532d9.php https://bitbucket.org/AdriVanHoudt/school.git | PHP | 230 lines
                    
1<?php
                    
2
                    
60            echo "            <div class=\"sf-toolbar-info-piece\">
                    
61                <b>Logged in as</b>
                    
62                <span class=\"sf-toolbar-status sf-toolbar-status-";
                    
                
PersistentTokenBasedRememberMeServicesTest.php https://github.com/jdewit/symfony.git | PHP | 329 lines
                    
35
                    
36    public function testAutoLoginThrowsExceptionOnInvalidCookie()
                    
37    {
                    
139
                    
140        $this->assertNull($service->autoLogin($request));
                    
141        $this->assertTrue($request->attributes->has(RememberMeServicesInterface::COOKIE_ATTR_NAME));
                    
143
                    
144    public function testAutoLogin()
                    
145    {
                    
258
                    
259    public function testLoginSuccessSetsCookieWhenLoggedInWithNonRememberMeTokenInterfaceImplementation()
                    
260    {
                    
314
                    
315        return new PersistentTokenBasedRememberMeServices(array($userProvider), 'fookey', 'fookey', $options, $logger, new SecureRandom(sys_get_temp_dir().'/_sf2.seed'));
                    
316    }
                    
                
CookieJar.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 441 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage CookieJar
                    
18 * @version    $Id: CookieJar.php 24856 2012-06-01 01:10:47Z adamlundrigan $
                    
19 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
                    
25 */
                    
26require_once "Zend/Uri.php";
                    
27/**
                    
29 */
                    
30require_once "Zend/Http/Cookie.php";
                    
31/**
                    
33 */
                    
34require_once "Zend/Http/Response.php";
                    
35
                    
56 * @subpackage CookieJar
                    
57 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
                    
58 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
                
Resource.php https://github.com/ParveenArora/AddressHunter.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage Autoloader
                    
18 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23775 2011-03-01 17:25:24Z ralph $
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
31 * @subpackage Autoloader
                    
32 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
33 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
                
bp-loader.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 487 lines
                    
273				$current_site = get_current_site();
                    
274				$root_blog_id = $current_site->blog_id;
                    
275
                    
280
                    
281			define( 'BP_ROOT_BLOG', $root_blog_id );
                    
282		}
                    
320		// BuddyPress Root blog ID
                    
321		$this->root_blog_id = (int) apply_filters( 'bp_get_root_blog_id', BP_ROOT_BLOG );
                    
322
                    
358		$versions               = array();
                    
359		$versions['1.6-single'] = get_blog_option( $this->root_blog_id, '_bp_db_version' );
                    
360
                    
369			$versions['1.6-multi']  = get_site_option(                          '_bp_db_version' );
                    
370			$versions['1.5-single'] = get_blog_option( $this->root_blog_id,     'bp-db-version'  );
                    
371
                    
                
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*
                    
89		
                    
90		if (!empty($vmUser->id) || !empty( $auth['user_id'])) { // user has already logged in
                    
91			
                    
146
                    
147		} // user is not logged in
                    
148		elseif( empty( $auth['user_id']) ) {
                    
                
UpgradeComponentGroup.php https://github.com/orchestra-io/sample-openx.git | PHP | 320 lines
                    
67        }
                    
68        $this->oLogger->setLogFile('plugins/log/'.$this->aComponentGroup['name'].'_upgrade.log');
                    
69    }
                    
97            case OA_STATUS_PLUGIN_VERSION_FAILED:
                    
98                $this->oLogger->log($strProductName.' detected');
                    
99                $this->oLogger->logError($strNoUpgrade);
                    
103                $this->oLogger->log($strProductName.' detected');
                    
104                $this->oLogger->logError($strNoUpgrade);
                    
105                return false;
                    
106            case OA_STATUS_PLUGIN_CAN_UPGRADE:
                    
107                $this->oLogger->log($strProductName.' detected');
                    
108                $this->oLogger->log($strCanUpgrade);
                    
193                                            'version_from'=>$this->versionInitialApplication,
                    
194                                            'logfile'=>basename($this->oLogger->logFile)
                    
195                                            )
                    
                
TestData.php https://github.com/orchestra-io/sample-openx.git | PHP | 301 lines
                    
1<?php
                    
2/*
                    
23+---------------------------------------------------------------------------+
                    
24$Id: TestData.php 41443 2009-08-13 09:19:29Z matteo.beccati $
                    
25*/
                    
31
                    
32require_once MAX_PATH . '/lib/OA/Dal.php';
                    
33require_once MAX_PATH . '/lib/OA/Dll.php';
                    
244        $doBanners->htmltemplate    = "<script type='text/javascript'><!--//<![CDATA[
                    
245   var m3_u = (location.protocol=='https:'?'https://ads.openx.org/delivery/ajs.php':'http://ads.openx.org/delivery/ajs.php');
                    
246   var m3_r = Math.floor(Math.random()*99999999999);
                    
257   document.write (\"'><\\/scr\"+\"ipt>\");
                    
258//]]>--></script><noscript><a href='http://ads.openx.org/delivery/ck.php?n=abc986b1&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://ads.openx.org/delivery/avw.php?zoneid=9&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=abc986b1' border='0' alt='' /></a></noscript>";
                    
259
                    
260        $doBanners->htmlcache    = "<script type='text/javascript'><!--//<![CDATA[
                    
261   var m3_u = (location.protocol=='https:'?'https://ads.openx.org/delivery/ajs.php':'http://ads.openx.org/delivery/ajs.php');
                    
262   var m3_r = Math.floor(Math.random()*99999999999);
                    
                
Ntp.php https://github.com/Exercise/zf2.git | PHP | 434 lines
                    
1<?php
                    
2/**
                    
16 * @package   Zend_TimeSync
                    
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
                    
34 * @package   Zend_TimeSync
                    
35 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
36 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
                
IndexController.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 390 lines
                    
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 */
                    
62        if ($session->isFirstPageAfterLogin()) {
                    
63            // retain the "first page after login" value in session (before redirect)
                    
64            $session->setIsFirstPageAfterLogin(true);
                    
69    /**
                    
70     * Administrator login action
                    
71     */
                    
73    {
                    
74        if (Mage::getSingleton('admin/session')->isLoggedIn()) {
                    
75            $this->_redirect('*');
                    
78        $loginData = $this->getRequest()->getParam('login');
                    
79        $username = (is_array($loginData) && array_key_exists('username', $loginData)) ? $loginData['username'] : null;
                    
80
                    
                
File.php https://gitlab.com/devtoannh/cafe | PHP | 468 lines
                    
25 */
                    
26require_once 'Zend/CodeGenerator/Php/Abstract.php';
                    
27
                    
30 */
                    
31require_once 'Zend/CodeGenerator/Php/Class.php';
                    
32
                    
38 */
                    
39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract
                    
40{
                    
86        if ($fileName == '') {
                    
87            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
88            throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.');
                    
113            if ( ($realpath = Zend_Reflection_file::findRealpathInIncludePath($filePath)) === false) {
                    
114                require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
115                throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');
                    
                
hostkreskoweczki.py https://gitlab.com/Ghoz/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"
                    
179            
                    
180        videoData = self.cm.ph.getSearchGroups(videoUrl, "/embed/proxy[^.]+?.php")
                    
181        if '' != videoData:
                    
                
EditView.php https://github.com/lukio/sugarcrm_dev.git | PHP | 349 lines
                    
32 * these Appropriate Legal Notices must retain the display of the "Powered by
                    
33 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
                    
34 * technical reasons, the Appropriate Legal Notices must display the words
                    
45
                    
46require_once('modules/Campaigns/utils.php');
                    
47
                    
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'];
                    
112
                    
113$GLOBALS['log']->info("EmailTemplate detail view");
                    
114
                    
172$xtpl->assign("CANCEL_SCRIPT", $cancel_script);
                    
173$xtpl->assign("PRINT_URL", "index.php?".$GLOBALS['request_string']);
                    
174$xtpl->assign("JAVASCRIPT", get_set_focus_js() . $quicksearch_js);
                    
                
Resource.php https://github.com/rakesh-sankar/PHP-Framework-Benchmark.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage Autoloader
                    
18 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23567 2010-12-20 08:12:16Z mjh_ca $
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
31 * @subpackage Autoloader
                    
32 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
33 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
                
Editor.php https://github.com/adaykin/zf2.git | PHP | 601 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage Form_Element
                    
18 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
36 * @subpackage Form_Element
                    
37 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
38 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
                
facebook.php https://github.com/copongcopong/CakePHP-Facebook-Plugin.git | PHP | 425 lines
                    
65    * - max-rows int The maximum number of rows of profile pictures to show
                    
66    * - perms list of permissions to ask for when logging in separated by commas (eg: 'email,read_stream,publish_stream'). (http://developers.facebook.com/docs/authentication/permissions)
                    
67    * @return string XFBML tag
                    
69    */
                    
70  function login($options = array()){
                    
71    return $this->__fbTag('fb:login-button', '', $options);
                    
101      }
                    
102      $onclick = "FB.logout(function(response){".$response."});";
                    
103      if(isset($options['confirm'])){
                    
116   * @param array of options
                    
117   * - redirect string to your app's logout url (default null)
                    
118   * - label string of text to use in link (default logout)
                    
243    * - connections : 1 turns connections on, 0 turns connections off (default 0)
                    
244    * - logobar : 1 turns logobar on, 0 turns logobar off (default 0)
                    
245    * - profile_id : Your Application Id (default Configure::read('Facebook.app_id')
                    
                
phpBB.php https://bitbucket.org/adatux_/uakami.git | PHP | 538 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Implementation of phpBB converter.
                    
5 */
                    
5 */
                    
6class phpBB extends BBP_Converter_Base {
                    
7	function __construct() {
                    
357			'to_fieldname' => '_bbp_class',
                    
358			'default'      => 'phpBB'
                    
359		);
                    
365			'to_type'        => 'user',
                    
366			'to_fieldname'   => 'user_login'
                    
367		);
                    
459	
                    
460		if ($count_log2 < 7 || $count_log2 > 30) {
                    
461			return $output;
                    
                
user.inc.php https://gitlab.com/haque.mdmanzurul/modx-improve-carolyn | PHP | 202 lines
                    
18$_lang['extended_fields_msg'] = 'Edit any extended fields that are implemented here.';
                    
19$_lang['login_options'] = 'Login Options';
                    
20$_lang['minimum_role'] = 'Minimum Role';
                    
77$_lang['user_duplicate'] = 'Duplicate User';
                    
78$_lang['user_edit_self_msg'] = 'You may need to log out and log in again after saving to fully update your information.</strong><br>Also, should you choose to generate a new password for yourself, it will be sent to you through email.';
                    
79$_lang['user_email'] = 'Email address';
                    
114$_lang['user_failedlogincount'] = 'Failed Logins';
                    
115$_lang['user_failedlogincount_desc'] = 'The number of times this user has failed to login by entering an incorrect password.';
                    
116$_lang['user_fax'] = 'Fax';
                    
165$_lang['user_logincount'] = 'Number of Logins';
                    
166$_lang['user_logincount_desc'] = 'The total number of times this User has logged in.';
                    
167$_lang['user_male'] = 'Mand';
                    
175$_lang['user_prevlogin'] = 'Last Login';
                    
176$_lang['user_prevlogin_desc'] = 'The last time that the user successfully logged in.';
                    
177$_lang['user_profile_err_nf'] = 'FATAL ERROR: User profile not found.';
                    
                
Move.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 364 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
3// +----------------------------------------------------------------------+
                    
4// | PHP version 5                                                        |
                    
5// +----------------------------------------------------------------------+
                    
9// | This LICENSE is in the BSD license style.                            |
                    
10// | http://www.opensource.org/licenses/bsd-license.php                   |
                    
11// |                                                                      |
                    
43//
                    
44// $Id: Move.php 12 2007-09-17 20:20:11Z killersoft $
                    
45//
                    
89 *                      // either 'r' or 'revision' may be used
                    
90 *  'force-log'     =>  true|false,
                    
91 *                      // force validity of log message source
                    
91 *                      // force validity of log message source
                    
92 *  'username'      =>  'Subversion repository login',
                    
93 *  'password'      =>  'Subversion repository password',
                    
                
File.php https://github.com/Enrise/Zend.git | PHP | 473 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage Storage
                    
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
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: File.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
26 * @subpackage Storage
                    
27 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
                    
28 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
190         */
                    
191        if (PHP_INT_SIZE > 4) {
                    
192            $str = $this->_fread(8);
                    
218         */
                    
219        if (PHP_INT_SIZE > 4) {
                    
220            settype($value, 'integer');
                    
                
UploadHandler.php https://github.com/zikula-modules/Reviews.git | PHP | 404 lines
                    
1<?php
                    
2/**
                    
45        $this->imageFileTypes = array('gif', 'jpeg', 'jpg', 'png', 'swf');
                    
46        $this->forbiddenFileTypes = array('cgi', 'pl', 'asp', 'phtml', 'php', 'php3', 'php4', 'php5', 'exe', 'com', 'bat', 'jsp', 'cfm', 'shtml');
                    
47        $this->allowedFileSizes = array('review' => array('coverUpload' => 102400));
                    
91        } catch (\Exception $e) {
                    
92            return LogUtil::registerError($e->getMessage());
                    
93        }
                    
96        if (!move_uploaded_file($fileData[$fieldName]['tmp_name'], $basePath . $fileName)) {
                    
97            return LogUtil::registerError(__('Error! Could not move your file to the destination folder.', $dom));
                    
98        }
                    
126            }
                    
127            return LogUtil::registerError(__('Error! No file found.', $dom));
                    
128        }
                    
138        if ($isValidExtension === false) {
                    
139            return LogUtil::registerError(__('Error! This file type is not allowed. Please choose another file format.', $dom));
                    
140        }
                    
                
version.html https://github.com/trevor/ImageMagick.git | HTML | 365 lines
                    
12  <meta name="application-url" content="http://www.imagemagick.org"></meta>
                    
13  <meta name="generator" content="PHP"></meta>
                    
14  <meta name="keywords" content="magickcore, c, api, for, imagemagick:, get, the, version, copyrights, ImageMagick, PerlMagick, image processing, OpenMP, software development library, image, photo, software, Magick++, MagickWand"></meta>
                    
74<a href="../../discourse-server">
                    
75  <img src="../../images/logo.jpg" alt="ImageMagick Logo" style="width: 123px; height: 118px; border: 0px; float: right;"></img></a>
                    
76<a href="../../index.html">
                    
148<div class="menu">
                    
149  <a title="Search" href="http://www.imagemagick.org/script/search.php">Search</a>
                    
150</div>
                    
                
File.php https://github.com/mwturnage/frapi-1.git | PHP | 473 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage Storage
                    
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
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
26 * @subpackage Storage
                    
27 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
28 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
190         */
                    
191        if (PHP_INT_SIZE > 4) {
                    
192            $str = $this->_fread(8);
                    
218         */
                    
219        if (PHP_INT_SIZE > 4) {
                    
220            settype($value, 'integer');
                    
                
user.inc.php https://github.com/goldsky/revolution.git | PHP | 202 lines
                    
18$_lang['extended_fields_msg'] = 'Edit any extended fields that are implemented here.';
                    
19$_lang['login_options'] = 'Login Options';
                    
20$_lang['minimum_role'] = 'Minimum Role';
                    
77$_lang['user_duplicate'] = 'Duplicate User';
                    
78$_lang['user_edit_self_msg'] = 'You may need to log out and log in again after saving to fully update your information.</strong><br>Also, should you choose to generate a new password for yourself, it will be sent to you through email.';
                    
79$_lang['user_email'] = 'Email address';
                    
114$_lang['user_failedlogincount'] = 'Failed Logins';
                    
115$_lang['user_failedlogincount_desc'] = 'The number of times this user has failed to login by entering an incorrect password.';
                    
116$_lang['user_fax'] = 'Fax';
                    
165$_lang['user_logincount'] = 'Number of Logins';
                    
166$_lang['user_logincount_desc'] = 'The total number of times this User has logged in.';
                    
167$_lang['user_male'] = 'Male';
                    
175$_lang['user_prevlogin'] = 'Last Login';
                    
176$_lang['user_prevlogin_desc'] = 'The last time that the user successfully logged in.';
                    
177$_lang['user_profile_err_nf'] = 'FATAL ERROR: User profile not found.';
                    
                
install-location.php https://github.com/nsswaga/OSClass.git | PHP | 418 lines
                    
10require_once LIB_PATH . 'osclass/db.php';
                    
11require_once LIB_PATH . 'osclass/classes/DAO.php';
                    
12require_once LIB_PATH . 'osclass/helpers/hDatabaseInfo.php';
                    
18
                    
19require_once LIB_PATH . 'osclass/Logger/Logger.php' ;
                    
20require_once LIB_PATH . 'osclass/Logger/LogOsclass.php' ;
                    
96    try{
                    
97        require_once LIB_PATH . 'phpmailer/class.phpmailer.php' ;
                    
98        $mail = new PHPMailer(true) ;
                    
157
                    
158        $cities_json = osc_file_get_contents('http://geo.osclass.org/geo.download.php?action=city&country=' . urlencode($c->name) . '&term=all');
                    
159        $cities = json_decode($cities_json);
                    
195        if( reportToOsclass() ){
                    
196            LogOsclassInstaller::instance()->error('Cannot get countries - ' . implode(',', $country) , __FILE__."::".__LINE__) ;
                    
197        }
                    
                
Value.php https://github.com/sitengine/sitengine.git | PHP | 401 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage Value
                    
18 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Value.php 12721 2008-11-20 18:21:58Z matthew $
                    
21 */
                    
24/** Zend_XmlRpc_Value_Exception */
                    
25require_once 'Zend/XmlRpc/Value/Exception.php';
                    
26
                    
27/** Zend_XmlRpc_Value_Scalar */
                    
28require_once 'Zend/XmlRpc/Value/Scalar.php';
                    
29
                    
30/** Zend_XmlRpc_Value_Base64 */
                    
31require_once 'Zend/XmlRpc/Value/Base64.php';
                    
32
                    
                
Value.php https://github.com/doctoralex/ch3-dev-preview.git | PHP | 401 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage Value
                    
18 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Value.php 12720 2008-11-20 18:20:20Z matthew $
                    
21 */
                    
24/** Zend_XmlRpc_Value_Exception */
                    
25require_once 'Zend/XmlRpc/Value/Exception.php';
                    
26
                    
27/** Zend_XmlRpc_Value_Scalar */
                    
28require_once 'Zend/XmlRpc/Value/Scalar.php';
                    
29
                    
30/** Zend_XmlRpc_Value_Base64 */
                    
31require_once 'Zend/XmlRpc/Value/Base64.php';
                    
32
                    
                
internal-link-aliases.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 310 lines
                    
1<?php
                    
2
                    
111			$alias_dir = $this->get_setting('alias_dir', 'go', null, true);
                    
112			$alias_url = get_bloginfo('url') . "/$alias_dir/$u_alias_to/";
                    
113			
                    
265				$h_from = esc_html($from);
                    
266				$to = get_bloginfo('url') . "/$alias_dir/$to/";
                    
267				
                    
288			if ($to = $alias['to'])
                    
289				if (suurl::equal(suurl::current(), get_bloginfo('url') . "/$alias_dir/$to/"))
                    
290					wp_redirect($alias['from']);
                    
297		
                    
298		$urlinfo = parse_url(get_bloginfo('url'));
                    
299		$path = $urlinfo['path'];
                    
                
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"
                    
57
                    
58    # Username mit dem sich der Admin einloggt
                    
59    "admin_username": "",
                    
72
                    
73    # Zugriff nur eingeloggte User, durch Apache's .htaccess-Auth erlauben?
                    
74    "only_auth_users": True,
                    
84
                    
85    # Anzahl der Log-Einträge die angezeigt werden sollen
                    
86    "last_log_count": 50,
                    
182    """
                    
183    Klasse die die Programmlogik zusammenstellt
                    
184    """
                    
                
pageTranslations.php https://gitlab.com/macitsimsek/fastsubtitle | PHP | 217 lines
                    
1<?php
                    
2
                    
26    'support_subtitle'      => 'Support Subtitle',
                    
27    'user_login'            => 'User Login',
                    
28    'sign_up'               => 'Sign Up',
                    
30    'change_password'       => 'Change Password',
                    
31    'logout'                => 'Logout',
                    
32    'view_profile'          => 'View Profile',
                    
                
grid.subgrid.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 298 lines
                    
4 * Tony Tomov tony@trirand.com
                    
5 * http://trirand.com/blog/ 
                    
6 * Dual licensed under the MIT and GPL licenses:
                    
6 * Dual licensed under the MIT and GPL licenses:
                    
7 * http://www.opensource.org/licenses/mit-license.php
                    
8 * http://www.gnu.org/licenses/gpl-2.0.html
                    
                
ZoomPrintController.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 392 lines
                    
29   private EdgesGraphComponent _edgesGraphComponent;
                    
30   private GraphPlugin _plugin;
                    
31   private GraphPrintable _printable;
                    
35
                    
36   public ZoomPrintController(ZoomerXmlBean zoomerXmlBean, PrintXmlBean printXmlBean, EdgesListener edgesListener, GraphPrintable printable, ISession session, GraphPlugin plugin)
                    
37   {
                    
40
                    
41      _panel = new ZoomPrintPanel(new GraphPluginResources(_plugin));
                    
42
                    
174      printJob.setPrintable(_printable, pf);
                    
175      if (printJob.printDialog())
                    
176      {
                    
226
                    
227            BufferedImage img = prepareImage(graphPixelSize.width, graphPixelSize.height);
                    
228            _printable.print(img.getGraphics(), pf, 0);
                    
                
display-debug.page.php https://github.com/evadne/wp-e-commerce.git | PHP | 365 lines
                    
1<?php
                    
2/**
                    
13	global $wpdb;
                    
14	$fixpage = get_option('siteurl').'/wp-admin/admin.php?page=wpsc-sales-logs&amp;subpage=upgrade-purchase-logs';
                    
15	?>
                    
49			<li>
                    
50				<a href='?page=wpsc-debug&amp;wpsc_debug_action=phpinfo'>Display phpinfo</a>
                    
51			</li>
                    
52			<li>
                    
53				<a href='<?php echo $fixpage; ?>'>Fix Purchaselogs</a>
                    
54			</li>
                    
55		</ul>
                    
56		<?php
                    
57		if (defined('WPSC_ADD_DEBUG_PAGE') && (constant('WPSC_ADD_DEBUG_PAGE') == true)) {
                    
79			</ul>
                    
80			<?php
                    
81		}
                    
                
Ini.php https://github.com/studioskylab/Docblox.git | PHP | 293 lines
                    
1<?php
                    
2/**
                    
16 * @package    Zend_Config
                    
17 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Ini.php 16201 2009-06-21 18:51:15Z thomas $
                    
20 */
                    
25 */
                    
26require_once 'Zend/Config.php';
                    
27
                    
31 * @package    Zend_Config
                    
32 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
33 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
105             */
                    
106            require_once 'Zend/Config/Exception.php';
                    
107            throw new Zend_Config_Exception('Filename is not set');
                    
                
LocalNamesEn.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 374 lines
                    
1<?php
                    
2$names = array(
                    
2$names = array(
                    
3/* Not in CLDR 2.0.1. Name Gheg Albanian used by Ethnologue:
                    
4 * http://www.ethnologue.com/show_language.asp?code=aln
                    
9/* Not in CLDR 2.0.1. Arabic language
                    
10 * http://www.ethnologue.com/show_language.asp?code=arq
                    
11 * Added 2009-08-27.
                    
15/* Not in CLDR 2.0.1. Arabic language
                    
16 * http://www.ethnologue.com/show_language.asp?code=arz
                    
17 * Added 2008-04-12.
                    
21/* Not in CLDR 2.0.1. Arabic language
                    
22 * http://www.ethnologue.com/show_language.asp?code=ary
                    
23 * Added 2009-08-23.
                    
26
                    
27/* Not in CLDR 2.0.1. Name Bavarian used by Ethnologue:
                    
28 * http://www.ethnologue.com/show_language.asp?code=bar
                    
                
SnsClient.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 378 lines
                    
182    /**
                    
183     * Reloads/compiles a PHP file.
                    
184     * @param string $filename
                    
191    /**
                    
192     * Reloads/compiles a PHP file.
                    
193     * @param string[] $filenames
                    
303        $message['actions'] = $this->messages;
                    
304        $message['blog_id'] = w3_get_blog_id();
                    
305        $message['host'] = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : null;
                    
315            $this->_log($origin . ' sending message ' . $v);
                    
316            $this->_log('Host: ' . $message['host']);
                    
317            if (isset($_SERVER['REQUEST_URI']))
                    
317            if (isset($_SERVER['REQUEST_URI']))
                    
318                $this->_log('URL: ' . $_SERVER['REQUEST_URI']);
                    
319            if (function_exists('current_filter'))
                    
                
class-popup-public.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 407 lines
                    
1<?php
                    
2// Load dependencies.
                    
2// Load dependencies.
                    
3require_once PO_INC_DIR . 'class-popup-base.php';
                    
4
                    
230	 * PopUp data is loaded via a normal WordPress ajax request, directed at
                    
231	 * the admin-ajax.php handler.
                    
232	 *
                    
237
                    
238		if ( ! in_array( $pagenow, array( 'wp-login.php', 'wp-register.php' ) ) ) {
                    
239			// Data is loaded via a normal WordPress ajax request.
                    
239			// Data is loaded via a normal WordPress ajax request.
                    
240			$this->script_data['ajaxurl'] = admin_url( 'admin-ajax.php' );
                    
241			$this->script_data['ajax_data']['orig_request_uri'] = $_SERVER['REQUEST_URI'];
                    
261
                    
262		if ( ! in_array( $pagenow, array( 'wp-login.php', 'wp-register.php' ) ) ) {
                    
263			/*
                    
                
Extracted.php https://github.com/grjones/qframe.git | PHP | 274 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage Fonts
                    
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
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Extracted.php 20893 2010-02-03 22:59:25Z yoshida@zend.co.jp $
                    
21 */
                    
24/** @see Zend_Pdf_Resource_Font */
                    
25require_once 'Zend/Pdf/Resource/Font.php';
                    
26
                    
34 * @subpackage Fonts
                    
35 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
36 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
78                    // Multiple descendant fonts are not supported
                    
79                    require_once 'Zend/Pdf/Exception.php';
                    
80                    throw new Zend_Pdf_Exception(self::TYPE_NOT_SUPPORTED);
                    
                
php-crypt_r.cpp https://gitlab.com/iranjith4/hhvm | C++ | 381 lines
                    
3   +----------------------------------------------------------------------+
                    
4   | PHP Version 7                                                        |
                    
5   +----------------------------------------------------------------------+
                    
5   +----------------------------------------------------------------------+
                    
6   | Copyright (c) 1997-2015 The PHP Group                                |
                    
7   +----------------------------------------------------------------------+
                    
7   +----------------------------------------------------------------------+
                    
8   | This source file is subject to version 3.01 of the PHP license,      |
                    
9   | that is bundled with this package in the file LICENSE, and is        |
                    
10   | available through the world-wide-web at the following url:           |
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
14   | license@php.net so we can mail you a copy immediately.               |
                    
15   +----------------------------------------------------------------------+
                    
                
SensorRunner.php https://gitlab.com/Drulenium-bot/monitoring | PHP | 351 lines
                    
1<?php
                    
2/**
                    
213  /**
                    
214   * Log results if needed.
                    
215   *
                    
218   */
                    
219  protected function logResults(array $results) {
                    
220    foreach ($results as $result) {
                    
239  /**
                    
240   * Checks if sensor results should be logged.
                    
241   *
                    
249   * @return bool
                    
250   *   TRUE if the result should be logged, FALSE if not.
                    
251   */
                    
252  protected function needsLogging($result, $old_status = NULL, $new_status = NULL) {
                    
253    $log_activity = $result->getSensorConfig()->getSetting('result_logging', FALSE);
                    
254
                    
                
Application.php https://gitlab.com/rsilveira1987/Expresso | PHP | 374 lines
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Application.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
20 */
                    
24 * @package    Zend_Application
                    
25 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
26 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
60     *
                    
61     * Initialize application. Potentially initializes include_paths, PHP 
                    
62     * settings, and bootstrap class.
                    
72
                    
73        require_once 'Zend/Loader/Autoloader.php';
                    
74        $this->_autoloader = Zend_Loader_Autoloader::getInstance();
                    
127        if (!empty($options['phpsettings'])) {
                    
128            $this->setPhpSettings($options['phpsettings']);
                    
129        }
                    
                
Cloud.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 410 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage Cloud
                    
18 * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
25 */
                    
26#require_once 'Zend/Tag/Item.php';
                    
27
                    
30 * @package    Zend_Tag
                    
31 * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
                    
32 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
152            } else {
                    
153                #require_once 'Zend/Tag/Cloud/Exception.php';
                    
154                throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
                    
174        } else {
                    
175            #require_once 'Zend/Tag/Cloud/Exception.php';
                    
176            throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
                    
                
cat_contractor_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 339 lines
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/catalog/prolog.php");
                    
4global $APPLICATION;
                    
13
                    
14if (!($USER->CanDoOperation('catalog_read') || $USER->CanDoOperation('catalog_store')))
                    
15	$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
                    
20{
                    
21	require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
                    
22
                    
25
                    
26	require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php");
                    
27	die();
                    
121
                    
122require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
                    
123$str_ACTIVE = "Y";
                    
338
                    
339<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php");?>
                    
                
QueryPluginBase.php https://gitlab.com/reasonat/test8 | PHP | 353 lines
                    
1<?php
                    
2
                    
92   *
                    
93   * This signature is something that can be used when perusing query logs to
                    
94   * discern where particular queries might be coming from.
                    
156   *   Either 'AND' or 'OR'. All items within this group will be added
                    
157   *   to the WHERE clause with this logical operator.
                    
158   * @param $group
                    
                
mail.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 406 lines
                    
1<?php
                    
2class Mail {
                    
95		$header .= 'Return-Path: ' . $this->from . $this->newline;
                    
96		$header .= 'X-Mailer: PHP/' . phpversion() . $this->newline;
                    
97		//$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
                    
158			} else {
                    
159				if (substr(PHP_OS, 0, 3) != 'WIN') {
                    
160					socket_set_timeout($handle, $this->timeout, 0);
                    
203
                    
204					fputs($handle, 'AUTH LOGIN' . $this->crlf);
                    
205
                    
216					if (substr($reply, 0, 3) != 334) {
                    
217						trigger_error('Error: AUTH LOGIN not accepted from server!');
                    
218						exit();						
                    
358					foreach ($results as $result) {
                    
359						if (substr(PHP_OS, 0, 3) != 'WIN') {
                    
360							fputs($handle, $result . $this->crlf);
                    
                
general.php https://gitlab.com/digaotinfo/agenciaabear.com.br | PHP | 225 lines
                    
19            <label class="kopa-label"><?php _e('Top margin:', kopa_get_domain()); ?> </label>
                    
20            <input type="text" value="<?php echo get_option('kopa_theme_options_logo_margin_top'); ?>" id="kopa_theme_options_logo_margin_top" name="kopa_theme_options_logo_margin_top" class=" kopa-short-input">
                    
21            <label class="kopa-label"><?php _e('px', kopa_get_domain()); ?></label>
                    
25            <label class="kopa-label"><?php _e('Left margin:', kopa_get_domain()); ?> </label>
                    
26            <input type="text" value="<?php echo get_option('kopa_theme_options_logo_margin_left'); ?>" id="kopa_theme_options_logo_margin_left" name="kopa_theme_options_logo_margin_left" class=" kopa-short-input">
                    
27            <label class="kopa-label"><?php _e('px', kopa_get_domain()); ?></label>
                    
31            <label class="kopa-label"><?php _e('Right margin:', kopa_get_domain()); ?> </label>
                    
32            <input type="text" value="<?php echo get_option('kopa_theme_options_logo_margin_right'); ?>" id="kopa_theme_options_logo_margin_right" name="kopa_theme_options_logo_margin_right" class=" kopa-short-input">
                    
33            <label class="kopa-label"><?php _e('px', kopa_get_domain()); ?></label>
                    
139                ?>
                    
140                <label  for="<?php echo $kopa_header_headline_status_id; ?>" class="kopa-label-for-radio-button"><input type="radio" value="<?php echo esc_attr( $value ); ?>" id="<?php echo $kopa_header_headline_status_id; ?>" name="<?php echo $kopa_header_headline_name; ?>" <?php echo ($value == get_option($kopa_header_headline_name, 'show')) ? 'checked="checked"' : ''; ?>><?php echo $label; ?></label>
                    
141                <?php
                    
190                ?>
                    
191                <label  for="<?php echo $kopa_breadcrumb_id; ?>" class="kopa-label-for-radio-button"><input type="radio" value="<?php echo esc_attr( $value ); ?>" id="<?php echo $kopa_breadcrumb_id; ?>" name="<?php echo $kopa_breadcrumb_status_name; ?>" <?php echo ($value == get_option($kopa_breadcrumb_status_name, 'show')) ? 'checked="checked"' : ''; ?>><?php echo $label; ?></label>
                    
192                <?php
                    
                
tracking.inc.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 237 lines
                    
38$langLoginsTitleMonthColumn = "Maand";
                    
39$langLoginsTitleCountColumn = "Aantal logins";
                    
40$langToolTitleToolnameColumn = "Modulenaam";
                    
72$langThisday = "Vandaag";
                    
73$langLogins = "Logins";
                    
74$langLoginsExplaination = "Lijst van de laatste logins met de modules die je bezocht hebt:";
                    
79$langLoginTitleCountColumn = "Bezoeken";
                    
80$langLoginsAndAccessTools = "Logins en toegang tot modules";
                    
81$langWorkUploads = "Ingediende taken";
                    
135$langCourseWithoutAccess = "Niet gebruikte cursussen";
                    
136$langLoginWithoutAccess = "Niet gebruikte log-ins";
                    
137$langAllRight = "Geen speciale gevallen";
                    
216$RemindInactiveUser = "Inactieve gebruiker herinneren";
                    
217$FirstLogin = "Eerste login";
                    
218$AccessDetails = "Toegangsdetails";
                    
                
LoggerLoggingEvent.php https://github.com/samar-tmr/MyVenture.git | PHP | 378 lines
                    
24 * @version $Revision: 1059292 $
                    
25 * @package log4php
                    
26 */
                    
95	 * The name of thread in which this logging event was generated.
                    
96	 * log4php saves here the process id via {@link PHP_MANUAL#getmypid getmypid()} 
                    
97	 * @var mixed
                    
113	/**
                    
114	 * @var LoggerThrowableInformation log4php internal representation of throwable
                    
115	 */
                    
124	* @param string $fqcn name of the caller class.
                    
125	* @param mixed $logger The {@link Logger} category of this event or the logger name.
                    
126	* @param LoggerLevel $priority The level of this event.
                    
285				// $this->logger might be null or an instance of Logger or RootLogger
                    
286				// But in contrast to log4j, in log4php there is only have one LoggerHierarchy so there is
                    
287				// no need figure out which one is $this->logger part of.
                    
                
Extracted.php https://github.com/Doap/iCms---intelligent-Content-management-system.git | PHP | 274 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage Fonts
                    
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
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Extracted.php 20866 2010-02-03 05:30:07Z yoshida@zend.co.jp $
                    
21 */
                    
24/** @see Zend_Pdf_Resource_Font */
                    
25require_once 'Zend/Pdf/Resource/Font.php';
                    
26
                    
34 * @subpackage Fonts
                    
35 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
36 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
78                    // Multiple descendant fonts are not supported
                    
79                    require_once 'Zend/Pdf/Exception.php';
                    
80                    throw new Zend_Pdf_Exception(self::TYPE_NOT_SUPPORTED);
                    
                
configure-vhosts.html https://gitlab.com/haris4445/techarena | HTML | 251 lines
                    
54              <li class="active"><a href="/dashboard/howto.html">HOW-TO Guides</a></li>
                    
55              <li class=""><a target="_blank" href="/dashboard/phpinfo.php">PHPInfo</a></li>
                    
56              <li class=""><a href="/phpmyadmin/">phpMyAdmin</a></li>
                    
230              <ul class="inline-list">
                    
231                <li><a href="https://www.apachefriends.org/blog.html">Blog</a></li>
                    
232                <li><a href="https://www.apachefriends.org/privacy_policy.html">Privacy Policy</a></li>
                    
234<a target="_blank" href="http://www.fastly.com/">                    CDN provided by
                    
235                    <img width="48" data-2x="/dashboard/images/fastly-logo@2x.png" src="/dashboard/images/fastly-logo.png" />
                    
236</a>                </li>
                    
                
config.values.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 277 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
6 *
                    
7 * @package PhpMyAdmin
                    
8 */
                    
9
                    
10if (!defined('PHPMYADMIN')) {
                    
11    exit;
                    
36$cfg_db['MemoryLimit'] = 'short_string';
                    
37$cfg_db['NavigationLogoLinkWindow'] = array('main', 'new');
                    
38$cfg_db['NavigationTreeDefaultTabTable'] = array(
                    
222/**
                    
223 * Basic validator assignments (functions from libraries/config/Validator.php
                    
224 * and 'validators' object in js/config.js)
                    
244    'LimitChars' => 'validatePositiveNumber',
                    
245    'LoginCookieValidity' => 'validatePositiveNumber',
                    
246    'LoginCookieStore' => 'validateNonNegativeNumber',
                    
                
actions.class.php https://github.com/dada888/phpcollab3.git | PHP | 291 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * This file is part of the phpCollab3 package.
                    
4 * (c) 2009 Ideato s.r.l. <phpcollab@ideato.it>
                    
10 *
                    
11 * @package    phpCollab3
                    
12 * @subpackage idProjectManagementPlugin Modules
                    
17 *
                    
18 * @package    phpCollab3
                    
19 * @subpackage idProjectManagementPlugin Modules
                    
48    $this->project = Doctrine::getTable('Project')->getProjectMilestonesAndUsers($request->getParameter('id'));
                    
49    $this->recent_activities = $this->recent_activities = Doctrine::getTable('EventLog')->retrieveEventsOfTheLastDaysByProjectsIds(3, array($request->getParameter('id')), 'LogDecorator');
                    
50  }
                    
                
OnlineTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 289 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage UnitTests
                    
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
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: OnlineTest.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
25 */
                    
26require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'OnlineTestCase.php';
                    
27/**
                    
29 */
                    
30require_once 'Zend/Ldap/Node.php';
                    
31
                    
35 * @subpackage UnitTests
                    
36 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
                    
37 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
                
lib.php https://bitbucket.org/ngmares/moodle.git | PHP | 327 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
24 */
                    
25require_once($CFG->dirroot . '/repository/lib.php');
                    
26require_once($CFG->libdir.'/flickrlib.php');
                    
58
                    
59        $this->flickr = new phpFlickr($this->api_key, $this->secret, $this->token);
                    
60
                    
75     */
                    
76    public function check_login() {
                    
77        return !empty($this->token);
                    
83     */
                    
84    public function logout() {
                    
85        set_user_preference($this->setting, '');
                    
88        $this->nsid  = '';
                    
89        return $this->print_login();
                    
90    }
                    
                
configcheck.inc.php https://bitbucket.org/orchdork10159/dnsman.ly.git | PHP | 103 lines
                    
1<?php
                    
2/**
                    
44
                    
45// $_lang['configcheck_errorpage_unavailable_msg'] = 'This means that your Error page is not accessible to normal web surfers or does not exist. This can lead to a recursive looping condition and many errors in your site logs. Make sure there are no webuser groups assigned to the page.';
                    
46$_lang['configcheck_errorpage_unavailable_msg'] = 'To znamená, že chybová stránka není dostupná pro návštěvníky webu nebo neexistuje. To může vést k rekurzivní smyčce a mnoha chybám v chybových zprávách. Ujistěte se, že tu není žádná skupina webových uživatelů přiřazená k této stránce.';
                    
77
                    
78// $_lang['configcheck_register_globals'] = 'register_globals is set to ON in your php.ini configuration file';
                    
79$_lang['configcheck_register_globals'] = 'register_globals v php.ini je nastaveno na ON';
                    
89
                    
90// $_lang['configcheck_unauthorizedpage_unavailable_msg'] = 'This means that your Unauthorized page is not accessible to normal web surfers or does not exist. This can lead to a recursive looping condition and many errors in your site logs. Make sure there are no webuser groups assigned to the page.';
                    
91$_lang['configcheck_unauthorizedpage_unavailable_msg'] = 'To znamená, že stránka o neautorizovaném přístupu není dostupná pro návštěvníky webu nebo neexistuje. To může vést k rekurzivní smyčce a mnoha chybám v chybových zprávách. Ujistěte se, že tu není žádná skupina webových uživatelů přiřazená k této stránce.';
                    
                
lang.no.php https://bitbucket.org/unixcrab/colab-lims.git | PHP | 255 lines
                    
1<?php
                    
2//include_once("constants.php");
                    
121$langdata['account_admin'] = "Profil";
                    
122$langdata['login'] = "Logg inn";
                    
123$langdata['logout'] = "Logg ut";
                    
125$langdata['password'] = "Passord";
                    
126$langdata['login_failed'] = "Pålogging mislyktes. Vennligst sjekk ditt brukernavn og passord.";
                    
127$langdata['profile_details'] = "Mine detaljer";
                    
248// audit
                    
249$langdata['audit_logs'] = "Revisjon logg";
                    
250$langdata['audit_object_created'] = "Opprettet";
                    
                
Filesystem.php https://github.com/mamayoleksandr/xtbackup.git | PHP | 317 lines
                    
1<?php
                    
2class Storage_Filesystem implements Storage_Interface
                    
55        $this->_baseDir = rtrim($this->_baseDir, '/'). '/';
                    
56        $this->_isWindows = (strpos(strtolower(php_uname('s')), 'win') !== false);
                    
57        $this->_fileStat = new Storage_Filesystem_FileStat();
                    
64    {
                    
65        $this->_out->logNotice(">>>init Filesystem driver as $myrole");
                    
66        $this->_asRemote = $myrole==Core_Engine::ROLE_REMOTE;
                    
82
                    
83        $this->_out->logNotice(">>>refresh from local file system");
                    
84        
                    
165            //initialize windows's FileSystemObject
                    
166            /** @noinspection PhpUndefinedClassInspection, PhpUndefinedConstantInspection */
                    
167            $fso = new COM('Scripting.FileSystemObject', null, CP_UTF8);
                    
176            //see Scripting.FileSystemObject on http://msdn.microsoft.com
                    
177            /** @noinspection PhpUndefinedMethodInspection */
                    
178            $folder = $fso->GetFolder($curDir);
                    
                
Editor.php https://github.com/Shreef/zf2.git | PHP | 601 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage Form_Element
                    
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
                    
36 * @subpackage Form_Element
                    
37 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
38 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
                
Abstract.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 350 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage Transport
                    
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
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
26 */
                    
27// require_once 'Zend/Mime.php';
                    
28
                    
36 * @subpackage Transport
                    
37 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
38 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
186             */
                    
187            // require_once 'Zend/Mail/Transport/Exception.php';
                    
188            throw new Zend_Mail_Transport_Exception('Missing Zend_Mail object in _mail property');
                    
                
Barcode.php https://github.com/mrbanzai/zf2.git | PHP | 323 lines
                    
1<?php
                    
2/**
                    
16 * @package    Zend_Barcode
                    
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
                    
36 * @package    Zend_Barcode
                    
37 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
                    
38 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
                
Bug36845Test.php https://github.com/joshbhamilton/sugarcrm_dev.git | PHP | 222 lines
                    
31 * these Appropriate Legal Notices must retain the display of the "Powered by
                    
32 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
                    
33 * technical reasons, the Appropriate Legal Notices must display the words
                    
49            $this->has_custom_unified_search_modules = true;
                    
50            copy('cache/modules/unified_search_modules.php', 'cache/modules/unified_search_modules.php.bak');
                    
51        }
                    
159        {
                    
160            copy('cache/modules/unified_search_modules.php.bak', 'cache/modules/unified_search_modules.php');
                    
161            unlink('cache/modules/unified_search_modules.php.bak');
                    
201        $usa->buildCache();
                    
202        $this->assertTrue(file_exists("cache/modules/unified_search_modules.php"), 'Assert that we have a unified_search_modules.php file');
                    
203        include('cache/modules/unified_search_modules.php');
                    
219        $usa->saveGlobalSearchSettings();
                    
220        $this->assertTrue(file_exists('custom/modules/unified_search_modules_display.php'), 'Assert that unified_search_modules_display.php file was created');        
                    
221    }
                    
                
ReporteEgresoView.php https://bitbucket.org/raboit/sisfac.git | PHP | 286 lines
                    
1<?php
                    
2
                    
19                        $default_border = array(
                    
20                            'style' => PHPExcel_Style_Border::BORDER_THIN,
                    
21                            'color' => array('rgb'=>'000000')
                    
31                                                    'fill' => array(
                    
32                                'type' => PHPExcel_Style_Fill::FILL_SOLID,
                    
33                                'color' => array('rgb'=>'819FF7'),
                    
186//                                CUANDO LA INFORMACION ESTA LISTA PARA SER IMPRESA
                    
187//                                SE APLICA LA SIGUIENTE LOGICA PARA IMPRIMIR INFORMES
                    
188//                                QUE NO SE IMPRIMA DE FORMA REPETIDA LOS PROYECTOS
                    
245				foreach($this->columns as $n=>$column)
                    
246					self::$objPHPExcel->getActiveSheet()->getColumnDimension($this->columnName($n+1))->setAutoSize(true);
                    
247			
                    
248			//create writer for saving
                    
249			$objWriter = PHPExcel_IOFactory::createWriter(self::$objPHPExcel, $this->exportType);
                    
250			if(!$this->stream)
                    
                
index.py https://gitlab.com/xiaok/SaltAdmin | Python | 237 lines
                    
80            Expiry = 0 # 不记住登录,设置数据库里存储的token的过期时间与登录时间相等
                    
81        #db.query('''update users set loginhost="%s",logindate="%s" where id="%s"''' % (LoginHost,LoginDate,SID))
                    
82        db.query('''insert into login_logs (uid,ip,location,agent,token,expiry) values ("%s","%s","%s","%s","%s",NOW() + INTERVAL %d SECOND)''' % (SID,LoginHost,Location,Agent,Token,Expiry))
                    
82        db.query('''insert into login_logs (uid,ip,location,agent,token,expiry) values ("%s","%s","%s","%s","%s",NOW() + INTERVAL %d SECOND)''' % (SID,LoginHost,Location,Agent,Token,Expiry))
                    
83        db.query('''update users set loginfo=(select id from login_logs where uid="%s" and ip="%s" and token="%s" and  status="yes" order by id desc limit 1) where id="%s"''' % (SID,LoginHost,Token,SID))
                    
84    # 写入token到session,存储于服务器端
                    
123                g = db.query('''
                    
124                    select U.id,U.username,U.nickname,U.loginfo,L.id as LID,L.ip,L.date from login_logs as L
                    
125                    left join users as U on L.uid=U.id
                    
138                if d.loginfo != d.LID:
                    
139                    g2 = db.query('''select L.ip,L.date from users as U left join login_logs as L on U.loginfo=L.id where U.id="%s"''' % uid)
                    
140                    d = g2[0]
                    
166        try:
                    
167            getSQL = db.query('''select u.id,u.username,u.password,u.nickname,u.status,L.ip,L.location,L.date from users as u left join login_logs as L on u.loginfo=L.id where username="%s" and password=md5("%s")''' % (getPost.username,getPost.password))
                    
168        except:
                    
                
ConfigListener.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 383 lines
                    
1<?php
                    
2/**
                    
5 * @link      http://github.com/zendframework/zf2 for the canonical source repository
                    
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
                    
7 * @license   http://framework.zend.com/license/new-bsd New BSD License
                    
                
OnlineTest.php https://bitbucket.org/ksekar/campus.git | PHP | 289 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage UnitTests
                    
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
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: OnlineTest.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
25 */
                    
26require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'OnlineTestCase.php';
                    
27/**
                    
29 */
                    
30require_once 'Zend/Ldap/Node.php';
                    
31
                    
35 * @subpackage UnitTests
                    
36 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
                    
37 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
                
Module.php https://bitbucket.org/buonaparte/zfalbum.git | PHP | 281 lines
                    
1<?php
                    
2
                    
15use User\EventManager\UserMapperListenerAggregate;
                    
16use User\Form\LoginUser;
                    
17use User\Form\RegisterUser;
                    
58    {
                    
59        return include __DIR__.'/../../config/module.config.php';
                    
60    }
                    
124                },
                    
125                'User\Form\LoginUser' => function (FormElementManager $fm) {
                    
126                    /** @var $authAdapter MapperAdapter */
                    
128
                    
129                    return new LoginUser($authAdapter);
                    
130                }
                    
                
HelixTypesIdCatalog.php https://bitbucket.org/xsngroup/estadisticas.git | PHP | 331 lines
                    
16 */
                    
17require_once "lib/db/Catalog.php";
                    
18require_once "application/models/beans/HelixTypesId.php";
                    
33 */
                    
34class HelixTypesIdCatalog extends Catalog
                    
35{
                    
44    /**
                    
45     * Método para obtener la instancia del catálogo
                    
46     * @return HelixTypesIdCatalog
                    
57    /**
                    
58     * Constructor de la clase HelixTypesIdCatalog
                    
59     * @return HelixTypesIdCatalog
                    
318	/* (non-PHPdoc)
                    
319     * @see Catalog::Catalog()
                    
320     */
                    
                
style.css https://bitbucket.org/zachisit/zachis.it-m.git | CSS | 374 lines
                    
5Author: Cory Miller
                    
6Description: Clean Copy 2 Column is a clean blue, grey and white theme designed for blog content and sharp simplicity.
                    
7The CSS, XHTML and design is released under GPL: 
                    
7The CSS, XHTML and design is released under GPL: 
                    
8http://www.opensource.org/licenses/gpl-license.php
                    
9Header photo by Ville Miettinen, used with permission
                    
264#portfolio {margin-top:400px;height:300px;background:pink;width:100%;float:left;}
                    
265.logo_one {font-weight:normal;font-size:24px;font-family:arial;color:#ff6600;}
                    
266.logo_two {font-weight:normal;font-style:italic;font-family:times new roman;font-size:28px;color:#FF6600;}
                    
                
AbstractInput.php https://github.com/Proudio-Interactive/phpUnderControl.git | PHP | 368 lines
                    
93 */
                    
94abstract class phpucAbstractInput implements phpucInputI
                    
95{
                    
169            phpucChartI::TYPE_PIE,
                    
170            phpucChartI::TYPE_LINE,
                    
171            phpucChartI::TYPE_DOT,
                    
345     * the fetched data before it is given to the graph object. This can be very
                    
346     * usefull in all cases where logs don't have the required format.
                    
347     *
                    
347     *
                    
348     * @param array(string=>array) $logs Fetched log data.
                    
349     *
                    
351     */
                    
352    protected function postProcessLog( array $logs )
                    
353    {
                    
                
PathCheckoutCommandTest.java https://bitbucket.org/cofarrell/jgit.git | Java | 309 lines
                    
2 * Copyright (C) 2011, Kevin Sawicki <kevin@github.com>
                    
3 * and other copyright owners as documented in the project's IP log.
                    
4 *
                    
7 * accompanies this distribution, is reproduced below, and is
                    
8 * available at http://www.eclipse.org/org/documents/edl-v10.php
                    
9 *
                    
                
store.php https://github.com/dogma/moodle.git | PHP | 362 lines
                    
24
                    
25namespace logstore_legacy\log;
                    
26
                    
28
                    
29class store implements \tool_log\log\store, \core\log\sql_reader {
                    
30    use \tool_log\helper\store,
                    
153    public function get_log_event($data) {
                    
154        return \logstore_legacy\event\legacy_logged::restore_legacy($data);
                    
155    }
                    
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) {
                    
261        try {
                    
262            $DB->insert_record_raw('log', $log, false);
                    
263        } catch (\dml_exception $e) {
                    
                
Ini.php https://github.com/orchestra-io/sample-openx.git | PHP | 293 lines
                    
1<?php
                    
2/**
                    
16 * @package    Zend_Config
                    
17 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Ini.php 14667 2009-04-05 09:18:21Z rob $
                    
20 */
                    
25 */
                    
26require_once 'Zend/Config.php';
                    
27
                    
31 * @package    Zend_Config
                    
32 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
                    
33 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
105             */
                    
106            require_once 'Zend/Config/Exception.php';
                    
107            throw new Zend_Config_Exception('Filename is not set');
                    
                
actionlogs.php https://bitbucket.org/ke2083/transfans.co.uk-website.git | PHP | 445 lines
                    
171		$data->actionlogs                       = new StdClass;
                    
172		$data->actionlogs->actionlogsNotify     = $values->notify;
                    
173		$data->actionlogs->actionlogsExtensions = $values->extensions;
                    
328			{
                    
329				$values[]  = $this->db->quote(json_encode($user['actionlogs']['actionlogsExtensions']));
                    
330				$columns[] = 'extensions';
                    
340			// Update preferences.
                    
341			$values = array($this->db->quoteName('notify') . ' = ' . (int) $user['actionlogs']['actionlogsNotify']);
                    
342
                    
342
                    
343			if (isset($user['actionlogs']['actionlogsExtensions']))
                    
344			{
                    
344			{
                    
345				$values[] = $this->db->quoteName('extensions') . ' = ' . $this->db->quote(json_encode($user['actionlogs']['actionlogsExtensions']));
                    
346			}
                    
                
default_social_twitter_bootstrap.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 215 lines
                    
157							<textarea name="integrations_twitter_microblog_hashes" class="inputbox half-width" style="margin-bottom: 10px;height: 75px;"><?php echo $this->config->get( 'integrations_twitter_microblog_hashes' );?></textarea>
                    
158							<div><?php echo JText::_( 'COM_EASYBLOG_INTEGRATIONS_TWITTER_MICROBLOGGING_SEARCH_HASHTAGS_INSTRUCTIONS' ); ?></div>
                    
159						</div>
                    
164						<span class="editlinktip">
                    
165							<?php echo JText::_( 'COM_EASYBLOG_INTEGRATIONS_TWITTER_MICROBLOGGING_CATEGORY' ); ?>
                    
166						</span>
                    
170							<div class="tip"><i></i><?php echo JText::_('COM_EASYBLOG_INTEGRATIONS_TWITTER_MICROBLOGGING_CATEGORY_DESC' ); ?></div>
                    
171							<?php echo EasyBlogHelper::populateCategories('', '', 'select', 'integrations_twitter_microblog_category', $this->config->get( 'integrations_twitter_microblog_category') , true); ?>
                    
172						</div>
                    
182						<div class="has-tip">
                    
183							<div class="tip"><i></i><?php echo JText::_('COM_EASYBLOG_INTEGRATIONS_TWITTER_MICROBLOGGING_PUBLISH_STATE_DESC' ); ?></div>
                    
184							<?php
                    
199						<span class="editlinktip">
                    
200							<?php echo JText::_( 'COM_EASYBLOG_INTEGRATIONS_TWITTER_MICROBLOGGING_FRONTPAGE' ); ?>
                    
201						</span>
                    
                
tag.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 338 lines
                    
17
                    
18class EasyBlogTableTag extends EasyBlogTable
                    
19{
                    
173			// @rule: Integrations with EasyDiscuss
                    
174			EasyBlogHelper::getHelper( 'EasyDiscuss' )->log( 'easyblog.delete.tag' , $this->created_by , JText::sprintf( 'COM_EASYBLOG_EASYDISCUSS_HISTORY_NEW_TAG' , $this->title ) );
                    
175			EasyBlogHelper::getHelper( 'EasyDiscuss' )->addPoint( 'easyblog.delete.tag' , $this->created_by );
                    
209		{
                    
210			EasyBlogHelper::activityLog( $activity );
                    
211		}
                    
299			// @rule: Integrations with EasyDiscuss
                    
300			EasyBlogHelper::getHelper( 'EasyDiscuss' )->log( 'easyblog.new.tag' , $my->id , JText::sprintf( 'COM_EASYBLOG_EASYDISCUSS_HISTORY_NEW_TAG' , $this->title ) );
                    
301			EasyBlogHelper::getHelper( 'EasyDiscuss' )->addPoint( 'easyblog.new.tag' , $my->id );
                    
317			{
                    
318				AlphaUserPointsHelper::newpoints( 'plgaup_easyblog_add_tag', '', 'easyblog_add_tag_' . $this->id, JText::sprintf('COM_EASYBLOG_AUP_TAG_ADDED', $this->title) );
                    
319			}
                    
                
Base.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 274 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage StrikeIron
                    
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
                    
26 */
                    
27require_once 'Zend/Service/StrikeIron/Decorator.php';
                    
28
                    
33 * @subpackage StrikeIron
                    
34 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
35 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
67             */
                    
68            require_once 'Zend/Service/StrikeIron/Exception.php';
                    
69            throw new Zend_Service_StrikeIron_Exception('SOAP extension is not enabled');
                    
104             */
                    
105            require_once 'Zend/Service/StrikeIron/Exception.php';
                    
106            throw new Zend_Service_StrikeIron_Exception($message, $e->getCode(), $e);
                    
                
wp_loaded.php https://gitlab.com/najomie/fit-hippie | PHP | 281 lines
                    
161								));
                    
162								//$logger and call_user_func($logger, sprintf(__('Import #%s is not triggered. Request skipped.', 'wp_all_import_plugin'), $id));	
                    
163							}
                    
172								
                    
173								$log_storage = (int) PMXI_Plugin::getInstance()->getOption('log_storage');
                    
174
                    
180								if ($historyLogs->count() and $historyLogs->count() >= $log_storage ){
                    
181									$logsToRemove = $historyLogs->count() - $log_storage;
                    
182									foreach ($historyLogs as $i => $file){																					
                    
200									$wp_uploads = wp_upload_dir();	
                    
201									$log_file = wp_all_import_secure_file( $wp_uploads['basedir'] . DIRECTORY_SEPARATOR . PMXI_Plugin::LOGS_DIRECTORY, $history_log->id ) . DIRECTORY_SEPARATOR . $history_log->id . '.html';
                    
202									if ( @file_exists($log_file) ) wp_all_import_remove_source($log_file, false);	
                    
239									// $logger and call_user_func($logger, sprintf(__('Records Count %s', 'wp_all_import_plugin'), (int) $import->count));
                    
240									// $logger and call_user_func($logger, sprintf(__('Records Processed %s', 'wp_all_import_plugin'), (int) $import->queue_chunk_number));
                    
241
                    
                
Js.php https://github.com/gryzz/crystal_magento.git | PHP | 202 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) 2010 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
187
                    
188                'Your session has been expired, you will be relogged in now.' => $this->__('Your session has been expired, you will be relogged in now.'),
                    
189                'Incorrect credit card expiration date' => $this->__('Incorrect credit card expiration date'),
                    
                
controller.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 315 lines
                    
1<?php
                    
2
                    
101            if (!$u->isRegistered()) {
                    
102                $this->redirect('/login');
                    
103            }
                    
                
orderdocument.php https://gitlab.com/neuser/bitrix-core | PHP | 621 lines
                    
1<?php
                    
2namespace Bitrix\Sale\Exchange\OneC;
                    
493						),
                    
494						'CATALOG_ID' => array(
                    
495							'TYPE' => 'string'
                    
                
class.php https://gitlab.com/neuser/bitrix-core | PHP | 658 lines
                    
1<?php
                    
2if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die();
                    
3
                    
12
                    
13require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/classes/general/wizard.php"); //Wizard API
                    
14require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/install/wizard/utils.php"); //Wizard utils
                    
14require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/install/wizard/utils.php"); //Wizard utils
                    
15require_once("tools/bsmpackage.php");
                    
16require_once("tools/modulechecker.php");
                    
16require_once("tools/modulechecker.php");
                    
17require_once("tools/bitrixvmchecker.php");
                    
18require_once("tools/agentchecker.php");
                    
18require_once("tools/agentchecker.php");
                    
19require_once("tools/pushchecker.php");
                    
20require_once("tools/sitepatcher.php");
                    
                
session.php https://github.com/mathieu/fusionforge.git | PHP | 552 lines
                    
100/**
                    
101 *	session_logout() - Log the user off the system.
                    
102 *
                    
130 */
                    
131function session_login_valid($loginname, $passwd, $allowpending=0)  {
                    
132	global $feedback;
                    
183				WHERE user_id='".$usr['user_id']."'");
                    
184			return session_login_valid_dbonly($loginname, $passwd, $allowpending) ;
                    
185		}
                    
199					WHERE user_id='".$usr['user_id']."'");
                    
200				return session_login_valid_dbonly($loginname, $passwd, $allowpending) ;
                    
201			} else {
                    
491//TODO - this should be generalized and used for pre.php, squal_pre.php, 
                    
492//SOAP, forum_gateway.php, tracker_gateway.php, etc to 
                    
493//setup languages
                    
                
TranslatorTest.php https://gitlab.com/Marwamimo/Crowdrise_Web | PHP | 288 lines
                    
15use Symfony\Component\HttpFoundation\RequestStack;
                    
16use Symfony\Component\Translation\MessageCatalogue;
                    
17use Symfony\Component\Filesystem\Filesystem;
                    
19
                    
20class TranslatorTest extends \PHPUnit_Framework_TestCase
                    
21{
                    
177
                    
178    protected function getCatalogue($locale, $messages)
                    
179    {
                    
179    {
                    
180        $catalogue = new MessageCatalogue($locale);
                    
181        foreach ($messages as $key => $translation) {
                    
184
                    
185        return $catalogue;
                    
186    }
                    
                
CreditCard.php https://gitlab.com/devtoannh/cafe | PHP | 317 lines
                    
1<?php
                    
2/**
                    
16 * @package    Zend_Validate
                    
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
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: CreditCard.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Validate/Abstract.php';
                    
26
                    
29 * @package    Zend_Validate
                    
30 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
31 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
229        if (!is_callable($service)) {
                    
230            require_once 'Zend/Validate/Exception.php';
                    
231            throw new Zend_Validate_Exception('Invalid callback given');
                    
                
Amazon.php https://gitlab.com/devtoannh/cafe | PHP | 323 lines
                    
1<?php
                    
2
                    
18 * @subpackage Amazon
                    
19 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 * @version    $Id: Amazon.php 23775 2011-03-01 17:25:24Z ralph $
                    
22 */
                    
26 */
                    
27require_once 'Zend/Rest/Client.php';
                    
28
                    
32 * @subpackage Amazon
                    
33 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
34 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
92             */
                    
93            require_once 'Zend/Service/Exception.php';
                    
94            throw new Zend_Service_Exception("Unknown country code: $countryCode");
                    
                
Db.php https://gitlab.com/devtoannh/cafe | PHP | 286 lines
                    
1<?php
                    
2
                    
17 * @package    Zend_Db
                    
18 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Db.php 24417 2011-08-28 10:15:47Z padraic $
                    
21 */
                    
28 * @package    Zend_Db
                    
29 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
30 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
85     *    'ATTR_PERSISTENT', 'ATTR_STATEMENT_CLASS', 'ATTR_FETCH_TABLE_NAMES',
                    
86     *    'ATTR_FETCH_CATALOG_NAMES', 'ATTR_DRIVER_NAME',
                    
87     *    'ATTR_STRINGIFY_FETCHES', 'ATTR_MAX_COLUMN_LEN', 'ERRMODE_SILENT',
                    
111    const ATTR_ERRMODE = 3;
                    
112    const ATTR_FETCH_CATALOG_NAMES = 15;
                    
113    const ATTR_FETCH_TABLE_NAMES = 14;
                    
                
logs.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 336 lines
                    
24$sql = "SELECT SQL_CALC_FOUND_ROWS * FROM `" . $db_config['prefix'] . "_logs` WHERE `id`!=0";
                    
25$base_url = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op;
                    
26
                    
41	{
                    
42		nv_insert_logs( NV_LANG_DATA, $module_name, sprintf ( $lang_module['filter_check_log'], $op ), $admin_info['username'] . " - " . $admin_info['userid'], 0 );
                    
43		Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op );
                    
81			$to = mktime( 0, 0, 0, $match[2], $match[1], $match[3] );
                    
82			$sql .= " AND `log_time` <= " . $to;
                    
83			$base_url .= "&amp;to=" . $data_search['to'];
                    
157{
                    
158	$sql .= " ORDER BY `log_time` " . $order['time']['order'];
                    
159}
                    
315    $xtpl->assign( 'CLASS', $a % 2 == 1 ? " class=\"second\"" : "" );
                    
316    $xtpl->assign( 'DEL_URL', NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=log&amp;" . NV_OP_VARIABLE . "=logs_del&amp;id=" . $data_i['id'] );
                    
317    $xtpl->assign( 'BACK_URL', $base_url );
                    
                
class-wc-shortcode-my-account.php https://gitlab.com/webkod3r/tripolis | PHP | 363 lines
                    
50
                    
51				wc_get_template( 'myaccount/form-login.php' );
                    
52
                    
204	 *
                    
205	 * Based on retrieve_password() in core wp-login.php.
                    
206	 *
                    
301
                    
302		if ( empty( $login ) || ! is_string( $login ) ) {
                    
303			wc_add_notice( __( 'Invalid key', 'woocommerce' ), 'error' );
                    
306
                    
307		$user = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->users WHERE user_login = %s", $login ) );
                    
308
                    
310			if ( empty( $wp_hasher ) ) {
                    
311				require_once ABSPATH . 'wp-includes/class-phpass.php';
                    
312				$wp_hasher = new PasswordHash( 8, true );
                    
                
PhpReferenceCompatibility.php https://gitlab.com/x33n/ImpressPages | PHP | 433 lines
                    
1<?php
                    
2/**
                    
5 * @link      http://github.com/zendframework/zf2 for the canonical source repository
                    
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
                    
7 * @license   http://framework.zend.com/license/new-bsd New BSD License
                    
21 * This ArrayObject is a rewrite of the implementation to fix
                    
22 * issues with php's implementation of ArrayObject where you
                    
23 * are unable to unset multi-dimensional arrays because you
                    
25 */
                    
26abstract class PhpReferenceCompatibility implements IteratorAggregate, ArrayAccess, Serializable, Countable
                    
27{
                    
                
DatabaseHandle.php https://gitlab.com/tomgidden/php-DatabaseObject | PHP | 375 lines
                    
6
                    
7require_once('DatabaseObject/common/vars.php');
                    
8
                    
29  protected $cache = array();		   // The prepared query cache
                    
30  protected $sqllog = array();		   // Log of queries run through this handle
                    
31  protected $dbh;					   // The DB handle itself
                    
97
                    
98	// Log the start time of the query
                    
99	if(defined('TIMINGS') and TIMINGS) {
                    
236	  if(!($this->dbh->getAttribute(constant('PDO::ATTR_AUTOCOMMIT')))) {
                    
237		$this->sqllog[] = array(false, 0, 'Weird rollback', '');
                    
238		$this->dbh->rollBack();
                    
305		$msg = $this->errorMessage();
                    
306		$this->sqllog[] = array(false, $end-$start, 'Commit', $msg);
                    
307	  } else
                    
                
redemptiondetail.php https://gitlab.com/nvtdn2006/azora | PHP | 316 lines
                    
1<?php require_once './includes/application.php'; $this->template = ''; $this->title = 'Redemption Detail'?>
                    
2
                    
2
                    
3<?php		
                    
4
                    
34				
                    
35				//Event Log
                    
36				$evtObj = new EventObject();					
                    
39				$evtObj->action_by = Authentication::getAttribute('login_id');					
                    
40				EventLog::Log($evtObj);
                    
41			
                    
63				$evtObj->action_by = Authentication::getAttribute('login_id');					
                    
64				EventLog::Log($evtObj);								
                    
65		
                    
235							<td width="60px">
                    
236								<img src="<?php echo $config['PRMSConfig']->live_site . '/domain/images/products/' . $image['sys_file_name']; ?>" width="50" height="50" alt="<?php echo $product['product']['product_name']; ?>" title="<?php echo $product['product']['product_name']; ?>"/></td>
                    
237							<td><b><?php echo $product['product']['product_name']; ?></b></td>
                    
                
auth_component.php https://github.com/jamilsonbatista/spaghetti-base.git | PHP | 360 lines
                    
41      */
                    
42    public $loginAction = "/users/login";
                    
43    /**
                    
49      */
                    
50    public $logoutAction = "/users/logout";
                    
51    /**
                    
51    /**
                    
52      *  URL para redirecionamento após o logout.
                    
53      */
                    
97      */
                    
98    public $loginError = "loginFailed";
                    
99    /**
                    
137        if(Mapper::match($this->loginAction)):
                    
138            $this->loginRedirect();
                    
139        endif;
                    
                
imagecropper.class.php https://bitbucket.org/cantico/widgets.git | PHP | 301 lines
                    
1<?php
                    
2//-------------------------------------------------------------------------
                    
19/**
                    
20 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
                    
21 * @copyright Copyright (c) 2006 by CANTICO ({@link http://www.cantico.fr})
                    
22 */
                    
23//include_once 'base.php';
                    
24require_once dirname(__FILE__) . '/inputwidget.class.php';
                    
69
                    
70//         require_once FUNC_WIDGETS_PHP_PATH . 'flowlayout.class.php';
                    
71//         require_once FUNC_WIDGETS_PHP_PATH . 'lineedit.class.php';
                    
71//         require_once FUNC_WIDGETS_PHP_PATH . 'lineedit.class.php';
                    
72//         require_once FUNC_WIDGETS_PHP_PATH . 'image.class.php';
                    
73//         require_once FUNC_WIDGETS_PHP_PATH . 'namedcontainer.class.php';
                    
73//         require_once FUNC_WIDGETS_PHP_PATH . 'namedcontainer.class.php';
                    
74//         require_once FUNC_WIDGETS_PHP_PATH . 'hidden.class.php';
                    
75
                    
                
debugger.test.php https://github.com/hack521/contenidopago.git | PHP | 372 lines
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP Project
                    
15 * @package       cake
                    
269	function testLog() {
                    
270		if (file_exists(LOGS . 'debug.log')) {
                    
271			unlink(LOGS . 'debug.log');
                    
281		Debugger::log(array('whatever', 'here'));
                    
282		$result = file_get_contents(TMP . 'logs' . DS . 'debug.log');
                    
283		$this->assertPattern('/DebuggerTest\:\:testLog/i', $result);
                    
350			'host' => 'void.cakephp.org',
                    
351			'login' => 'cakephp-user',
                    
352			'password' => 'cakephp-password',
                    
                
blogger.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 323 lines
                    
17
                    
18class EasyBlogModelBlogger extends EasyBlogModelParent
                    
19{
                    
73
                    
74  		require_once( EBLOG_HELPERS . DIRECTORY_SEPARATOR . 'helper.php' );
                    
75  		$config  			= EasyBlogHelper::getConfig();
                    
280			$date       = EasyBlogHelper::getDate();
                    
281			$subscriber = EasyBlogHelper::getTable( 'BloggerSubscription', 'Table' );
                    
282
                    
300		{
                    
301			$subscriber = EasyBlogHelper::getTable( 'BloggerSubscription', 'Table' );
                    
302			$subscriber->load($sid);
                    
311
                    
312        $query  = "SELECT *. 'bloggersubscription' as `type` FROM `#__easyblog_blogger_subscription`";
                    
313        $query  .= " WHERE `blogger_id` = " . $db->Quote($bloggerId);
                    
                
Amazon.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 323 lines
                    
1<?php
                    
2
                    
18 * @subpackage Amazon
                    
19 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
26 */
                    
27require_once 'Zend/Rest/Client.php';
                    
28
                    
32 * @subpackage Amazon
                    
33 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
34 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
92             */
                    
93            require_once 'Zend/Service/Exception.php';
                    
94            throw new Zend_Service_Exception("Unknown country code: $countryCode");
                    
122             */
                    
123            require_once 'Zend/Service/Exception.php';
                    
124            throw new Zend_Service_Exception('An error occurred sending request. Status code: '
                    
                
PlaylistListEntry.php https://github.com/kervin/kyzstudio.git | PHP | 300 lines
                    
1<?php
                    
2
                    
18 * @subpackage YouTube
                    
19 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 * @version    $Id: PlaylistListEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
22 */
                    
26 */
                    
27#require_once 'Zend/Gdata/YouTube.php';
                    
28
                    
31 */
                    
32#require_once 'Zend/Gdata/Entry.php';
                    
33
                    
36 */
                    
37#require_once 'Zend/Gdata/Extension/FeedLink.php';
                    
38
                    
                
 

Source

Language