PageRenderTime 1610ms queryTime 123ms sortTime 740ms getByIdsTime 72ms findMatchingLines 91ms

100+ results results for 'php stat repo:Unity/unity-minimanager' (1610 ms)

Not the results you expected?
DiffPanel.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 365 lines
                    
41 */
                    
42package org.netbeans.modules.php.project.connections.sync.diff;
                    
43
                    
61import org.netbeans.api.diff.StreamSource;
                    
62import org.netbeans.modules.php.api.util.StringUtils;
                    
63import org.netbeans.modules.php.project.connections.RemoteClient;
                    
63import org.netbeans.modules.php.project.connections.RemoteClient;
                    
64import org.netbeans.modules.php.project.connections.RemoteException;
                    
65import org.netbeans.modules.php.project.connections.TmpLocalFile;
                    
65import org.netbeans.modules.php.project.connections.TmpLocalFile;
                    
66import org.netbeans.modules.php.project.connections.sync.SyncItem;
                    
67import org.netbeans.modules.php.project.connections.transfer.TransferFile;
                    
82
                    
83    private static final long serialVersionUID = 54678645646768L;
                    
84
                    
                
Store.php https://gitlab.com/ealexis.t/trends | PHP | 707 lines
                    
1<?php
                    
2
                    
64    /**
                    
65     * Session store started status.
                    
66     *
                    
                
Url.php https://gitlab.com/x33n/respond | PHP | 548 lines
                    
1<?php
                    
2
                    
31     */
                    
32    public static function factory($url)
                    
33    {
                    
33    {
                    
34        static $defaults = array('scheme' => null, 'host' => null, 'path' => null, 'port' => null, 'query' => null,
                    
35            'user' => null, 'pass' => null, 'fragment' => null);
                    
47
                    
48        return new static($parts['scheme'], $parts['host'], $parts['user'],
                    
49            $parts['pass'], $parts['port'], $parts['path'], $parts['query'],
                    
59     */
                    
60    public static function buildUrl(array $parts)
                    
61    {
                    
270    {
                    
271        static $pathReplace = array(' ' => '%20', '?' => '%3F');
                    
272        if (is_array($path)) {
                    
                
VarCloner.php https://gitlab.com/Sigpot/AirSpot | PHP | 324 lines
                    
1<?php
                    
2
                    
18{
                    
19    private static $hashMask = 0;
                    
20    private static $hashOffset = 0;
                    
148                    case 'object':
                    
149                        if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) {
                    
150                            $stub = new Stub();
                    
164                                } else {
                    
165                                    $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE));
                    
166                                }
                    
297
                    
298    private static function initHashMask()
                    
299    {
                    
300        $obj = (object) array();
                    
301        self::$hashOffset = 16 - PHP_INT_SIZE;
                    
302        self::$hashMask = -1;
                    
                
StorageServiceSettings.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 485 lines
                    
14 * 
                    
15 * PHP version 5
                    
16 *
                    
18 * @package   WindowsAzure\Common\Internal
                    
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
20 * @copyright 2012 Microsoft Corporation
                    
35 * @package   WindowsAzure\Common\Internal
                    
36 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
37 * @copyright 2012 Microsoft Corporation
                    
124     */
                    
125    private static $_blobEndpointSetting;
                    
126    
                    
292     */
                    
293    private static function _getDefaultServiceEndpoint($settings, $dns)
                    
294    {
                    
                
Particle3DTest.cpp https://github.com/dumganhar/cocos2d-x.git | C++ | 480 lines
                    
78    listener->onTouchesEnded = CC_CALLBACK_2(Particle3DTestDemo::onTouchesEnded, this);
                    
79    _eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this);
                    
80
                    
123{
                    
124    ParticleSystem3D *ps = static_cast<ParticleSystem3D *>(this->getChildByTag(PARTICLE_SYSTEM_TAG));
                    
125    if (ps){
                    
                
rewrite.php https://bitbucket.org/murtuza88/carolina-home-stone.git | PHP | 425 lines
                    
1<?php
                    
2
                    
82
                    
83        // taken from is_frontpage plugin, required for static homepage
                    
84        $show_on_front = get_option('show_on_front');
                    
115            $url = trailingslashit ( get_permalink ($post->ID) ) . $this->slug; 
                    
116            //TODO: For static home pages generate the link to the selected page, still doesn't work
                    
117            if (($show_on_front == 'page') && ($page_on_front == get_the_ID()))
                    
211		//TODO: I could parse for the Picture name , gallery etc, but this increase the queries
                    
212		//TODO: Class nggdb need to cache the query for the nggfunctions.php
                    
213
                    
265            // XML request
                    
266            $this->slug . '/slideshow/([0-9]+)/?$' => 'index.php?imagerotator=true&gid=$matches[1]'
                    
267		);  
                    
273	/**
                    
274	 * Mainly a copy of the same function in wp-includes\rewrite.php
                    
275     * Adding the NGG tags to each post & page. Never found easier and proper way to handle this with other functions.
                    
                
twitter-timeline.php https://gitlab.com/hunt9310/ras | PHP | 470 lines
                    
1<?php
                    
2
                    
26			'twitter_timeline',
                    
27			/** This filter is documented in modules/widgets/facebook-likebox.php */
                    
28			apply_filters( 'jetpack_widget_name', esc_html__( 'Twitter Timeline', 'jetpack' ) ),
                    
63	public function admin_scripts( $hook ) {
                    
64		// This is still 'widgets.php' when managing widgets via the Customizer.
                    
65		if ( 'widgets.php' === $hook ) {
                    
83		if ( isset( $instance['title'] ) ) {
                    
84			/** This filter is documented in core/src/wp-includes/default-widgets.php */
                    
85			echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title'];
                    
145
                    
146		/** This action is documented in modules/widgets/social-media-icons.php */
                    
147		do_action( 'jetpack_bump_stats_extras', 'widget', 'twitter_timeline' );
                    
282		<p>
                    
283			<label for="<?php echo $this->get_field_id( 'title' ); ?>">
                    
284				<?php esc_html_e( 'Title:', 'jetpack' ); ?>
                    
                
eventapi.html.md https://gitlab.com/ggsaavedra/PredictionIO | Markdown | 412 lines
                    
41
                    
42### Check Server Status
                    
43
                    
56
                    
57{"status":"alive"}
                    
58```
                    
109  </div>
                    
110  <div data-tab="PHP SDK" data-lang="php">
                    
111```php
                    
111```php
                    
112<?php
                    
113  require_once("vendor/autoload.php");
                    
204  </div>
                    
205  <div data-tab="PHP SDK" data-lang="php">
                    
206```php
                    
                
WizardController.php https://github.com/rgranadino/magento-mirror.git | PHP | 464 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
75
                    
76        $leftBlock = $this->getLayout()->createBlock('install/state', 'install.state');
                    
77        $this->getLayout()->getBlock('left')->append($leftBlock);
                    
238        if ($this->getRequest()->getParam('do')) {
                    
239            if ($state = $this->getRequest()->getParam('state', 'beta')) {
                    
240                $result = $pear->runHtmlConsole(array(
                    
240                $result = $pear->runHtmlConsole(array(
                    
241                'comment'   => Mage::helper('install')->__("Setting preferred state to: %s", $state) . "\r\n\r\n",
                    
242                'command'   => 'config-set',
                    
242                'command'   => 'config-set',
                    
243                'params'    => array('preferred_state', $state)
                    
244                ));
                    
                
Advertiser.php https://bitbucket.org/blackriver/openx.git | PHP | 371 lines
                    
29 * @package    OpenXDal
                    
30 * @subpackage Statistics
                    
31 * @author     Ivan Klishch <iklishch@lohika.com>
                    
35// Required classes
                    
36require_once MAX_PATH . '/lib/OA/Dal/Statistics.php';
                    
37
                    
40 */
                    
41class OA_Dal_Statistics_Advertiser extends OA_Dal_Statistics
                    
42{
                    
50    * @param date $oEndDate The date to which to get statistics (inclusive)
                    
51    * @param bool $localTZ Should stats be using the manager TZ or UTC?
                    
52    *
                    
161   /**
                    
162    * This method returns statistics for a given advertiser, broken down by banner.
                    
163    *
                    
                
catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
                    
1<?php
                    
2/**
                    
29{
                    
30	protected static $cookieLogName = 'RCM_PRODUCT_LOG';
                    
31
                    
32	// basket (sale:OnSaleBasketItemSaved)
                    
33	public static function catchCatalogBasket(Event $event)
                    
34	{
                    
43		// exclude empty cookie
                    
44		if (!static::getBxUserId())
                    
45		{
                    
49		// alter b_sale_basket - add recommendation, update it here
                    
50		if (!static::isOn())
                    
51		{
                    
91		// first, try to find in cookies
                    
92		$recommendationCookie = Context::getCurrent()->getRequest()->getCookie(static::getCookieLogName());
                    
93
                    
                
MaildirFolderTest.php https://github.com/mfairchild365/zf2.git | PHP | 444 lines
                    
203        try {
                    
204            // explicit call of __toString() needed for PHP < 5.2
                    
205            $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder');
                    
334    {
                    
335        $stat = stat($this->_params['dirname'] . '.subfolder');
                    
336        chmod($this->_params['dirname'] . '.subfolder', 0);
                    
337        clearstatcache();
                    
338        $statcheck = stat($this->_params['dirname'] . '.subfolder');
                    
339        if ($statcheck['mode'] % (8 * 8 * 8) !== 0) {
                    
361    {
                    
362        $stat = stat($this->_params['dirname']);
                    
363        chmod($this->_params['dirname'], 0);
                    
364        clearstatcache();
                    
365        $statcheck = stat($this->_params['dirname']);
                    
366        if ($statcheck['mode'] % (8 * 8 * 8) !== 0) {
                    
                
bltGrHairs.c https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C | 544 lines
                    
49    XPoint hotSpot;		/* Hot spot for crosshairs */
                    
50    int visible;		/* Internal state of crosshairs. If non-zero,
                    
51				 * crosshairs are displayed. */
                    
149	}
                    
150	XDrawSegments(graphPtr->display, Tk_WindowId(graphPtr->tkwin),
                    
151	    chPtr->gc, chPtr->segArr, 2);
                    
234    if (!graphPtr->crosshairs->hidden) {
                    
235	TurnOnHairs(graphPtr, graphPtr->crosshairs);
                    
236    }
                    
243    if (!graphPtr->crosshairs->hidden) {
                    
244	TurnOffHairs(graphPtr->tkwin, graphPtr->crosshairs);
                    
245    }
                    
325
                    
326    if (Blt_ConfigureWidgetComponent(graphPtr->interp, graphPtr->tkwin,
                    
327	    "crosshairs", "Crosshairs", configSpecs, 0, (char **)NULL,
                    
                
arr.php https://bitbucket.org/i1598/caiyun_stat.git | PHP | 602 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
15	 */
                    
16	public static $delimiter = '.';
                    
17
                    
29	 */
                    
30	public static function is_assoc(array $array)
                    
31	{
                    
54	 */
                    
55	public static function is_array($value)
                    
56	{
                    
88	 */
                    
89	public static function path($array, $path, $default = NULL, $delimiter = NULL)
                    
90	{
                    
201	*/
                    
202	public static function set_path( & $array, $path, $value, $delimiter = NULL)
                    
203	{
                    
                
Descarte.php https://gitlab.com/SFMSP/Hagape | PHP | 346 lines
                    
1<?php
                    
2
                    
120        try {
                    
121            //Em caso de edição, verifica se o registro de fato pode ser alterado, de acordo com o seu status
                    
122            if (!empty($data['id'])) {
                    
125
                    
126                if (($data['acao'] == 'C' || $data['acao'] == 'CE') && $solicitacaoDescarte->getSituacaoDescarte()->getId() != SolicitacaoDescarteEntity::STATUS_CADASTRADO) {
                    
127                    return false;
                    
138            if ($data['acao'] == 'CE') {
                    
139                $data['situacaoDescarte'] = $this->getEm()->getReference("Estoque\Entity\SituacaoDescarte", SolicitacaoDescarteEntity::STATUS_SOLICITADO);
                    
140            } else {
                    
140            } else {
                    
141                $data['situacaoDescarte'] = $this->getEm()->getReference("Estoque\Entity\SituacaoDescarte", SolicitacaoDescarteEntity::STATUS_CADASTRADO);
                    
142            }
                    
242    /**
                    
243     * Método que muda o status da solicitação para cancelado
                    
244     * 
                    
                
admin_review.php https://bitbucket.org/prat_h/rakbuku.git | PHP | 501 lines
                    
19		$this->laststate = $this->cek_state($this->dataproj[0]["project_id"]);
                    
20		$match = array_search($this->laststate, $this->defstates);
                    
21		if( $this->laststate !== "admin_review" && $match !== false ){
                    
85				);
                    
86				$this->data["state"] = $this->projects_model->get_projects_state($state);
                    
87				$prevstate_process = $this->data["state"][0]["project_state"];
                    
283		$this->data["state"] = $this->projects_model->get_projects_state($state);
                    
284		$prevstate_process = $this->data["state"][0]["project_state"];
                    
285		$this->data["type"] = $this->data["project_data"][0]["type_id"];
                    
296		$parstate = array(
                    
297			"project_state" => $this->input->post( "project_state" ),
                    
298			"project_state_next_state" => NULL,
                    
304		
                    
305		$update_project_state = $this->projects_model->update_project_state($parstate, $clausestate);
                    
306		
                    
                
SqlBase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 415 lines
                    
94   */
                    
95  public function buildOptionsForm(&$form, FormStateInterface $form_state) {
                    
96    parent::buildOptionsForm($form, $form_state);
                    
225
                    
226  public function validateOptionsForm(&$form, FormStateInterface $form_state) {
                    
227    // Only accept integer values.
                    
352
                    
353  public function exposedFormAlter(&$form, FormStateInterface $form_state) {
                    
354    if ($this->itemsPerPageExposed()) {
                    
383
                    
384  public function exposedFormValidate(&$form, FormStateInterface $form_state) {
                    
385    if (!$form_state->isValueEmpty('offset') && trim($form_state->getValue('offset'))) {
                    
385    if (!$form_state->isValueEmpty('offset') && trim($form_state->getValue('offset'))) {
                    
386      if (!is_numeric($form_state->getValue('offset')) || $form_state->getValue('offset') < 0) {
                    
387        $form_state->setErrorByName('offset', $this->t('Offset must be a number greater than or equal to 0.'));
                    
                
Resource.php https://github.com/rico/flextrine.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
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 $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
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');
                    
90        }
                    
91        require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
Location.js https://github.com/stephaneerard/qooxdoo.git | JavaScript | 406 lines
                    
11     LGPL: http://www.gnu.org/licenses/lgpl.html
                    
12     EPL: http://www.eclipse.org/org/documents/epl-v10.php
                    
13     See the LICENSE file in the project's top-level directory for details.
                    
244      ' <div id="relative1" style="position: relative; top: 50px; left: 50px; margin: 5px; border: 2px solid #000; padding: 3px; width: 300px; height: 300px;">' +
                    
245      '   <div id="static1" style="overflow: hidden; position: static; margin: 5px; border: 2px solid #000; padding: 3px; width: 250px; height: 250px;">' +
                    
246      '     <div id="relative2" style="overflow: auto; position: relative; top: 10px; left: 10px; margin: 5px; border: 2px solid #000; padding: 3px; width: 200px; height: 200px;">' +
                    
247      '       <div id="absolute2" style="position: absolute; top: 30px; left: -90px; margin: 5px; border: 2px solid #000; padding: 3px; width: 200px; height: 200px;">' +
                    
248      '         <div id="static2" style="position: static; margin: 10px; border: 2px solid #000; padding: 3px; width: 250px; height: 250px;">' +
                    
249      '         </div>' +
                    
274
                    
275      var static1 = document.getElementById("static1");
                    
276      var pos = qx.bom.element.Location.get(static1);
                    
301
                    
302      var static2 = document.getElementById("static2");
                    
303      var pos = qx.bom.element.Location.get(static2);
                    
                
resource.inc.php https://github.com/enigmatic-user/revolution.git | PHP | 160 lines
                    
1<?php
                    
2/**
                    
115$_lang['resource_settings'] = 'Pengaturan sumber';
                    
116$_lang['resource_status'] = 'Status';
                    
117$_lang['resource_status_help'] = 'Jika diterbitkan, sumber daya tersedia untuk umum segera setelah menyimpannya. Jika tidak, tersembunyi dari situs umum.';
                    
140$_lang['source'] = 'Sumber';
                    
141$_lang['static_resource'] = 'Sumber daya statis';
                    
142$_lang['static_resource_create_here'] = 'Sumber daya statis';
                    
142$_lang['static_resource_create_here'] = 'Sumber daya statis';
                    
143$_lang['static_resource_new'] = 'Sumber daya statis yang baru';
                    
144$_lang['status'] = 'Status';
                    
                
File.php https://github.com/Riges/KawaiViewModel.git | PHP | 468 lines
                    
25 */
                    
26require_once 'Zend/CodeGenerator/Php/Abstract.php';
                    
27
                    
79
                    
80    public static function registerFileCodeGenerator(Zend_CodeGenerator_Php_File $fileCodeGenerator, $fileName = null)
                    
81    {
                    
209            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
210            throw new Zend_CodeGenerator_Php_Exception('setDocblock() is expecting either a string, array or an instance of Zend_CodeGenerator_Php_Docblock');
                    
211        }
                    
293            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
294            throw new Zend_CodeGenerator_Php_Exception('Expecting either an array or an instance of Zend_CodeGenerator_Php_Class');
                    
295        }
                    
460        if ($this->_filename == '' || !is_writable(dirname($this->_filename))) {
                    
461            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
462            throw new Zend_CodeGenerator_Php_Exception('This code generator object is not writable.');
                    
                
Batch.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 514 lines
                    
17  /**
                    
18   * Static instance to hold the table name.
                    
19   *
                    
28   */
                    
29  public static $_log = FALSE;
                    
30
                    
163    if (!isset(Civi::$statics[__CLASS__]['links'])) {
                    
164      Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
                    
165      Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
                    
179    if (!isset(Civi::$statics[__CLASS__]['fields'])) {
                    
180      Civi::$statics[__CLASS__]['fields'] = [
                    
181        'id' => [
                    
304        ],
                    
305        'status_id' => [
                    
306          'name' => 'status_id',
                    
                
lang.php https://gitlab.com/gideonmarked/atls-express | PHP | 326 lines
                    
1<?php
                    
2
                    
141        'sender_email' => 'Avsändarens e-postadress',
                    
142        'php_mail' => 'PHP mail',
                    
143        'smtp' => 'SMTP',
                    
298    'request_log' => [
                    
299        'hint' => 'Denna loggen visar en lista med förfrågningar från webbläsare som kan kräva uppmärksamhet. Till exempel, om en besökare öppnar en CMS sida som inte kan hittas, så skapas en post med statuskoden 404.',
                    
300        'menu_label' => 'Förfrågningslogg',
                    
310        'url' => 'URL',
                    
311        'status_code' => 'Status'
                    
312    ],
                    
                
Inflector.php https://github.com/grandison/budo16.git | PHP | 506 lines
                    
1<?php
                    
2/**
                    
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
                    
123    /**
                    
124     * Use Zend_Config object to set object state
                    
125     *
                    
271     * If prefixed with a ":" (colon), a filter rule will be added.  If not
                    
272     * prefixed, a static replacement will be added.
                    
273     *
                    
                
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>
                    
159      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
                    
160      (except as stated in this section) patent license to make, have made,
                    
161      use, offer to sell, sell, import, and otherwise transfer the Work,
                    
184<li>You must cause any modified files to carry prominent notices
                    
185          stating that You changed the files; and
                    
186<br /> <br /></li>
                    
212</ol>
                    
213      You may add Your own copyright statement to Your modifications and
                    
214      may provide additional or different license terms and conditions
                    
217      reproduction, and distribution of the Work otherwise complies with
                    
218      the conditions stated in this License.
                    
219</p>
                    
                
web.php https://github.com/XioNoX/Benevolus.git | PHP | 509 lines
                    
3/**
                    
4	Web pack for the PHP Fat-Free Framework
                    
5
                    
51	**/
                    
52	static function minify($base,array $files,$echo=TRUE) {
                    
53		preg_match('/\.(js|css)$/',$files[0],$ext);
                    
68		foreach ($files as $file) {
                    
69			$stats=&self::ref('STATS');
                    
70			$stats['FILES']['minified']
                    
330					self::$vars['HEADERS'][]=$hdr;
                    
331					if (PHP_SAPI!='cli' && $forward)
                    
332						// Forward HTTP header
                    
361	**/
                    
362	static function sitemap($url=NULL) {
                    
363		if (is_null($url))
                    
                
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
                    
89 * To configure CakePHP *not* to use mod_rewrite and to
                    
90 * use CakePHP pretty URLs, remove these .htaccess
                    
91 * files:
                    
205 *
                    
206 * - 'php' - Uses settings defined in your php.ini.
                    
207 * - 'cake' - Saves session files in CakePHP's /tmp directory.
                    
207 * - 'cake' - Saves session files in CakePHP's /tmp directory.
                    
208 * - 'database' - Uses CakePHP's database sessions.
                    
209 * - 'cache' - Use the Cache class to save sessions.
                    
                
Resource.php https://github.com/ianbogda/FileZ.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
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 $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
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');
                    
90        }
                    
91        require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
auth_tkt.py https://bitbucket.org/eaviles/gobierno.git | Python | 380 lines
                    
1# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org)
                    
2# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
                    
3##########################################################################
                    
66            os.environ['REMOTE_ADDR'], tokens=['admin'])
                    
67        print 'Status: 200 OK'
                    
68        print 'Content-type: text/html'
                    
297            logout_user()
                    
298        def cookie_setting_start_response(status, headers, exc_info=None):
                    
299            headers.extend(set_cookies)
                    
299            headers.extend(set_cookies)
                    
300            return start_response(status, headers, exc_info)
                    
301        return self.app(environ, cookie_setting_start_response)
                    
                
ac28db01878361e31b02909532d9.php https://bitbucket.org/AdriVanHoudt/school.git | PHP | 230 lines
                    
1<?php
                    
2
                    
61                <b>Logged in as</b>
                    
62                <span class=\"sf-toolbar-status sf-toolbar-status-";
                    
63            // line 15
                    
70                <b>Authenticated</b>
                    
71                <span class=\"sf-toolbar-status sf-toolbar-status-";
                    
72            // line 19
                    
109        echo "        <img width=\"24\" height=\"28\" alt=\"Security\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAcCAYAAAB75n/uAAAC70lEQVR42u2V3UtTYRzHu+mFwCwK+gO6CEryPlg7yiYx50vDqUwjFIZDSYUk2ZTmCysHvg9ZVggOQZiRScsR4VwXTjEwdKZWk8o6gd5UOt0mbev7g/PAkLONIOkiBx+25/v89vuc85zn2Q5Fo9F95UDwnwhS5HK5TyqVRv8m1JN6k+AiC+fn54cwbgFNIrTQ/J9IqDcJJDGBHsgDgYBSq9W6ysvLPf39/SSUUU7zsQ1yc3MjmN90OBzfRkZG1umzQqGIxPSTkIBjgdDkaGNjoza2kcFgUCE/QvMsq6io2PV6vQu1tbV8Xl7etkql2qqvr/+MbDE/Pz8s9OP2Cjhwwmw29+4R3Kec1WZnZ4fn5uamc3Jyttra2qbH8ero6JgdHh5+CvFHq9X6JZHgzODgoCVW0NPTY0N+ltU2Nzdv4GqXsYSrPp+vDw80aLFYxru6uhyQ/rDb7a8TCVJDodB1jUazTVlxcXGQ5/mbyE+z2u7u7veY38BVT3Z2djopm5qa6isrK/tQWVn5qb29fSGR4DC4PDAwMEsZHuArjGnyGKutq6v7ajQaF6urq9/MzMz0QuSemJiwQDwGkR0POhhXgILjNTU1TaWlpTxlOp1uyWQyaUjMajMzM8Nut/tJQUHBOpZppbCwkM/KytrBznuL9xDVxBMo8KXHYnu6qKjIivmrbIy67x6Px4Yd58W672ApfzY0NCyNjo7OZmRkiAv8fr+O47iwmABXtoXaG3uykF6vX7bZbF6cgZWqqiqezYkKcNtmjO+CF2AyhufgjsvlMiU7vXEF+4C4ALf9CwdrlVAqlcFkTdRqdQSHLUDgBEeSCrArAsiGwENs0XfJBE6ncxm1D8Aj/B6tigkkJSUlmxSwLYhMDeRsyyUCd+lHrWxtbe2aTCbbZTn1ZD92F0Cr8GBfgnsgDZwDt8EzMBmHMXBLqD0PDMAh9Gql3iRIESQSIAXp4CRIBZeEjIvDFZAm1J4C6UK9ROiZcvCn/+8FvwHtDdJEaRY+oQAAAABJRU5ErkJggg==\" />
                    
110        <span class=\"sf-toolbar-status sf-toolbar-status-";
                    
111        // line 35
                    
116        if ($this->getAttribute($this->getContext($context, "collector"), "user")) {
                    
117            echo "<div class=\"sf-toolbar-status sf-toolbar-info-piece-additional\">";
                    
118            echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "collector"), "user"), "html", null, true);
                    
                
bp-loader.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 487 lines
                    
1<?php
                    
2/**
                    
171	/**
                    
172	 * @var bool Are status headers already sent?
                    
173	 */
                    
173	 */
                    
174	public $no_status_set = false;
                    
175
                    
260		// Place your custom code (actions/filters) in a file called
                    
261		// '/plugins/bp-custom.php' and it will be loaded before anything else.
                    
262		if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) )
                    
417			require( $this->plugin_dir . 'bp-core/bp-core-cache.php'      );
                    
418			require( $this->plugin_dir . 'bp-core/bp-core-cssjs.php'      );
                    
419			require( $this->plugin_dir . 'bp-core/bp-core-update.php'     );
                    
465			'register_post_types',      // Register post types
                    
466			'register_post_statuses',   // Register post statuses
                    
467			'register_taxonomies',      // Register taxonomies
                    
                
edit.php https://github.com/thisduck/wordpress.git | PHP | 294 lines
                    
163<?php screen_icon(); ?>
                    
164<h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="button add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php
                    
165if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
                    
170if ( isset($_REQUEST['posted']) && $_REQUEST['posted'] ) : $_REQUEST['posted'] = (int) $_REQUEST['posted']; ?>
                    
171<div id="message" class="updated"><p><strong><?php _e('This has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_REQUEST['posted'] ); ?>"><?php _e('View Post'); ?></a> | <a href="<?php echo get_edit_post_link( $_REQUEST['posted'] ); ?>"><?php _e('Edit Post'); ?></a></p></div>
                    
172<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
                    
251
                    
252foreach ( get_post_stati(array('show_in_admin_status_list' => true), 'objects') as $status ) {
                    
253	$class = '';
                    
265
                    
266	$status_links[] = "<li><a href='edit.php?post_status=$status_name&amp;post_type=$post_type'$class>" . sprintf( _n( $status->label_count[0], $status->label_count[1], $num_posts->$status_name ), number_format_i18n( $num_posts->$status_name ) ) . '</a>';
                    
267}
                    
279
                    
280<input type="hidden" name="post_status" class="post_status_page" value="<?php echo !empty($_REQUEST['post_status']) ? esc_attr($_REQUEST['post_status']) : 'all'; ?>" />
                    
281<input type="hidden" name="post_type" class="post_type_page" value="<?php echo $post_type; ?>" />
                    
                
TestData.php https://github.com/orchestra-io/sample-openx.git | PHP | 301 lines
                    
123        $doCampaigns->conversions    = '-1';                     // int(11)
                    
124        $doCampaigns->status    = OA_ENTITY_STATUS_RUNNING;     // int(11)  not_null
                    
125        $doCampaigns->priority    = '-1';                        // int(11)  not_null
                    
210        $doBanners->campaignid      = $this->campaignId;
                    
211        $doBanners->status          = OA_ENTITY_STATUS_RUNNING;
                    
212        $doBanners->contenttype    = '';
                    
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);
                    
                
UpgradeComponentGroup.php https://github.com/orchestra-io/sample-openx.git | PHP | 320 lines
                    
122        {
                    
123            $this->existing_installation_status = OA_STATUS_PLUGIN_NOT_INSTALLED;
                    
124            return false;
                    
139                {
                    
140                    $this->existing_installation_status = OA_STATUS_PLUGIN_DBINTEG_FAILED;
                    
141                    return false;
                    
143            }
                    
144            $this->existing_installation_status = OA_STATUS_CAN_UPGRADE;
                    
145            $this->aDsn['database'] = $GLOBALS['_MAX']['CONF']['database'];
                    
150        {
                    
151            $this->existing_installation_status = OA_STATUS_CURRENT_VERSION;
                    
152            $this->aPackageList = array();
                    
154        }
                    
155        $this->existing_installation_status = OA_STATUS_PLUGIN_VERSION_FAILED;
                    
156        return false;
                    
                
view.html.php https://bitbucket.org/ke2083/transfans.co.uk-website.git | PHP | 496 lines
                    
72		$item = $this->get('Item');
                    
73		$state = $this->get('State');
                    
74
                    
75		// Get submitted values
                    
76		$data = $app->getUserState('com_contact.contact.data', array());
                    
77
                    
80
                    
81		$app->setUserState('com_contact.contact.data', $data);
                    
82
                    
120			$categoryModel->setState('category.id', $item->catid);
                    
121			$categoryModel->setState('list.ordering', 'a.name');
                    
122			$categoryModel->setState('list.direction', 'asc');
                    
342		$this->return      = &$return;
                    
343		$this->state       = &$state;
                    
344		$this->item        = &$item;
                    
                
lang.php https://gitlab.com/michield/dokuwiki | PHP | 188 lines
                    
1<?php
                    
2/**
                    
56$lang['htmlok']                = 'Beágyazott HTML engedélyezése';
                    
57$lang['phpok']                 = 'Beágyazott PHP engedélyezése';
                    
58$lang['dformat']               = 'Dátum formázás (lásd a PHP <a href="http://www.php.net/strftime">strftime</a> függvényt)';
                    
102$lang['locktime']              = 'Oldal-zárolás maximális időtartama (másodperc)';
                    
103$lang['fetchsize']             = 'Maximális méret (bájtban), amit a fetch.php letölthet kívülről';
                    
104$lang['notify']                = 'Az oldal-változásokat erre az e-mail címre küldje';
                    
117$lang['sitemap']               = 'Hány naponként generáljunk Google sitemap-ot?';
                    
118$lang['broken_iua']            = 'Az ignore_user_abort függvény hibát dob a rendszereden? Ez nem működő keresési indexet eredményezhet. Az IIS+PHP/CGI összeállításról tudjuk, hogy hibát dob. Lásd a <a href="http://bugs.splitbrain.org/?do=details&amp;task_id=852">Bug 852</a> oldalt a további infóért.';
                    
119$lang['xsendfile']             = 'Használjuk az X-Sendfile fejlécet, hogy a webszerver statikus állományokat tudjon küldeni? A webszervernek is támogatnia kell ezt a funkciót.';
                    
140$lang['proxy____except']       = 'URL szabály azokra a webcímekre, amit szeretnél, hogy ne kezeljen a proxy.';
                    
141$lang['safemodehack']          = 'A PHP safemode beállítás megkerülésének engedélyezése';
                    
142$lang['ftp____host']           = 'FTP szerver a safemode megkerüléshez';
                    
                
tcp_cubic.c https://gitlab.com/karrei/inel-imx6-kernel | C | 497 lines
                    
48static int initial_ssthresh __read_mostly;
                    
49static int bic_scale __read_mostly = 41;
                    
50static int tcp_friendliness __read_mostly = 1;
                    
141
                    
142static void bictcp_init(struct sock *sk)
                    
143{
                    
159 */
                    
160static u32 cubic_root(u64 a)
                    
161{
                    
352
                    
353static void bictcp_state(struct sock *sk, u8 new_state)
                    
354{
                    
440	.cong_avoid	= bictcp_cong_avoid,
                    
441	.set_state	= bictcp_state,
                    
442	.undo_cwnd	= bictcp_undo_cwnd,
                    
                
acpiphp_ibm.c https://gitlab.com/karrei/imx6-kernel | C | 487 lines
                    
96static int ibm_set_attention_status(struct hotplug_slot *slot, u8 status);
                    
97static int ibm_get_attention_status(struct hotplug_slot *slot, u8 *status);
                    
98static void ibm_handle_events(acpi_handle handle, u32 event, void *context);
                    
105static int __init ibm_acpiphp_init(void);
                    
106static void __exit ibm_acpiphp_exit(void);
                    
107
                    
170 */
                    
171static int ibm_set_attention_status(struct hotplug_slot *slot, u8 status)
                    
172{
                    
214 */
                    
215static int ibm_get_attention_status(struct hotplug_slot *slot, u8 *status)
                    
216{
                    
467{
                    
468	acpi_status status;
                    
469	struct kobject *sysdir = &pci_slots_kset->kobj;
                    
                
menu.php https://github.com/Manuite/FUEL-CMS.git | PHP | 438 lines
                    
6
                    
7<pre class="brush: php">$this->load->library('menu');</pre>
                    
8
                    
10
                    
11<pre class="brush: php">$this->load->library('menu', array('active_class'=>'on', 'render_type' => 'collapsible'));</pre>
                    
12
                    
133			<td>TRUE/FALSE (boolean)</td>
                    
134			<td>Use the nav_key value to match active state instead of the id value</td>
                    
135		</tr>
                    
201	<li><strong>hidden</strong> - whether to display the menu item or not.</li>
                    
202	<li><strong>active</strong> - a regular expression that determines whether it should be given active status. If none is specified, it will be the same as the location value (e.g. about/history$|about/contact$). 
                    
203		You can also use the <dfn>:children</dfn> active magic selector, which will highlight a menu item if it or any of it's sub pages are active. 
                    
208<p>Below is an common example:</p>
                    
209<pre class="brush: php">
                    
210$nav = array();
                    
                
Country.php https://gitlab.com/goolic/PrestaShop | PHP | 417 lines
                    
116     * @param bool $active return only active coutries
                    
117     * @param bool $contain_states return only country with states
                    
118     * @param bool $list_states Include the states list with the returned list
                    
121     */
                    
122    public static function getCountries($id_lang, $active = false, $contain_states = false, $list_states = true)
                    
123    {
                    
129		LEFT JOIN `'._DB_PREFIX_.'zone` z ON (z.`id_zone` = c.`id_zone`)
                    
130		WHERE 1'.($active ? ' AND c.active = 1' : '').($contain_states ? ' AND c.`contains_states` = '.(int)$contain_states : '').'
                    
131		ORDER BY cl.name ASC');
                    
138            foreach ($result as $row) {
                    
139                if (isset($countries[$row['id_country']]) && $row['active'] == 1) { /* Does not keep the state if its country has been disabled and not selected */
                    
140                        $countries[$row['id_country']]['states'][] = $row;
                    
341
                    
342    public static function containsStates($id_country)
                    
343    {
                    
                
hostkreskoweczki.py https://gitlab.com/nunigaia/iptvplayer-for-e2 | Python | 318 lines
                    
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"
                    
64        self.MAIN_CAT_TAB = [{'icon':self.DEFAULT_ICON, 'category':'list_abc',        'title': 'Alfabetycznie',   'url':self.MAIN_URL + 'index.html'},
                    
65                             {'icon':self.DEFAULT_ICON, 'category':'list_items',      'title': 'Ostatnio dodane', 'url':self.MAIN_URL + 'index.html'},
                    
66                             {'icon':self.DEFAULT_ICON, 'category':'list_items',      'title': 'Anime',           'url':self.MAIN_URL + 'typ/anime/'},
                    
179            
                    
180        videoData = self.cm.ph.getSearchGroups(videoUrl, "/embed/proxy[^.]+?.php")
                    
181        if '' != videoData:
                    
                
index.php https://github.com/shamilcm/wireus.git | PHP | 291 lines
                    
107                                $username=$_SESSION['username'];
                    
108                                $sql_status=dbconfn()->prepare("select status from w_membership where groupid='$gid' and username='$username';");
                    
109                                $sql_status->execute();
                    
136                                        echo "<input type=\"hidden\" name=\"username\" value=\"$username\"/>";
                    
137                                        echo "<input type=\"hidden\" name=\"status\" value=\"$status\"/>";
                    
138                                        echo "<input type=\"submit\" value=\"Delete Group\" />";
                    
146                                        echo "<input type=\"hidden\" name=\"username\" value=\"$username\"/>";
                    
147                                        echo "<input type=\"hidden\" name=\"status\" value=\"$status\"/>";
                    
148                                        echo "<input type=\"submit\" value=\"Cancel Request\" />";
                    
178                        ?>
                    
179                                <div class="status"><div id="statusmsg"></div></div>
                    
180                        
                    
210				        $count=0;
                    
211				      if($status=='O' || $status=='A')
                    
212				       { echo "<div id=\"sendmsgbox\">";
                    
                
sbhnddma.h https://github.com/Entropy512/linux_kernel_sgh-i997r.git | C Header | 343 lines
                    
9 * under the terms of the GNU General Public License version 2 (the "GPL"),
                    
10 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
                    
11 * following added to such license:
                    
93#define	XS_CD_MASK	0x0fff			/* current descriptor pointer */
                    
94#define	XS_XS_MASK	0xf000			/* transmit state */
                    
95#define	XS_XS_SHIFT	12
                    
126
                    
127/* receive channel status */
                    
128#define	RS_CD_MASK	0x0fff			/* current descriptor pointer */
                    
157#define	FA_SEL_RSD	0xe0000			/* receive frame status data */
                    
158#define	FA_SEL_RSP	0xf0000			/* receive frame status pointers */
                    
159
                    
180	uint32	addrhigh;		/* descriptor ring base address bits 63:32 (8K aligned) */
                    
181	uint32	status0;		/* current descriptor, xmt state */
                    
182	uint32	status1;		/* active descriptor, xmt error */
                    
                
linear_solver.h https://gitlab.com/khumba/cglab | C Header | 478 lines
                    
27 *    YEAR=November 2005,
                    
28 *    URL=http://www.loria.fr/~levy/php/article.php?pub=../publications/papers/2005/Numerics
                    
29 * }
                    
421
                    
422    std::string state_to_string(State s) {
                    
423            switch(s) {
                    
439
                    
440    void check_state(State s) {
                    
441            CGAL_USE(s);
                    
444
                    
445    void transition(State from, State to) {
                    
446            check_state(from) ;
                    
459    // --------------- construction -----------------------
                    
460    State state_ ;
                    
461    unsigned int current_row_ ;
                    
                
TextArea.php https://gitlab.com/ElvisAns/tiki | PHP | 377 lines
                    
1<?php
                    
2
                    
16{
                    
17    public static function getTypes()
                    
18    {
                    
158    {
                    
159        static $firstTime = true;
                    
160
                    
                
Resource.php https://github.com/rakesh-sankar/PHP-Framework-Benchmark.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
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 $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
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');
                    
90        }
                    
91        require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
permissions.inc.php https://github.com/martinf55/revolution.git | PHP | 193 lines
                    
1<?php
                    
2/**
                    
65$_lang['perm.error_log_view_desc'] = 'Das Fehlerprotokoll anzeigen.';
                    
66$_lang['perm.export_static_desc'] = 'Die Site in statische HTML-Dateien exportieren.';
                    
67$_lang['perm.file_create_desc'] = 'Dateien anlegen.';
                    
78$_lang['perm.home_desc'] = 'Die Manager-Startseite anzeigen.';
                    
79$_lang['perm.import_static_desc'] = 'Import-Seiten anzeigen oder benutzen.';
                    
80$_lang['perm.languages_desc'] = 'Lexikon-Sprachen bearbeiten oder anzeigen.';
                    
105$_lang['perm.new_snippet_desc'] = 'Neue Snippets anlegen.';
                    
106$_lang['perm.new_static_resource_desc'] = 'Neue statische Ressourcen anlegen.';
                    
107$_lang['perm.new_symlink_desc'] = 'Neue Symlinks anlegen.';
                    
                
facebook.php https://github.com/copongcopong/CakePHP-Facebook-Plugin.git | PHP | 425 lines
                    
1<?php
                    
2/**
                    
20    */
                    
21  var $__fbShareScript = 'http://static.ak.fbcdn.net/connect.php/js/FB.Share';
                    
22  
                    
176    else {
                    
177      $retval = $this->Html->link($options['label'], 'http://www.facebook.com/sharer.php', array('share_url' => $url, 'type' => $options['type'], 'name' => $options['anchor']));
                    
178      $retval .= $this->Html->script($this->__fbShareScript);
                    
381		          session : {$session}, // don't refetch the session when PHP already has it
                    
382		          status  : true, // check login status
                    
383		          cookie  : true, // enable cookies to allow the server to access the session
                    
                
user.inc.php https://gitlab.com/haque.mdmanzurul/modx-improve-carolyn | PHP | 202 lines
                    
1<?php
                    
2/**
                    
87$_lang['user_err_not_specified'] = 'No user specified!';
                    
88$_lang['user_err_not_specified_blockedafter'] = 'Please state the blocked after date in mm/dd/yyyy format. ';
                    
89$_lang['user_err_not_specified_blockeduntil'] = 'Please state the blocked until date in mm/dd/yyyy format. ';
                    
89$_lang['user_err_not_specified_blockeduntil'] = 'Please state the blocked until date in mm/dd/yyyy format. ';
                    
90$_lang['user_err_not_specified_dob'] = 'Please state the birthdate in mm/dd/yyyy format. ';
                    
91$_lang['user_err_not_specified_email'] = 'Please specify a valid email address.';
                    
188$_lang['user_settings_desc'] = 'Here you can change specific settings for the user.';
                    
189$_lang['user_state'] = 'Status';
                    
190$_lang['user_sudo'] = 'Sudo User';
                    
                
shell.test.php https://github.com/cgajardo/repositorium.git | PHP | 501 lines
                    
8 *
                    
9 * CakePHP :  Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2006-2010, Cake Software Foundation, Inc.
                    
15 * @copyright     Copyright 2006-2010, Cake Software Foundation, Inc.
                    
16 * @link          http://cakephp.org CakePHP Project
                    
17 * @package       cake
                    
18 * @subpackage    cake.tests.cases.console.libs
                    
19 * @since         CakePHP v 1.2.0.7726
                    
20 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
370
                    
371		$path = $expected = DS . 'tmp' . DS . 'ab' . DS . 'index.php';
                    
372		$this->assertEqual($this->Shell->shortPath($path), $expected);
                    
394
                    
395		$path = APP . 'index.php';
                    
396		$expected = DS . basename(APP) . DS . 'index.php';
                    
                
admin.php https://github.com/Brucee/pyrocms.git | PHP | 562 lines
                    
85				'field'	=> 'status',
                    
86				'label'	=> 'lang:pages.status_label',
                    
87				'rules'	=> 'trim|alpha|required'
                    
228
                    
229			if ($input['status'] == 'live')
                    
230			{
                    
344			
                    
345			if ($page->status != 'live' and $input['status'] == 'live')
                    
346			{
                    
543			
                    
544					<li id="page_<?php echo $page['id']; ?>">
                    
545						<div>
                    
545						<div>
                    
546							<a href="#" rel="<?php echo $page['id'] . '">' . $page['title']; ?></a>
                    
547						</div>
                    
                
behat_config_manager.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 279 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
27
                    
28require_once(__DIR__ . '/../lib.php');
                    
29require_once(__DIR__ . '/behat_command.php');
                    
29require_once(__DIR__ . '/behat_command.php');
                    
30require_once(__DIR__ . '/../../testing/classes/tests_finder.php');
                    
31
                    
57     */
                    
58    public static function update_config_file($component = '', $testsrunner = true) {
                    
59        global $CFG;
                    
116     */
                    
117    public static function get_components_steps_definitions() {
                    
118
                    
131            $diriterator = new DirectoryIterator($componentpath . self::get_behat_tests_path());
                    
132            $regite = new RegexIterator($diriterator, '|behat_.*\.php$|');
                    
133
                    
                
wp-settings.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 323 lines
                    
1<?php
                    
2/**
                    
5 *
                    
6 * Allows for some configuration in wp-config.php (see default-constants.php)
                    
7 *
                    
7 *
                    
8 * @internal This file must be parsable by PHP4.
                    
9 *
                    
20// Include files required for initialization.
                    
21require( ABSPATH . WPINC . '/load.php' );
                    
22require( ABSPATH . WPINC . '/default-constants.php' );
                    
61if ( WP_CACHE )
                    
62	WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' );
                    
63
                    
315 *
                    
316 * AJAX requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for
                    
317 * users not logged in.
                    
                
instances.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 244 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
25
                    
26require('../config.php');
                    
27
                    
44
                    
45$PAGE->set_url('/enrol/instances.php', array('id'=>$course->id));
                    
46$PAGE->set_pagelayout('admin');
                    
104            echo $OUTPUT->header();
                    
105            $yesurl = new moodle_url('/enrol/instances.php', array('id'=>$course->id, 'action'=>'delete', 'instance'=>$instance->id, 'confirm'=>1,'sesskey'=>sesskey()));
                    
106            $displayname = $plugin->get_instance_name($instance);
                    
119            $plugin = $plugins[$instance->enrol];
                    
120            if ($instance->status != ENROL_INSTANCE_DISABLED) {
                    
121                $plugin->update_status($instance, ENROL_INSTANCE_DISABLED);
                    
127            $plugin = $plugins[$instance->enrol];
                    
128            if ($instance->status != ENROL_INSTANCE_ENABLED) {
                    
129                $plugin->update_status($instance, ENROL_INSTANCE_ENABLED);
                    
                
zone.php https://bitbucket.org/sandeepbhaskar/inspiredliving.git | PHP | 441 lines
                    
1<?php 
                    
2class ControllerLocalisationZone extends Controller {
                    
269
                    
270		$this->data['entry_status'] = $this->language->get('entry_status');
                    
271		$this->data['entry_name'] = $this->language->get('entry_name');
                    
333		if (isset($this->request->post['status'])) {
                    
334			$this->data['status'] = $this->request->post['status'];
                    
335		} elseif (!empty($zone_info)) {
                    
335		} elseif (!empty($zone_info)) {
                    
336			$this->data['status'] = $zone_info['status'];
                    
337		} else {
                    
337		} else {
                    
338			$this->data['status'] = '1';
                    
339		}
                    
                
ThreeZero.php https://github.com/ksecor/civicrm.git | PHP | 271 lines
                    
1<?php
                    
2
                    
35
                    
36require_once 'CRM/Upgrade/Form.php';
                    
37require_once 'CRM/Core/OptionGroup.php';
                    
37require_once 'CRM/Core/OptionGroup.php';
                    
38require_once 'CRM/Core/OptionValue.php';
                    
39
                    
41
                    
42    function verifyPreDBState( &$errorMessage ) {
                    
43        $latestVer  = CRM_Utils_System::version();
                    
47        if ( CRM_Core_DAO::checkTableExists( 'civicrm_navigation' ) &&
                    
48             CRM_Core_DAO::checkTableExists( 'civicrm_participant_status_type' ) ) {
                    
49            $errorMessage =  ts("Database check failed - it looks like you have already upgraded to the latest version (v%1) of the database. OR If you think this message is wrong, it is very likely that this a partially upgraded db and you will need to reload the correct db on which upgrade was never tried.", array( 1 => $latestVer ));
                    
94        if (!CRM_Core_DAO::checkFieldExists('civicrm_report_instance', 'description')) {
                    
95            require_once 'CRM/Core/DAO/Domain.php';
                    
96            $domain = new CRM_Core_DAO_Domain;
                    
                
Tab.php https://github.com/ksecor/civicrm.git | PHP | 344 lines
                    
1<?php
                    
2
                    
35
                    
36require_once 'CRM/Contact/Page/View.php';
                    
37
                    
43     * @var array
                    
44     * @static
                    
45     */
                    
45     */
                    
46    static $_links = null;
                    
47    
                    
59     */
                    
60    static function &honorLinks()
                    
61    {
                    
94    {
                    
95        require_once 'CRM/Contribute/BAO/Contribution.php';
                    
96
                    
                
date.php https://github.com/chemila/kohana.git | PHP | 566 lines
                    
28	 * Timezone for formatted_time
                    
29	 * @link http://uk2.php.net/manual/en/timezones.php
                    
30	 * @var  string
                    
39	 *
                    
40	 * [!!] A list of time zones that PHP supports can be found at
                    
41	 * <http://php.net/timezones>.
                    
166	 */
                    
167	public static function ampm($hour)
                    
168	{
                    
183	 */
                    
184	public static function adjust($hour, $ampm)
                    
185	{
                    
548	 *
                    
549	 * @see     http://php.net/manual/en/datetime.construct.php
                    
550	 * @param   string  datetime_str     datetime string
                    
                
class-wpb-map.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 563 lines
                    
1<?php
                    
2/**
                    
12 * This class maps shortcodes settings to VC editors. You can manage add new shortcodes or manage default shortcodes
                    
13 * mapped in config/map.php. For developers it is possible to use API functions to add update settings attributes.
                    
14 *
                    
14 *
                    
15 * @see config/map.php
                    
16 * @see include/helpers/helpers_api.php
                    
24	 */
                    
25	protected static $sc = Array();
                    
26
                    
29	 */
                    
30	protected static $categories = Array();
                    
31
                    
34	 */
                    
35	protected static $user_sc = false;
                    
36
                    
                
CachePdo.html https://github.com/TimBroddin/MegaCache.git | HTML | 367 lines
                    
23	<div class="info-box-body">
                    
24        		<!-- ========== Info from phpDoc block ========= -->
                    
25<p class="short-description">CachePdo class.</p>
                    
31		<p class="notes">
                    
32			Located in <a class="field" href="_adapters---CachePdo.php.html">/adapters/CachePdo.php</a> (line <span class="field">20</span>)
                    
33		</p>
                    
110													<span class="var-title">
                    
111								<span class="var-name"><a href="../MegaCache/BaseCache.html#var$sessionStats">BaseCache::$sessionStats</a></span><br>
                    
112							</span>
                    
346													<span class="method-name"><a href="../MegaCache/BaseCache.html#methodget">BaseCache::get()</a></span><br>
                    
347													<span class="method-name"><a href="../MegaCache/BaseCache.html#methodgetStats">BaseCache::getStats()</a></span><br>
                    
348													<span class="method-name"><a href="../MegaCache/BaseCache.html#methodglobalStats">BaseCache::globalStats()</a></span><br>
                    
363	<p class="notes" id="credit">
                    
364		Documentation generated on Sat, 30 Oct 2010 10:42:46 -0500 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
                    
365	</p>
                    
                
route.php https://github.com/ymtn/core.git | PHP | 589 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
51	 */
                    
52	public static $default_protocol = 'http://';
                    
53
                    
56	 */
                    
57	public static $localhosts = array(FALSE, '', 'local', 'localhost');
                    
58
                    
61	 */
                    
62	public static $default_action = 'index';
                    
63
                    
66	 */
                    
67	public static $cache = FALSE;
                    
68
                    
71	 */
                    
72	protected static $_routes = array();
                    
73
                    
                
string.rst https://gitlab.com/albertkeba/docs | ReStructuredText | 300 lines
                    
30
                    
31.. php:staticmethod:: uuid()
                    
32
                    
53        // result contains
                    
54        array('cakephp', "'great framework'", 'php');
                    
55
                    
55
                    
56.. php:staticmethod:: insert($string, $data, $options = array())
                    
57
                    
63
                    
64.. php:staticmethod:: cleanInsert($string, $options = array())
                    
65
                    
81
                    
82.. php:staticmethod:: wrap($text, $options = array())
                    
83
                    
                
function_scope.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 444 lines
                    
16
                    
17#ifndef incl_HPHP_FUNCTION_SCOPE_H_
                    
18#define incl_HPHP_FUNCTION_SCOPE_H_
                    
44DECLARE_BOOST_TYPES(ParameterExpression);
                    
45DECLARE_BOOST_TYPES(MethodStatement);
                    
46
                    
80                const std::string &name, const std::string &originalName,
                    
81                StatementPtr stmt, ModifierExpressionPtr modifiers, bool user);
                    
82
                    
378
                    
379    void setMaybeStatic() { m_maybeStatic = true; }
                    
380    bool getMaybeStatic() { return m_maybeStatic; }
                    
385  private:
                    
386    bool m_maybeStatic; // this could be a static method
                    
387    bool m_maybeRefReturn;
                    
                
rpcconsole.cpp https://gitlab.com/Quetzalcoatl/VekitaCoin | C++ | 433 lines
                    
90            case '\'': state = STATE_SINGLEQUOTED; break;
                    
91            case '\\': state = STATE_ESCAPE_OUTER; break;
                    
92            case ' ': case '\n': case '\t':
                    
97                }
                    
98                state = STATE_EATING_SPACES;
                    
99                break;
                    
118        case STATE_ESCAPE_OUTER: // '\' outside quotes
                    
119            curarg += ch; state = STATE_ARGUMENT;
                    
120            break;
                    
122            if(ch != '"' && ch != '\\') curarg += '\\'; // keep '\' for everything but the quote and '\' itself
                    
123            curarg += ch; state = STATE_DOUBLEQUOTED;
                    
124            break;
                    
126    }
                    
127    switch(state) // final state
                    
128    {
                    
                
index.html https://gitlab.com/essere.lab.public/qualitas.class-corpus | HTML | 305 lines
                    
89<br>
                    
90<span class="element"><a href="http://jasperforge.org/scm/viewvc.php/tags/jr-3-7-4/jasperreports/demo/samples/xlsdatasource/?root=jasperreports" target="_blank">Browse Sample Source Files on SVN</a></span>
                    
91<table cellspacing="0" cellpadding="0" border="0" width="100%">
                    
221<pre>
                    
222  private static JRXlsDataSource getDataSource() throws JRException
                    
223  {
                    
226    {
                    
227      String[] columnNames = new String[]{"city", "id", "name", "address", "state"};
                    
228      int[] columnIndexes = new int[]{0, 2, 3, 4, 5};
                    
255    states.add("Trial");
                    
256    parameters.put("IncludedStates", states);
                    
257
                    
276<br>
                    
277&nbsp;&nbsp;&lt;filterExpression&gt;&lt;![CDATA[$P{IncludedStates}.contains($F{state}) ? Boolean.TRUE : Boolean.FALSE]]&gt;&lt;/filterExpression&gt;
                    
278</code>
                    
                
user.inc.php https://github.com/goldsky/revolution.git | PHP | 202 lines
                    
1<?php
                    
2/**
                    
87$_lang['user_err_not_specified'] = 'No user specified!';
                    
88$_lang['user_err_not_specified_blockedafter'] = 'Please state the blocked after date in mm/dd/yyyy format. ';
                    
89$_lang['user_err_not_specified_blockeduntil'] = 'Please state the blocked until date in mm/dd/yyyy format. ';
                    
89$_lang['user_err_not_specified_blockeduntil'] = 'Please state the blocked until date in mm/dd/yyyy format. ';
                    
90$_lang['user_err_not_specified_dob'] = 'Please state the birthdate in mm/dd/yyyy format. ';
                    
91$_lang['user_err_not_specified_email'] = 'Please specify a valid email address.';
                    
188$_lang['user_settings_desc'] = 'Here you can change specific settings for the user.';
                    
189$_lang['user_state'] = 'State';
                    
190$_lang['user_sudo'] = 'Sudo User';
                    
                
ui.class.php https://gitlab.com/x33n/ampache | PHP | 355 lines
                    
1<?php
                    
2/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
                    
27{
                    
28    private static $_classes;
                    
29    private static $_ticker;
                    
29    private static $_ticker;
                    
30    private static $_icon_cache;
                    
31
                    
41     */
                    
42    public static function access_denied($error = 'Access Denied')
                    
43    {
                    
46        header("HTTP/1.1 403 $error");
                    
47        require_once AmpConfig::get('prefix') . '/templates/show_denied.inc.php';
                    
48        exit;
                    
56     */
                    
57    public static function ajax_include($template)
                    
58    {
                    
                
class-wp-ms-users-list-table.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 301 lines
                    
152
                    
153			foreach ( $status_list as $status => $col ) {
                    
154				if ( $user->$status )
                    
176							<label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>"><?php echo sprintf( __( 'Select %s' ), $user->user_login ); ?></label>
                    
177							<input type="checkbox" id="blog_<?php echo $user->ID ?>" name="allusers[]" value="<?php echo esc_attr( $user->ID ) ?>" />
                    
178						</th>
                    
186						echo "<td $attributes>"; ?>
                    
187							<?php echo $avatar; ?><strong><a href="<?php echo $edit_link; ?>" class="edit"><?php echo $user->user_login; ?></a><?php
                    
188							if ( in_array( $user->user_login, $super_admins ) )
                    
191							<br/>
                    
192							<?php
                    
193								$actions = array();
                    
196								if ( current_user_can( 'delete_user', $user->ID ) && ! in_array( $user->user_login, $super_admins ) ) {
                    
197									$actions['delete'] = '<a href="' . $delete = esc_url( network_admin_url( add_query_arg( '_wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), wp_nonce_url( 'users.php', 'deleteuser' ) . '&amp;action=deleteuser&amp;id=' . $user->ID ) ) ) . '" class="delete">' . __( 'Delete' ) . '</a>';
                    
198								}
                    
                
admin.php https://bitbucket.org/seyar/kinda.local.git | PHP | 438 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2
                    
38    public $cache;
                    
39    static public $intermediate_vars = array();
                    
40
                    
65            $user = Sprig::factory('user')
                    
66                            ->values(array('id' => $id), array('status' => 1))
                    
67                            ->load();
                    
284
                    
285    static public function delete_directory($dir)
                    
286    {
                    
305
                    
306    public static function transliterate($str)
                    
307    {
                    
328
                    
329    public static function to_url($str)
                    
330    {
                    
                
shell.test.php https://github.com/hack521/contenidopago.git | PHP | 501 lines
                    
8 *
                    
9 * CakePHP :  Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2011, Cake Software Foundation, Inc.
                    
15 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc.
                    
16 * @link          http://cakephp.org CakePHP Project
                    
17 * @package       cake
                    
18 * @subpackage    cake.tests.cases.console.libs
                    
19 * @since         CakePHP v 1.2.0.7726
                    
20 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
370
                    
371		$path = $expected = DS . 'tmp' . DS . 'ab' . DS . 'index.php';
                    
372		$this->assertEqual($this->Shell->shortPath($path), $expected);
                    
394
                    
395		$path = APP . 'index.php';
                    
396		$expected = DS . basename(APP) . DS . 'index.php';
                    
                
Profiler.php https://github.com/kervin/kyzstudio.git | PHP | 471 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Profiler.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
88    /**
                    
89     * Stores enabled state of the profiler.  If set to False, calls to
                    
90     * queryStart() will simply be ignored.
                    
143    /**
                    
144     * Get the current state of enable.  If True is returned,
                    
145     * the profiler is enabled.
                    
246     *
                    
247     * @param  string  $queryText   SQL statement
                    
248     * @param  integer $queryType   OPTIONAL Type of query, one of the Zend_Db_Profiler::* constants
                    
280         */
                    
281        #require_once 'Zend/Db/Profiler/Query.php';
                    
282        $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType);
                    
                
install-location.php https://github.com/nsswaga/OSClass.git | PHP | 418 lines
                    
8
                    
9require_once ABS_PATH . 'config.php';
                    
10require_once LIB_PATH . 'osclass/db.php';
                    
12require_once LIB_PATH . 'osclass/helpers/hDatabaseInfo.php';
                    
13require_once LIB_PATH . 'osclass/install-functions.php';
                    
14require_once LIB_PATH . 'osclass/formatting.php';
                    
16require_once LIB_PATH . 'osclass/utils.php';
                    
17require_once LIB_PATH . 'osclass/helpers/hPreference.php' ;
                    
18
                    
31$result = basic_info();
                    
32$json_message['email_status']   = $result['email_status'];
                    
33$json_message['password']       = $result['s_password'];
                    
96    try{
                    
97        require_once LIB_PATH . 'phpmailer/class.phpmailer.php' ;
                    
98        $mail = new PHPMailer(true) ;
                    
                
Value.php https://github.com/sitengine/sitengine.git | PHP | 401 lines
                    
30/** Zend_XmlRpc_Value_Base64 */
                    
31require_once 'Zend/XmlRpc/Value/Base64.php';
                    
32
                    
68 * Using this function, users/Zend_XmlRpc_Client object can create the Zend_XmlRpc_Value objects
                    
69 * from PHP variables, XML string or by specifing the exact XML-RPC natvie type
                    
70 *
                    
101    /**
                    
102     * Specify that the XML-RPC native type will be auto detected from a PHP variable type
                    
103     */
                    
242     */
                    
243    private static function _phpVarToNativeXmlRpc($value)
                    
244    {
                    
343
                    
344                // PHP 5.2.4 introduced a regression in how empty($xml->value) 
                    
345                // returns; need to look for the item specifically
                    
                
instructions_de.htm https://bitbucket.org/vins13pattar/adaptive-images.git | HTML | 177 lines
                    
22    <h2>Basis Anweisungen</h2>
                    
23    <p>Kopieren Sie <code>adaptive-images.php</code> und <code>.htaccess</code> 
                    
24    in das Hauptverzeichniss ihres Internetauftritts. 
                    
33    <p>Das wars. Sie sind fertig</p>
                    
34    <p>ANMERKUNG: Die <code>ai-cookie.php</code> Datei wird normalerweise nicht 
                    
35    benötigt. Nur beim Einsatz der <a href="#alternate">Alternativen Methode</a> 
                    
55directories
                    
56# to adaptive-images.php so we can select appropriately sized versions
                    
57RewriteRule \.(?:jpe?g|gif|png)$ adaptive-images.php
                    
60
                    
61<p>Gibt es keinen solchen Abschnitt in ihrer Datei kopieren Sie stattdesen folgenden Code in die Datei:</p>
                    
62
                    
77  directories
                    
78  # to adaptive-images.php so we can select appropriately sized versions
                    
79  RewriteRule \.(?:jpe?g|gif|png)$ adaptive-images.php
                    
                
filing_costs.php https://bitbucket.org/amitholkar/zenfile-18-05.git | PHP | 198 lines
                    
39        ?>
                    
40        <div class="finance_country <?php echo $status ?> custom_accordion" ref="filing_cost_country_<?php echo $invoice->id ?>"><?php echo $invoice->country ?></div>
                    
41
                    
45                <div>
                    
46                    <h2><?php echo $invoice->country ?> - <?php echo $invoice->fa_invoice_status ?></h2>
                    
47                </div>
                    
96                            <input type="hidden" name="additional_fee_id[]" value="<?php echo $additional_fee->additional_fee_id ?>">
                    
97                            <?php echo $currency_sign ?><input title="<?php echo $additional_fee->additional_fee_description_by_fa ?>" name="additional_fee_corrected_by_pm[]" value="<?php echo $additional_fee_value ?>" type="text"/>
                    
98                        </div>
                    
116                        <?php foreach($invoice->invoices as $file) { ?>
                    
117                            <a href="<?php echo base_url() ?>cases/download_file/<?php echo $file->file_id ?>"><?php echo $file->filename ?></a>
                    
118                        <?php } ?>
                    
185
                    
186                <?php if($invoice->fa_invoice_status != 'approved') { ?>
                    
187                    <button  value="approved" name="fa_invoice_status" class="green">APPROVE</button>
                    
                
runner.js https://github.com/wycats/todomvc.git | JavaScript | 319 lines
                    
6 * Licensed under the MIT License at:
                    
7 * 		http://www.opensource.org/licenses/mit-license.php
                    
8 *
                    
68	 * addition, at the end of each function's execution, it will restore
                    
69	 * curl.js's cache back to the state it was before execution, so each
                    
70	 * function can be assured it has a clean environment.
                    
                
NpgsqlSchema.cs https://github.com/iainlane/mono.git | C# | 286 lines
                    
7//  npgsql-general@gborg.postgresql.org
                    
8//  http://gborg.postgresql.org/project/npgsql/projdisplay.php
                    
9//
                    
50        /// <returns>The MetaDataCollections</returns>
                    
51        internal static DataTable GetMetaDataCollections()
                    
52        {
                    
75        /// <returns>The Restrictions</returns>
                    
76        internal static DataTable GetRestrictions()
                    
77        {
                    
                
bcm_umi_nand.c https://github.com/Mengqi/linux-2.6.git | C | 579 lines
                    
6* under the terms of the GNU General Public License version 2, available at
                    
7* http://www.broadcom.com/licenses/GPLv2.php (the "GPL").
                    
8*
                    
51/* ---- Private Constants and Types -------------------------------------- */
                    
52static const __devinitconst char gBanner[] = KERN_INFO \
                    
53	"BCM UMI MTD NAND Driver: 1.00\n";
                    
57#if NAND_ECC_BCH
                    
58static uint8_t scan_ff_pattern[] = { 0xff };
                    
59
                    
59
                    
60static struct nand_bbt_descr largepage_bbt = {
                    
61	.options = 0,
                    
92/* ---- Private Function Prototypes -------------------------------------- */
                    
93static void bcm_umi_nand_read_buf(struct mtd_info *mtd, u_char * buf, int len);
                    
94static void bcm_umi_nand_write_buf(struct mtd_info *mtd, const u_char * buf,
                    
                
Key.php https://github.com/drobbins/s3db.git | PHP | 316 lines
                    
1<?php
                    
2/**
                    
9 *
                    
10 * LICENSE: This source file is subject to version 3.0 of the PHP license
                    
11 * that is available through the world-wide-web at the following URI:
                    
12 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
                    
13 * the PHP License and are unable to obtain it through the web, please
                    
14 * send a note to license@php.net so we can mail you a copy immediately.
                    
19 * @copyright  2005, 2006 Alexander Valyalkin
                    
20 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
21 * @version    1.2.0b
                    
32 */
                    
33require_once 'MathLoader.php';
                    
34
                    
89 * @copyright  2005, 2006 Alexander Valyalkin
                    
90 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
91 * @link       http://pear.php.net/package/Crypt_RSA
                    
                
ValidationStatistics_body.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 307 lines
                    
76		// Headings (for a positive grep result):
                    
77		// validationstatistics-ns, validationstatistics-total, validationstatistics-stable,
                    
78		// validationstatistics-latest, validationstatistics-synced, validationstatistics-old
                    
187			global $wgPhpCli;
                    
188			$ext = !empty( $wgPhpCli ) ? $wgPhpCli : 'php';
                    
189			$path = wfEscapeShellArg( dirname( __FILE__ ) . '/../maintenance/updateStats.php' );
                    
242	protected function getTotalPages( $ns ) {
                    
243		$stats = $this->getStats();
                    
244		return isset( $stats['totalPages-NS'][$ns] )
                    
263	protected function getPercentiles() {
                    
264		$stats = $this->getStats();
                    
265		return $stats['reviewLag-percentile'];
                    
268	protected function getLastUpdate() {
                    
269		$stats = $this->getStats();
                    
270		return $stats['statTimestamp'];
                    
                
ClassLoader.php https://gitlab.com/remyvianne/krowkaramel | PHP | 481 lines
                    
1<?php
                    
2
                    
39 * @author Jordi Boggiano <j.boggiano@seld.be>
                    
40 * @see    https://www.php-fig.org/psr/psr-0/
                    
41 * @see    https://www.php-fig.org/psr/psr-4/
                    
61
                    
62    private static $registeredLoaders = array();
                    
63
                    
376
                    
377        $file = $this->findFileWithExtension($class, '.php');
                    
378
                    
400     */
                    
401    public static function getRegisteredLoaders()
                    
402    {
                    
                
template.php https://bitbucket.org/frazras/higgler.git | PHP | 384 lines
                    
1<?php
                    
2
                    
131  // control page regions (for example, the Block module) are enabled.
                    
132  if (!drupal_static('system_main_content_added', FALSE)) {
                    
133    $vars['content']['system_main'] = drupal_set_page_content();
                    
                
update.php https://bitbucket.org/sephora99/kmirock.git | PHP | 420 lines
                    
27	include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
                    
28	$php_version = phpversion();
                    
29
                    
61		'version'           => $wp_version,
                    
62		'php'               => $php_version,
                    
63		'locale'            => $locale,
                    
146	// Check for updated every 60 minutes if hitting update pages; else, check every 12 hours.
                    
147	$timeout = in_array( current_filter(), array( 'load-plugins.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200;
                    
148	$time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked );
                    
211function wp_update_themes() {
                    
212	include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
                    
213
                    
225	// Check for updated every 60 minutes if hitting update pages; else, check every 12 hours.
                    
226	$timeout = in_array( current_filter(), array( 'load-themes.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200;
                    
227	$time_not_changed = isset( $last_update->last_checked ) && $timeout > ( time( ) - $last_update->last_checked );
                    
                
mkdist.php https://gitlab.com/0072016/appengine-php | PHP | 548 lines
                    
15
                    
16$dist_dir = $build_dir . "/php-" . phpversion();
                    
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
                    
210/* the core dll */
                    
211copy("$build_dir/php.exe", "$dist_dir/php.exe");
                    
212copy("$build_dir/$phpdll", "$dist_dir/$phpdll");
                    
240	"win32/install.txt" => "install.txt",
                    
241	"win32/pws-php5cgi.reg" => "pws-php5cgi.reg",
                    
242	"win32/pws-php5isapi.reg" => "pws-php5isapi.reg",
                    
461}
                    
462copy('run-tests.php', $test_dir . '/run-test.php');
                    
463
                    
495
                    
496	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
                    
497	 * broken out of the tarballs */
                    
                
class-inl.h https://gitlab.com/0072016/0072016-PHP.LLC | C Header | 522 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#ifndef incl_HPHP_VM_CLASS_INL_H_
                    
18#error "class-inl.h should only be included by class.h"
                    
                
Profiler.php https://github.com/grjones/qframe.git | PHP | 471 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Profiler.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
88    /**
                    
89     * Stores enabled state of the profiler.  If set to False, calls to
                    
90     * queryStart() will simply be ignored.
                    
143    /**
                    
144     * Get the current state of enable.  If True is returned,
                    
145     * the profiler is enabled.
                    
246     *
                    
247     * @param  string  $queryText   SQL statement
                    
248     * @param  integer $queryType   OPTIONAL Type of query, one of the Zend_Db_Profiler::* constants
                    
280         */
                    
281        require_once 'Zend/Db/Profiler/Query.php';
                    
282        $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType);
                    
                
BaseFcvalinmold.php https://github.com/cidesa/siga-universitario.git | PHP | 714 lines
                    
1<?php
                    
2
                    
7	
                    
8	protected static $peer;
                    
9
                    
469	
                    
470	public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
                    
471	{
                    
524	
                    
525	public function toArray($keyType = BasePeer::TYPE_PHPNAME)
                    
526	{
                    
546	
                    
547	public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
                    
548	{
                    
598	
                    
599	public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
                    
600	{
                    
                
ProcessorTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 435 lines
                    
28    /**
                    
29     * @var ItemFactory |\PHPUnit_Framework_MockObject_MockObject
                    
30     */
                    
33    /**
                    
34     * @var StoreManagerInterface |\PHPUnit_Framework_MockObject_MockObject
                    
35     */
                    
38    /**
                    
39     * @var State |\PHPUnit_Framework_MockObject_MockObject
                    
40     */
                    
40     */
                    
41    protected $stateMock;
                    
42
                    
48    /**
                    
49     * @var Object |\PHPUnit_Framework_MockObject_MockObject
                    
50     */
                    
                
DefaultTableMapping.php https://gitlab.com/reasonat/test8 | PHP | 396 lines
                    
1<?php
                    
2
                    
55   *
                    
56   * This data is derived from static::$storageDefinitions, but is stored
                    
57   * separately to avoid repeated processing.
                    
69   *
                    
70   * This data is derived from static::$storageDefinitions, static::$fieldNames,
                    
71   * and static::$extraColumns, but is stored separately to avoid repeated
                    
                
Clients.php https://gitlab.com/my-application.bjoernbartels.earth/my-application | PHP | 322 lines
                    
1<?php
                    
2/**
                    
48        $this->phone        = (isset($data['phone'])) ? $data['phone'] : null;
                    
49        $this->statistics    = (isset($data['statistics'])) ? $data['statistics'] : null;
                    
50    }
                    
220                    array(
                    
221                    'name'     => 'statistics',
                    
222                    'required' => false,
                    
                
ibase_driver.php https://gitlab.com/carlosambiado89/IntranetPlanEvalWeb | PHP | 396 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
71	/**
                    
72	 * IBase Transaction status flag
                    
73	 *
                    
308	/**
                    
309	 * Update statement
                    
310	 *
                    
325	/**
                    
326	 * Truncate statement
                    
327	 *
                    
329	 *
                    
330	 * If the database does not support the TRUNCATE statement,
                    
331	 * then this method maps to 'DELETE FROM table'
                    
                
BannerServiceImpl.php https://bitbucket.org/blackriver/openx.git | PHP | 344 lines
                    
214    /**
                    
215     * The getBannerDailyStatistics method returns daily statistics for a
                    
216     * banner for a specified period.
                    
227     */
                    
228    function getBannerDailyStatistics($sessionId, $bannerId, $oStartDate, $oEndDate, &$rsStatisticsData)
                    
229    {
                    
254     */
                    
255    function getBannerPublisherStatistics($sessionId, $bannerId, $oStartDate, $oEndDate, &$rsStatisticsData)
                    
256    {
                    
268    /**
                    
269     * The getBannerZoneStatistics method returns zone statistics for a zone for
                    
270     * a specified period.
                    
281     */
                    
282    function getBannerZoneStatistics($sessionId, $bannerId, $oStartDate, $oEndDate, &$rsStatisticsData)
                    
283    {
                    
                
Mail.php https://github.com/magikcypress/bbbweb.git | PHP | 270 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
40 * @copyright   1997-2010 Chuck Hagenbuch
                    
41 * @license     http://opensource.org/licenses/bsd-license.php New BSD License
                    
42 * @version     CVS: $Id: Mail.php 294747 2010-02-08 08:18:33Z clockwerx $
                    
42 * @version     CVS: $Id: Mail.php 294747 2010-02-08 08:18:33Z clockwerx $
                    
43 * @link        http://pear.php.net/package/Mail/
                    
44 */
                    
45
                    
46require_once 'PEAR.php';
                    
47
                    
73     */
                    
74    public static function &factory($driver, $params = array())
                    
75    {
                    
                
service.php https://gitlab.com/alexprowars/bitrix | PHP | 416 lines
                    
78			{
                    
79				static::$auth = $CACHE_MANAGER->Get(static::SERVICE_AUTH_CACHE_ID);
                    
80			}
                    
80			}
                    
81			elseif (!$CACHE_MANAGER->Read(static::SERVICE_AUTH_CACHE_TLL_ERROR, static::SERVICE_AUTH_CACHE_ID_ERROR))
                    
82			{
                    
82			{
                    
83				static::$auth = static::getEngine()->getInterface()->getClientInfo();
                    
84				if (!static::$auth)
                    
122				static::$clientList = $cache->get(static::CLIENT_LIST_CACHE_ID);
                    
123				static::$clientList = is_array(static::$clientList) ? static::$clientList : [];
                    
124			}
                    
304
                    
305		$result = $httpClient->post(static::SERVICE_URL.static::REGISTER, $queryParams);
                    
306		$result = Json::decode($result);
                    
                
Type.php https://bitbucket.org/rybadour/todo_list_site.git | PHP | 303 lines
                    
36 *
                    
37 * @package    PHPUnit
                    
38 * @subpackage Util
                    
38 * @subpackage Util
                    
39 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @copyright  2001-2012 Sebastian Bergmann <sebastian@phpunit.de>
                    
53 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
54 * @link       http://www.phpunit.de/
                    
55 * @since      Class available since Release 3.0.0
                    
58{
                    
59    public static function isType($type)
                    
60    {
                    
159            // There seems to be no other way to check arrays for recursion
                    
160            // http://www.php.net/manual/en/language.types.array.php#73936
                    
161            preg_match_all('/\n            \[(\w+)\] => Array\s+\*RECURSION\*/', print_r($value, TRUE), $matches);
                    
                
eclipse.php https://github.com/kpike/moodle.git | PHP | 307 lines
                    
1<?php
                    
2/**
                    
10 */
                    
11include_once 'unit_tester.php';
                    
12include_once 'test_case.php';
                    
12include_once 'test_case.php';
                    
13include_once 'invoker.php';
                    
14include_once 'socket.php';
                    
14include_once 'socket.php';
                    
15include_once 'mock_objects.php';
                    
16/**#@-*/
                    
105            $this->_message = $this->escapeVal($message);
                    
106            $this->_listener->write('{status:"fail",message:"'.$this->_message.'",group:"'.$this->_group.'",case:"'.$this->_case.'",method:"'.$this->_method.'"}');
                    
107        }
                    
119            $this->_message = $this->escapeVal($message);
                    
120            $this->_listener->write('{status:"error",message:"'.$this->_message.'",group:"'.$this->_group.'",case:"'.$this->_case.'",method:"'.$this->_method.'"}');
                    
121        }
                    
                
ParameterTest.php https://gitlab.com/x33n/respond | PHP | 416 lines
                    
1<?php
                    
2
                    
21        'location'        => 'body',
                    
22        'static'          => 'static!',
                    
23        'filters'         => array('trim', 'json_encode')
                    
36        $this->assertEquals('body', $p->getLocation());
                    
37        $this->assertEquals('static!', $p->getStatic());
                    
38        $this->assertEquals(array('trim', 'json_encode'), $p->getFilters());
                    
47
                    
48    public function testUsesStatic()
                    
49    {
                    
51        $d['default'] = 'booboo';
                    
52        $d['static'] = true;
                    
53        $p = new Parameter($d);
                    
60        $d['default'] = 'foo';
                    
61        $d['static'] = null;
                    
62        $p = new Parameter($d);
                    
                
Core.class.php https://gitlab.com/adamlwalker/generatedata | PHP | 511 lines
                    
1<?php
                    
2
                    
5 * general vars and data for the script. It's used instead of the global namespace to store info needed throughout
                    
6 * the code; the class is static so we don't need to re-instantiate it all over the place, and force it to
                    
7 * reload/re-instantiate the various components.
                    
13
                    
14	// overridable settings that the user may define in settings.php
                    
15	private static $demoMode = false;	
                    
15	private static $demoMode = false;	
                    
16	private static $dbHostname;
                    
17	private static $dbName;
                    
37	private static $releaseDate = "2014-09-06";
                    
38	private static $minimumPHPVersion = "5.3.0";
                    
39	private static $minimumMySQLVersion = "4.1.3";
                    
365	 */
                    
366	public static function getMinimumPHPVersion() {
                    
367		return self::$minimumPHPVersion;
                    
                
index.php https://github.com/karpenoktem/punbb.git | PHP | 244 lines
                    
112		$total_records += $status['Rows'];
                    
113		$total_size += $status['Data_length'] + $status['Index_length'];
                    
114	}
                    
128else if (isset($_PHPA))
                    
129	$php_accelerator = '<a href="http://www.php-accelerator.co.uk/">ionCube PHP Accelerator</a>';
                    
130else if (ini_get('apc.enabled'))
                    
130else if (ini_get('apc.enabled'))
                    
131	$php_accelerator ='<a href="http://www.php.net/apc/">Alternative PHP Cache (APC)</a>';
                    
132else if (ini_get('zend_optimizer.optimization_level'))
                    
213						<li><span><?php echo $lang_admin_index['Operating system'] ?>: <?php echo PHP_OS ?></span></li>
                    
214						<li><span>PHP: <?php echo PHP_VERSION ?> - <a href="<?php echo forum_link($forum_url['admin_index']) ?>?action=phpinfo"><?php echo $lang_admin_index['Show info'] ?></a></span></li>
                    
215						<li><span><?php echo $lang_admin_index['Accelerator'] ?>: <?php echo $php_accelerator ?></span></li>
                    
226						<li><span><?php echo $lang_admin_index['Rows'] ?>: <?php echo forum_number_format($total_records) ?></span></li>
                    
227						<li><span><?php echo $lang_admin_index['Size'] ?>: <?php echo $total_size ?></span></li>
                    
228<?php endif; ?>
                    
                
RbacUsers.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 288 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * RbacUsers.php
                    
5 * @package  rbac-classes-model
                    
29 */
                    
30require_once 'classes/model/om/BaseRbacUsers.php';
                    
31
                    
88                        }
                    
89                        if ($aFields['USR_STATUS'] != 1) {
                    
90                            return -3;
                    
248        $oCriteria->addSelectColumn('COUNT(*) AS CNT');
                    
249        $oCriteria->add(RbacUsersPeer::USR_STATUS, 'CLOSED', Criteria::NOT_EQUAL);
                    
250        $oCriteria->addGroupByColumn(RbacUsersPeer::UID_AUTH_SOURCE);
                    
275        }
                    
276        $oCriteria->add(RbacUsersPeer::USR_STATUS, 0, Criteria::NOT_EQUAL);
                    
277        $oDataset = RbacUsersPeer::doSelectRS($oCriteria);
                    
                
recaptchalib.php https://bitbucket.org/Mainboarder/s2firewall.git | PHP | 277 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * This is a PHP library that handles calling reCAPTCHA.
                    
4 *    - Documentation and latest version
                    
4 *    - Documentation and latest version
                    
5 *          http://recaptcha.net/plugins/php/
                    
6 *    - Get a reCAPTCHA API Key
                    
74        $http_request .= "Content-Length: " . strlen($req) . "\r\n";
                    
75        $http_request .= "User-Agent: reCAPTCHA/PHP\r\n";
                    
76        $http_request .= "\r\n";
                    
215	if (! function_exists ("mcrypt_encrypt")) {
                    
216		die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed.");
                    
217	}
                    
271	return htmlentities($emailparts[0]) . "<a href='" . htmlentities ($url) .
                    
272		"' onclick=\"window.open('" . htmlentities ($url) . "', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;\" title=\"Reveal this e-mail address\">...</a>@" . htmlentities ($emailparts [1]);
                    
273
                    
                
Profiler.php https://github.com/StefanRHRO/SCRM.git | PHP | 471 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Profiler.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
88    /**
                    
89     * Stores enabled state of the profiler.  If set to False, calls to
                    
90     * queryStart() will simply be ignored.
                    
143    /**
                    
144     * Get the current state of enable.  If True is returned,
                    
145     * the profiler is enabled.
                    
246     *
                    
247     * @param  string  $queryText   SQL statement
                    
248     * @param  integer $queryType   OPTIONAL Type of query, one of the Zend_Db_Profiler::* constants
                    
280         */
                    
281        require_once 'Zend/Db/Profiler/Query.php';
                    
282        $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType);
                    
                
tlAttachment.class.php https://github.com/viglesiasce/testlink.git | PHP | 342 lines
                    
1<?php
                    
2/**
                    
8 * @copyright 	2007-2009, TestLink community 
                    
9 * @version    	CVS: $Id: tlAttachment.class.php,v 1.2 2009/12/28 08:53:37 franciscom Exp $
                    
10 * @link 		http://www.teamst.org/index.php
                    
13/** parenthal class */
                    
14require_once( 'object.class.php' );
                    
15
                    
96	
                    
97	/* Cleanup function to set the object to an initial state
                    
98	 * @param $options options to control the initialization
                    
308	 */
                    
309	static public function getByID(&$db,$id,$detailLevel = self::TLOBJ_O_GET_DETAIL_FULL)
                    
310	{
                    
321	 */
                    
322	static public function getByIDs(&$db,$ids,$detailLevel = self::TLOBJ_O_GET_DETAIL_FULL)
                    
323	{
                    
                
exec.inc.php https://github.com/viglesiasce/testlink.git | PHP | 298 lines
                    
52	$menu_data[$resultsCfg['status_code']['all']] = $my_all;
                    
53	$menu_data[$resultsCfg['status_code']['not_run']] = lang_get($resultsCfg['status_label']['not_run']);
                    
54	
                    
56	// user can assign while executing test cases
                    
57	foreach($resultsCfg['status_label_for_exec_ui'] as $verbose_status => $status_label)
                    
58	{
                    
58	{
                    
59		$code = $resultsCfg['status_code'][$verbose_status];
                    
60		$menu_data[$code] = lang_get($status_label); 
                    
120		$tcase_id=$exec_data['tc_version'][$tcversion_id];
                    
121		$current_status = $exec_data['status'][$tcversion_id];
                    
122		$version_number=$exec_data['version_number'][$tcversion_id];;
                    
122		$version_number=$exec_data['version_number'][$tcversion_id];;
                    
123		$has_been_executed = ($current_status != $resultsCfg['status_code']['not_run'] ? TRUE : FALSE);
                    
124		if($has_been_executed)
                    
                
Tag.php https://github.com/michaelmcandrew/vaw.git | PHP | 215 lines
                    
1<?php
                    
2
                    
54     * @access public
                    
55     * @static
                    
56     */
                    
56     */
                    
57    static function buildQuickForm( &$form, $parentNames, $entityTable, $entityId = null, $skipTagCreate = false, 
                    
58                                    $skipEntityAction = false, $searchMode = false ) {        
                    
107                    $tagset[$tagsetItem]['entityId'] = $entityId;
                    
108                    require_once 'CRM/Core/BAO/EntityTag.php';
                    
109                    $entityTags = CRM_Core_BAO_EntityTag::getChildEntityTags( $parentId, $entityId, $entityTable );                    
                    
148                        if ( !empty($form->_formValues['contact_tags']) ) {
                    
149                            require_once 'CRM/Core/BAO/Tag.php';
                    
150                            $contactTags = CRM_Core_BAO_Tag::getTagsUsedFor( 'civicrm_contact', true, false, $parentId );
                    
188     */
                    
189    static function postProcess( &$params, $entityId, $entityTable = 'civicrm_contact', &$form ) {
                    
190        foreach( $params as $value ) {
                    
                
Source.php https://github.com/brtriver/sukonv.git | PHP | 280 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Lithium: the most rad php framework
                    
4 *
                    
5 * @copyright     Copyright 2010, Union of RAD (http://union-of-rad.org)
                    
6 * @license       http://opensource.org/licenses/bsd-license.php The BSD License
                    
7 */
                    
54	/**
                    
55	 * Stores the status of this object's connection. Updated when `connect()` or `disconnect()` are
                    
56	 * called, or if an error occurs that closes the object's connection.
                    
94	/**
                    
95	 * Checks the connection status of this data source. If the `'autoConnect'` option is set to
                    
96	 * true and the source connection is not currently active, a connection attempt will be made
                    
96	 * true and the source connection is not currently active, a connection attempt will be made
                    
97	 * before returning the result of the connection status.
                    
98	 *
                    
                
twitter.js https://github.com/Val9/KitchenSink.git | JavaScript | 309 lines
                    
19	xhr.timeout = 1000000;	
                    
20	xhr.open("GET","http://api.twitter.com/1/statuses/user_timeline.json?screen_name="+screen_name);
                    
21
                    
115function strtotime (str, now) {
                    
116	// Emlulates the PHP strtotime function in JavaScript
                    
117 	// obtained from http://phpjs.org/functions/strtotime:554
                    
126    } else if (now) {
                    
127        now = new Date(now*1000); // Accept PHP-style seconds
                    
128    } else {
                    
                
AccessToken.php https://gitlab.com/hoanghung.dev/aloads | PHP | 379 lines
                    
1<?php
                    
2/**
                    
132    $machineId = $machineId ?: $this->machineId;
                    
133    return static::validateAccessToken($accessTokenInfo, $appId, $machineId);
                    
134  }
                    
147   */
                    
148  public static function validateAccessToken(GraphSessionInfo $tokenInfo,
                    
149                                             $appId = null, $machineId = null)
                    
175   */
                    
176  public static function getAccessTokenFromCode($code, $appId = null, $appSecret = null, $machineId = null)
                    
177  {
                    
186
                    
187    return static::requestAccessToken($params, $appId, $appSecret);
                    
188  }
                    
198   */
                    
199  public static function getCodeFromAccessToken($accessToken, $appId = null, $appSecret = null)
                    
200  {
                    
                
EntityOperations.php https://gitlab.com/Drulenium-bot/workbench_moderation | PHP | 267 lines
                    
96        if ($translation->moderation_state->target_id == NULL) {
                    
97          $translation->moderation_state->target_id = $this->getDefaultLoadStateId($translation);
                    
98        }
                    
129  /**
                    
130   * Acts on an entity and set published status based on the moderation state.
                    
131   *
                    
139    if ($entity->moderation_state->entity) {
                    
140      $published_state = $entity->moderation_state->entity->isPublishedState();
                    
141
                    
163      // Entity API doesn't allow hook_entity_presave to short-circuit a save.
                    
164      $event = new WorkbenchModerationTransitionEvent($entity, $state_before, $state_after);
                    
165
                    
263
                    
264    return $default_revision && $default_revision->moderation_state->entity->isPublishedState();
                    
265  }
                    
                
SubmitTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 286 lines
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: SubmitTest.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
24if (!defined("PHPUnit_MAIN_METHOD")) {
                    
25    define("PHPUnit_MAIN_METHOD", "Zend_Form_Element_SubmitTest::main");
                    
26}
                    
27
                    
28require_once 'Zend/Form/Element/Submit.php';
                    
29require_once 'Zend/Form.php';
                    
50     */
                    
51    public static function main()
                    
52    {
                    
265    {
                    
266        if (strtolower(substr(PHP_OS, 0, 3)) == 'win' && version_compare(PHP_VERSION, '5.1.4', '=')) {
                    
267            $this->markTestIncomplete('Error occurs for PHP 5.1.4 on Windows');
                    
                
 

Source

Language