100+ results results for 'php date repo:maatao/estrutura-b-sica-doctrine' (2011 ms)
1<?php 2 218 */ 219 public function invalidate($lifetime = null) 220 {Font.php https://gitlab.com/adamlwalker/generatedata | PHP | 640 lines
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Style 34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_Style_Font implements PHPExcel_IComparable 37{ 153 $this->_strikethrough = NULL; 154 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional); 155 } else { 155 } else { 156 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor); 157 }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 88 89 scheduleUpdate(); 90 return true; 121 122void Particle3DTestDemo::update( float delta ) 123{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 21 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 22 * @link https://github.com/windowsazure/azure-sdk-for-php 23 */ 35 * @package WindowsAzure\Common\Internal 36 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 37 * @copyright 2012 Microsoft Corporation 166 Resources::DEVELOPMENT_STORAGE_PROXY_URI_NAME, 167 Validate::getIsValidUri() 168 );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' ); 153 * 154 * @see WP_Widget::update() 155 *eventapi.html.md https://gitlab.com/ggsaavedra/PredictionIO | Markdown | 412 lines
109 </div> 110 <div data-tab="PHP SDK" data-lang="php"> 111```php 112<?php 113 require_once("vendor/autoload.php"); 114 137from predictionio import EventClient 138from datetime import datetime 139import pytz 149 } 150first_event_time = datetime( 151 2004, 12, 13, 21, 39, 45, 618000, pytz.timezone('US/Mountain')) 204 </div> 205 <div data-tab="PHP SDK" data-lang="php"> 206```phpAdvertiser.php https://bitbucket.org/blackriver/openx.git | PHP | 371 lines
49 * @param date $oStartDate The date from which to get statistics (inclusive) 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? 152 b.bannerid = s.ad_id 153 " . $this->getWhereDate($oStartDate, $oEndDate, $localTZ) . " 154 GROUP BY 167 * @param date $oStartDate The date from which to get statistics (inclusive) 168 * @param date $oEndDate The date to which to get statistics (inclusive) 169 * @param bool $localTZ Should stats be using the manager TZ or UTC? 230 * @param date $oStartDate The date from which to get statistics (inclusive) 231 * @param date $oEndDate The date to which to get statistics (inclusive) 232 * @param bool $localTZ Should stats be using the manager TZ or UTC? 359 z.zoneid = s.zone_id 360 " . $this->getWhereDate($oStartDate, $oEndDate, $localTZ) . " 361 GROUP BYarr.php https://gitlab.com/ken3/bluSky | PHP | 602 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 196 * @see Arr::path() 197 * @param array $array Array to update 198 * @param string $path Path 351 /** 352 * Recursive version of [array_map](http://php.net/array_map), applies one or more 353 * callbacks to all elements in an array, including sub-arrays. 403 * Merges one or more arrays recursively and preserves all keys. 404 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)! 405 * 514 * Creates a callable function and parameter list from a string representation. 515 * Note that this function does not validate the callback string. 516 *catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
1<?php 2/** 48 49 // alter b_sale_basket - add recommendation, update it here 50 if (!static::isOn()) 131 ), 132 'order' => array('DATE_VISIT' => 'DESC') 133 ))->fetch(); 149 'recommendation' => $recommendationId, 150 'date' => date(DATE_ISO8601) 151 ); 230 $data['domain'] = Context::getCurrent()->getServer()->getHttpHost(); 231 $data['date'] = date(DATE_ISO8601); 232 300 $data['domain'] = Context::getCurrent()->getServer()->getHttpHost(); 301 $data['date'] = date(DATE_ISO8601); 302Url.php https://bitbucket.org/alessandro-aglietti/itis-leonardo-da-vinci.git | PHP | 548 lines
1<?php 2 8/** 9 * Parses and generates URLs based on URL parts. In favor of performance, URL parts are not validated. 10 */InstallSchema.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 407 lines
258 ['unsigned' => true, 'nullable' => false, 'default' => '0'], 259 'Layout Update Id' 260 )->addIndex( 265 'widget_instance_page_layout', 266 ['layout_update_id', 'page_id'], 267 \Magento\Framework\DB\Adapter\AdapterInterface::INDEX_TYPE_UNIQUE 302 ['identity' => true, 'unsigned' => true, 'nullable' => false, 'primary' => true], 303 'Layout Update Id' 304 )->addColumn( 374 )->addForeignKey( 375 $installer->getFkName('layout_link', 'layout_update_id', 'layout_update', 'layout_update_id'), 376 'layout_update_id', 377 $installer->getTable('layout_update'), 378 'layout_update_id', 379 \Magento\Framework\DB\Ddl\Table::ACTION_CASCADEContributionPage.php https://github.com/michaelmcandrew/vaw.git | PHP | 354 lines
109 110 if ($this->_action == CRM_Core_Action::UPDATE) { 111 $this->_single = true; 237 } 238 require_once 'CRM/Core/BAO/CustomOption.php'; 239 if ( CRM_Utils_Array::value( 'pledge_frequency_unit', $pledgeBlockDefaults ) ) { 258 if ( CRM_Utils_Array::value( 'end_date', $defaults ) ) { 259 list( $defaults['end_date'], $defaults['end_date_time'] ) = CRM_Utils_Date::setDateDefaults( $defaults['end_date'] ); 260 } 262 if ( CRM_Utils_Array::value( 'start_date', $defaults ) ) { 263 list( $defaults['start_date'], $defaults['start_date_time'] ) = CRM_Utils_Date::setDateDefaults( $defaults['start_date'] ); 264 } 267 // set current date as start date 268 list( $defaults['start_date'], $defaults['start_date_time'] ) = CRM_Utils_Date::setDateDefaults( ); 269 }Descarte.php https://gitlab.com/SFMSP/Hagape | PHP | 346 lines
1<?php 2 132 //Formata os dados para serem salvos 133 $data['dataDescarte'] = new \DateTime($this->dateTimeFormat->formatUs($data['dataDescarte'])); 134 $data['estoqueOrigem'] = $this->getEm()->getReference("Admin\Entity\Estoque", $this->dadosUser['filtrosSelecionados']['estoque']['id']); 168 $dadosMovimentacao['valorTotal'] = $itemExcluido->getValorTotal(); 169 $dadosMovimentacao['dataMovimentacao'] = new \DateTime('now'); 170 $dadosMovimentacao['tipoMovimentacao'] = MovimentacaoEntity::TIPO_MOVIMENTACAO_ENTRADA; 214 $dadosMovimentacao['valorTotal'] = $data['valor-total'][$key]; 215 $dadosMovimentacao['dataMovimentacao'] = new \DateTime('now'); 216 $dadosMovimentacao['tipoMovimentacao'] = MovimentacaoEntity::TIPO_MOVIMENTACAO_SAIDA; 256 if ($solicitacao->getSituacaoDescarte()->getId() == SolicitacaoDescarteEntity::STATUS_CADASTRADO) { 257 $update = $this->update(array('id' => $solicitacao->getId(), 'situacaoDescarte' => $this->getEm()->getReference('Estoque\Entity\SituacaoDescarte', SolicitacaoDescarteEntity::STATUS_CANCELADO))); 258 258 259 if ($update) { 260admin_review.php https://bitbucket.org/prat_h/rakbuku.git | PHP | 501 lines
127 $time = time(); 128 $review_date = mdate($datestring, $time); 129 132 "user_id" => $this->input->post("userid"), 133 "admin_review_date" => $review_date, 134 "admin_review_content" => $this->input->post("comment_content"), 304 305 $update_project_state = $this->projects_model->update_project_state($parstate, $clausestate); 306 312 ); 313 $update_project = $this->projects_model->update_project($upd_project, $clause); 314 365 ); 366 $update_project = $this->projects_model->update_project($data_project, $clause); 367SqlBase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 415 lines
1<?php 2 225 226 public function validateOptionsForm(&$form, FormStateInterface $form_state) { 227 // Only accept integer values. 316 /** 317 * Update global paging info. 318 * 319 * This is called after the count query has been run to set the total 320 * items available and to update the current page if the requested 321 * page is out of range. 322 */ 323 public function updatePageInfo() { 324 if (!empty($this->options['total_pages'])) { 383 384 public function exposedFormValidate(&$form, FormStateInterface $form_state) { 385 if (!$form_state->isValueEmpty('offset') && trim($form_state->getValue('offset'))) {lang.php https://gitlab.com/gideonmarked/atls-express | PHP | 326 lines
129 'missing_model' => 'Inställningssidan saknar en modell-definition', 130 'update_success' => 'Inställningar för :name har uppdaterats', 131 'return' => 'Återgå till systeminställningar', 233 'theme_extracting' => 'Packar upp temat: :name', 234 'update_label' => 'Uppdatera systemet', 235 'update_completing' => 'Slutför uppdatering', 235 'update_completing' => 'Slutför uppdatering', 236 'update_loading' => 'Laddar tillgängliga uppdateringar...', 237 'update_success' => 'Uppdateringen är slutförd.', 237 'update_success' => 'Uppdateringen är slutförd.', 238 'update_failed_label' => 'Updateringen misslyckades', 239 'force_label' => 'Tvinga uppdatering', 315 'manage_system_settings' => 'Hantera systeminställningar', 316 'manage_software_updates' => 'Hantera systemuppdateringar', 317 'access_logs' => 'Visa systemloggen',about.html https://gitlab.com/adrian.io/ide | HTML | 275 lines
16 Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available 17 at <a href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/legal/epl-v10.html</a>. 18 For purposes of the EPL, "Program" will mean the Content.</p> 170 granted to You under this License for that Work shall terminate 171 as of the date such litigation is filed. 172web.php https://github.com/XioNoX/Benevolus.git | PHP | 509 lines
1<?php 2 3/** 4 Web pack for the PHP Fat-Free Framework 5 110 if ($ptr>0) { 111 // Backtrack and validate 112 $ofs=$ptr; 205 if ($echo) { 206 if (PHP_SAPI!='cli' && !headers_sent()) 207 header(self::HTTP_Content.': '.$mime[$ext[1]].'; '. 295 self::HTTP_Agent.': Mozilla/5.0 '. 296 '(compatible;'.PHP_OS.')'.self::EOL. 297 ($reqhdrs? 330 self::$vars['HEADERS'][]=$hdr; 331 if (PHP_SAPI!='cli' && $forward) 332 // Forward HTTP headerupgrade_slims8_akasia.sql.php https://gitlab.com/mucill/sman7 | PHP | 269 lines
17/*-- change all users password to : 'akasia'*/ 18// $sql['update'][] = "UPDATE `user` SET passwd='$2y$10$/Czdb/DbXSDO2peXwlfvDusUZ6CF0VTeSoErlOOXgSXXA2RanoLd.';"; 19 21// $hash_member = '$2y$10$Vx12rbVCdtYW701HrULLYOLDKJdb3fDusG2rE7GJzAcH9mqu2MjKK'; 22// $sql['update'][] = "UPDATE `member` SET `mpasswd`='$hash_member' WHERE `mpasswd` IS NOT NULL;"; 23 32 `code2` char(1) COLLATE utf8_unicode_ci NOT NULL, 33 `input_date` datetime NOT NULL, 34 `last_update` datetime NOT NULL 40 41$sql['insert'][] = "INSERT INTO `mst_carrier_type` (`id`, `carrier_type`, `code`, `code2`, `input_date`, `last_update`) VALUES 42(1, 'audio cartridge', 'sg', 'g', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 222$sql['insert'][] = "INSERT IGNORE INTO `setting` (`setting_name`, `setting_value`) VALUES 223('shortcuts_1', 'a:6:{i:0;s:42:\"Daftar Bibliografi|/bibliography/index.php\";i:1;s:61:\"Tambah Bibliografi Baru|/bibliography/index.php?action=detail\";i:2;s:51:\"Mulai Transaksi|/circulation/index.php?action=start\";i:3;s:48:\"Pengembalian Kilat|/circulation/quick_return.php\";i:4;s:42:\"Lihat Daftar Anggota|/membership/index.php\";i:5;s:37:\"Shortcut Setting|/system/shortcut.php\";}');"; 224ClassLoader.php https://gitlab.com/wendy-du-973/club-invest-gr2 | 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/ 290 { 291 $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; 292 } 376 377 $file = $this->findFileWithExtension($class, '.php'); 378bp-loader.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 487 lines
262 if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) ) 263 require( WP_PLUGIN_DIR . '/bp-custom.php' ); 264 387 } elseif ( (int) $this->db_version_raw < (int) $this->db_version ) { 388 $this->maintenance_mode = 'update'; 389 } 395 require( $this->plugin_dir . 'bp-core/bp-core-template.php' ); 396 require( $this->plugin_dir . 'bp-core/bp-core-update.php' ); 397 require( $this->plugin_dir . 'bp-core/bp-core-caps.php' ); 416 require( $this->plugin_dir . 'bp-core/bp-core-caps.php' ); 417 require( $this->plugin_dir . 'bp-core/bp-core-cache.php' ); 418 require( $this->plugin_dir . 'bp-core/bp-core-cssjs.php' ); 418 require( $this->plugin_dir . 'bp-core/bp-core-cssjs.php' ); 419 require( $this->plugin_dir . 'bp-core/bp-core-update.php' ); 420 require( $this->plugin_dir . 'bp-core/bp-core-options.php' );ps_perm.php https://github.com/Shigaru/shigaru.git | PHP | 461 lines
1<?php 2if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); 4* 5* @version $Id: ps_perm.php 1818 2009-06-23 19:07:21Z soeren_nb $ 6* @package VirtueMart 8* @copyright Copyright (C) 2004-2009 soeren - All rights reserved. 9* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php 10* VirtueMart is free software. This version may have been modified pursuant 13* other free or open source software licenses. 14* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details. 15* 168 /** 169 * Validates the permission to do something. 170 * 240 if( $size==1 ) { 241 $values[0] = $VM_LANG->_('PHPSHOP_SELECT'); 242 }TestData.php https://github.com/orchestra-io/sample-openx.git | PHP | 301 lines
111 $doClients->comments = ''; 112 $doClients->updated = OA::getNow(); 113 $this->clientId = DataGenerator::generateOne($doClients); 157 //$doAffiliate->last_accepted_agency_agreement = ''; 158 $doAffiliate->updated = OA::getNow(); 159 $this->affiliateId = DataGenerator::generateOne($doAffiliate); 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&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://ads.openx.org/delivery/avw.php?zoneid=9&cb=INSERT_RANDOM_NUMBER_HERE&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
1<?php 2 24+---------------------------------------------------------------------------+ 25$Id: UpgradeComponentGroup.php 30820 2009-01-13 19:02:17Z andrew.hill $ 26*/ 34 35require_once MAX_PATH.'/lib/OA/Upgrade/Upgrade.php'; 36 60 /*$this->nobackupsFile = MAX_PATH.$pluginPath.'NOBACKUPS'; 61 $this->postTaskFile = MAX_PATH.$pluginPath.'TASKS.php';*/ 62 111 $this->oLogger->log($strProductName.' detected'); 112 $this->oLogger->log('This version is up to date.'); 113 return false; 214 { 215 $this->oLogger->logError('Failed to update '.$this->aComponentGroup['name'].' version to '.$version); 216 $this->message = 'Failed to update '.$this->aComponentGroup['name'].' version to '.$version;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']); 174 175<?php if ( isset($_REQUEST['locked']) || isset($_REQUEST['skipped']) || isset($_REQUEST['updated']) || isset($_REQUEST['deleted']) || isset($_REQUEST['trashed']) || isset($_REQUEST['untrashed']) ) { ?> 176<div id="message" class="updated"><p> 177<?php if ( isset($_REQUEST['updated']) && (int) $_REQUEST['updated'] ) { 178 printf( _n( '%s post updated.', '%s posts updated.', $_REQUEST['updated'] ), number_format_i18n( $_REQUEST['updated'] ) ); 179 unset($_REQUEST['updated']); 185if ( isset($_REQUEST['locked']) && (int) $_REQUEST['locked'] ) { 186 printf( _n( '%s item not updated, somebody is editing it.', '%s items not updated, somebody is editing them.', $_REQUEST['locked'] ), number_format_i18n( $_REQUEST['locked'] ) ); 187 unset($_REQUEST['locked']);lang.php https://gitlab.com/michield/dokuwiki | PHP | 188 lines
1<?php 2/** 14<br />A helytelen érték(ek)et piros kerettel jelöljük.'; 15$lang['updated'] = 'A módosítások sikeresen beállítva.'; 16$lang['nochoice'] = '(nincs egyéb lehetőség)'; 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)'; 91$lang['securecookie'] = 'A böngészők a HTTPS felett beállított sütijüket csak HTTPS felett küldhetik? Kapcsoljuk ki ezt az opciót, ha csak a bejelentkezést védjük SSL-lel, a wiki tartalmának böngészése nyílt forgalommal történik.'; 92$lang['updatecheck'] = 'Frissítések és biztonsági figyelmeztetések figyelése. Ehhez a DokuWikinek kapcsolatba kell lépnie a update.dokuwiki.org-gal.'; 93$lang['userewrite'] = 'Szép URL-ek használata'; 102$lang['locktime'] = 'Oldal-zárolás maximális időtartama (másodperc)'; 103$lang['fetchsize'] = 'Maximális méret (bájtban), amit a fetch.php letölthet kívülről'; 104$lang['notify'] = 'Az oldal-változásokat erre az e-mail címre küldje'; 117$lang['sitemap'] = 'Hány naponként generáljunk Google sitemap-ot?'; 118$lang['broken_iua'] = 'Az ignore_user_abort függvény hibát dob a rendszereden? Ez nem működő keresési indexet eredményezhet. Az IIS+PHP/CGI összeállításról tudjuk, hogy hibát dob. Lásd a <a href="http://bugs.splitbrain.org/?do=details&task_id=852">Bug 852</a> oldalt a további infóért.'; 119$lang['xsendfile'] = 'Használjuk az X-Sendfile fejlécet, hogy a webszerver statikus állományokat tudjon küldeni? A webszervernek is támogatnia kell ezt a funkciót.';tcp_cubic.c https://gitlab.com/karrei/inel-imx6-kernel | C | 497 lines
19 * All testing results are available from: 20 * http://netsrv.csc.ncsu.edu/wiki/index.php/TCP_Testing 21 * 87 u32 last_cwnd; /* the last snd_cwnd */ 88 u32 last_time; /* time when updated last_cwnd */ 89 u32 bic_origin_point;/* origin point of bic function */ 206 */ 207static inline void bictcp_update(struct bictcp *ca, u32 cwnd) 208{ 288 delta = (cwnd * scale) >> 3; 289 while (ca->ack_cnt > delta) { /* update tcp cwnd */ 290 ca->ack_cnt -= delta; 320 } else { 321 bictcp_update(ca, tp->snd_cwnd); 322 tcp_cong_avoid_ai(tp, ca->cnt);IndexController.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 390 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 230 if (!empty($email) && !empty($params)) { 231 // Validate received data to be an email address 232 if (Zend_Validate::is($email, 'EmailAddress')) { 273 try { 274 $this->_validateResetPasswordLinkToken($userId, $resetPasswordLinkToken); 275 $data = array( 298 try { 299 $this->_validateResetPasswordLinkToken($userId, $resetPasswordLinkToken); 300 } catch (Exception $exception) {hostkreskoweczki.py https://gitlab.com/nunigaia/iptvplayer-for-e2 | Python | 318 lines
16################################################### 17from datetime import timedelta 18import time 57 self.AJAX_HEADER = dict(self.HEADER) 58 self.AJAX_HEADER.update( {'X-Requested-With': 'XMLHttpRequest'} ) 59 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" 84 params = dict(cItem) 85 params.update({'category':category, 'title':title, 'url':url}) 86 self.addDir(params) 136 params = dict(cItem) 137 params.update({'page':1, 'title':self.cleanHtmlStr(title), 'url':self.getFullUrl(url), 'icon':self.getFullUrl(icon)}) 138 if video:WizardController.php https://bitbucket.org/chung/buyforher.git | PHP | 464 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 388 389 //preparing admin user model with data and validate it 390 $user = $this->_getInstaller()->validateAndPrepareAdministrator($adminData); 395 //checking if valid encryption key was entered 396 $result = $this->_getInstaller()->validateEncryptionKey($encryptionKey); 397 if (is_array($result)) { 426 427 $date = (string)Mage::getConfig()->getNode('global/install/date'); 428 if ($date !== Mage_Install_Model_Installer_Config::TMP_INSTALL_DATE_VALUE) {bltGrHairs.c https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C | 544 lines
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 } 260void 261Blt_UpdateCrosshairs(graphPtr) 262 Graph *graphPtr; 325 326 if (Blt_ConfigureWidgetComponent(graphPtr->interp, graphPtr->tkwin, 327 "crosshairs", "Crosshairs", configSpecs, 0, (char **)NULL,EditView.php https://github.com/lukio/sugarcrm_dev.git | PHP | 349 lines
1<?php 2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 45 46require_once('modules/Campaigns/utils.php'); 47 70 71//setting default flag value so due date and time not required 72if(!isset($focus->id)) $focus->date_due_flag = 1; 106}else{ 107 $params[] = "<a href='index.php?module={$focus->module_dir}&action=DetailView&record={$focus->id}'>{$focus->name}</a>"; 108 $params[] = $GLOBALS['app_strings']['LBL_EDIT_BUTTON_LABEL']; 166//Assign qsd script 167require_once('include/QuickSearchDefaults.php'); 168$qsd = new QuickSearchDefaults(); 172$xtpl->assign("CANCEL_SCRIPT", $cancel_script); 173$xtpl->assign("PRINT_URL", "index.php?".$GLOBALS['request_string']); 174$xtpl->assign("JAVASCRIPT", get_set_focus_js() . $quicksearch_js);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: 203 uint32 ctrl2; /* buffer count and address extension */ 204 uint32 addrlow; /* memory address of the date buffer, bits 31:0 */ 205 uint32 addrhigh; /* memory address of the date buffer, bits 63:32 */lang.php https://github.com/godber/PHXdata-Website.git | PHP | 186 lines
1<?php 2/** 11$lang['error'] = 'Parâmetros de Configuração não actualizados devido a valores inválidos. Por favor, reveja as modificações que pretende efectuar antes de re-submetê-las.<br /> Os valores incorrectos serão mostrados dentro de uma "moldura" vermelha.'; 12$lang['updated'] = 'Parâmetros de Configuração actualizados com sucesso.'; 13$lang['nochoice'] = '(não existem outras escolhas disponíveis)'; 53$lang['htmlok'] = 'Permitir embeber HTML'; 54$lang['phpok'] = 'Permitir embeber PHP'; 55$lang['dformat'] = 'Formato de Data (ver função PHP\'s <a href="http://www.php.net/strftime">strftime</a>)'; 90$lang['xmlrpcuser'] = 'Restringir acesso XML-RPC para os grupos separados por vírgula ou utilizadores inseridos aqui. Deixar vazio para dar acesso a todos.'; 91$lang['updatecheck'] = 'Verificar por actualizações e avisos de segurança? O DokuWiki precisa contactar o "splitbrain.org" para efectuar esta verificação.'; 92$lang['userewrite'] = 'Usar URLs SEO'; 101$lang['locktime'] = 'Idade máxima para locks (seg.)'; 102$lang['fetchsize'] = 'Tamanho máximo (bytes) que o fetch.php pode transferir do exterior'; 103$lang['notify'] = 'Enviar notificações de mudanças para este endereço de email'; 115$lang['sitemap'] = 'Gerar Sitemap Google (dias)'; 116$lang['broken_iua'] = 'A função "ignore_user_abort" não está a funcionar no seu sistema? Isso pode causar um índice de busca defeituoso. Sistemas com IIS+PHP/CGI são conhecidos por possuírem este problema. Veja o <a href="http://bugs.splitbrain.org/?do=details&task_id=852">bug 852</a> para mais informações.'; 117$lang['xsendfile'] = 'Usar o cabeçalho "X-Sendfile" para permitir o servidor de internet encaminhar ficheiros estáticos? O seu servidor de internet precisa ter suporte a isso.';TextArea.php https://gitlab.com/ElvisAns/tiki | PHP | 377 lines
1<?php 2 112 $wikilib = TikiLib::lib('wiki'); 113 $wikilib->update_wikicontent_relations($value, 'trackeritemfield', sprintf("%d:%d", $itemId, $fieldId)); 114 $wikilib->update_wikicontent_links($value, 'trackeritemfield', sprintf("%d:%d", $itemId, $fieldId));Command.php https://github.com/notbrain/symfony-sandbox.git | PHP | 512 lines
1<?php 2 106 /** 107 * Initializes the command just after the input has been validated. 108 * 144 145 $input->validate(); 146 378 $name, 379 $_SERVER['PHP_SELF'].' '.$name 380 );Editor.php https://github.com/adaykin/zf2.git | PHP | 601 lines
1<?php 2/** 578 /** 579 * Set update interval 580 * 583 */ 584 public function setUpdateInterval($interval) 585 { 585 { 586 return $this->setDijitParam('updateInterval', (int) $interval); 587 } 589 /** 590 * Get update interval 591 * 593 */ 594 public function getUpdateInterval() 595 {class-cp-user-relationships.php https://gitlab.com/clusterpress/clusterpress | PHP | 543 lines
172 * @type string $name The name of the relationship. 173 * @type string $date The date the relationship was saved. 174 * } 251 252 $updated = $wpdb->update( 253 $this->table, 369 * @type string $name The name of the relationship. 370 * @type string $date The date the relationship was saved. 371 * @type array $exclude A list of relationship IDs to exclude from results. 438 * @type string $name The name of the relationship. 439 * @type string $date The date the relationship was saved. 440 * @type array $exclude A list of relationship IDs to exclude from results. 499 * @type string $name The name of the relationship. 500 * @type string $date The date the relationship was saved. 501 * }Configuration.php https://github.com/sellingsource/symfony.git | PHP | 362 lines
1<?php 2 214 ->defaultValue(array('FrameworkBundle:Form')) 215 ->validate() 216 ->ifTrue(function($v) {return !in_array('FrameworkBundle:Form', $v); })permissions.inc.php https://github.com/martinf55/revolution.git | PHP | 193 lines
1<?php 2/** 48$_lang['perm.directory_remove_desc'] = 'Verzeichnisse löschen.'; 49$_lang['perm.directory_update_desc'] = 'Verzeichnisse umbenennen.'; 50$_lang['perm.edit_category_desc'] = 'Kategorien bearbeiten.'; // any: beliebige? (auch bei den anderen so aufgebauten Begriffen) 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.'; 67$_lang['perm.file_create_desc'] = 'Dateien anlegen.'; 68$_lang['perm.file_list_desc'] = 'Liste der in einem angegebenen Verzeichnis liegenden Dateien anzeigen.'; 69$_lang['perm.file_manager_desc'] = 'Den Dateimanager benutzen.'; 69$_lang['perm.file_manager_desc'] = 'Den Dateimanager benutzen.'; 70$_lang['perm.file_remove_desc'] = 'Dateien löschen.'; 71$_lang['perm.file_tree_desc'] = 'Den Dateibaum im linken Navigations-Bereich anzeigen.'; 71$_lang['perm.file_tree_desc'] = 'Den Dateibaum im linken Navigations-Bereich anzeigen.'; 72$_lang['perm.file_update_desc'] = 'Den Inhalt von Dateien ändern.'; 73$_lang['perm.file_upload_desc'] = 'Dateien in ein Verzeichnis hochladen.';cpanel.php https://github.com/andrewgs/practice-book.ru.git | PHP | 320 lines
118 </div> 119 <?php endif; ?> 120 <div class="clear"></div> 141 <td class="col-price-company"><?=$units[$i]['cu_price'];?></td> 142 <td class=""><strong><?=$units[$i]['cu_priceunit'];?><?php if($units[$i]['cu_unitscode']):?>/<?=$units[$i]['cu_unitscode'];?><?php endif;?></strong></td> 143 </tr> 192 </div> 193 <?php endfor; ?> 194 </div> 249 <div class="content-separator"> 250 <div class="nshDate"><?=$news[$i]['cn_pdatebegin'];?></div> 251 <img src="<?=$baseurl;?>cnavatar/viewimage/<?=$news[$i]['cn_id'];?>" class="floated" alt=""/> 278 <div class="content-separator"> 279 <div class="nshDate"><?=$shares[$i]['sh_pdatebegin'];?></div> 280 <img src="<?=$baseurl;?>cshavatar/viewimage/<?=$shares[$i]['sh_id'];?>" class="floated" alt=""/>phpBB.php https://bitbucket.org/adatux_/uakami.git | PHP | 538 lines
65 66 // Forum date update. 67 $this->field_map[] = array( 153 154 // Topic date update. 155 $this->field_map[] = array( 180 'to_fieldname' => 'post_modified_gmt', 181 'callback_method' => 'callback_datetime' 182 ); 296 297 // Topic date update. 298 $this->field_map[] = array( 301 'to_type' => 'reply', 302 'to_fieldname' => 'post_date', 303 'callback_method' => 'callback_datetime'user.inc.php https://gitlab.com/haque.mdmanzurul/modx-improve-carolyn | PHP | 202 lines
1<?php 2/** 74$_lang['user_country'] = 'Country'; 75$_lang['user_dob'] = 'Date of birth'; 76$_lang['user_doesnt_exist'] = 'User does not exist'; 152$_lang['user_group_untitled'] = 'Untitled User Group'; 153$_lang['user_group_update'] = 'Update User Group'; 154$_lang['user_group_user_add'] = 'Add User to Group'; 158$_lang['user_group_user_remove_confirm'] = 'Are you sure you want to remove this user from the group?'; 159$_lang['user_group_user_update_role'] = 'Update Role for User in Usergroup'; 160$_lang['user_groups'] = 'Brugergrupper'; 183$_lang['user_remote_data_msg'] = 'Edit remote user data here.'; 184$_lang['user_role_update'] = 'Update User Role'; 185$_lang['user_setting_err_remove'] = 'An error occurred while removing user settings.'; 193$_lang['user_other'] = 'Other'; 194$_lang['user_update'] = 'Update User'; 195$_lang['user_updated_password_message'] = 'The User has been updated. The password is: [[+password]]';tbl_replace.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 414 lines
5 * 6 * usally called as form action from tbl_change.php to insert or update table rows 7 * 54 */ 55require_once './libraries/common.inc.php'; 56 69 $GLOBALS['js_include'][] = 'tbl_change.js'; 70 require_once './libraries/header.inc.php'; 71 require './tbl_change.php'; 119 } else { 120 $goto_include = 'tbl_sql.php'; 121 } 127} else { 128 $err_url = 'tbl_change.php' . PMA_generate_common_url($url_params); 129}Move.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 364 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4: */ 3// +----------------------------------------------------------------------+ 4// | PHP version 5 | 5// +----------------------------------------------------------------------+ 9// | This LICENSE is in the BSD license style. | 10// | http://www.opensource.org/licenses/bsd-license.php | 11// | | 43// 44// $Id: Move.php 12 2007-09-17 20:20:11Z killersoft $ 45// 83 * NUMBER revision number 84 * "{" DATE "}" revision at start of the date 85 * "HEAD" latest in repository 112 * <code> 113 * <?php 114 * require_once 'VersionControl/SVN.php';admin.php https://github.com/Brucee/pyrocms.git | PHP | 562 lines
1<?php defined('BASEPATH') OR exit('No direct script access allowed'); 2/** 163 //reset all parent > child relations 164 $this->pages_m->update_all(array('parent_id' => 0)); 165 168 //set the order of the root pages 169 $this->pages_m->update_by('id', str_replace('page_', '', $page['id']), array('order' => $i)); 170 175 // rebuild page URIs 176 $this->pages_m->update_lookup($this->input->post('root_pages')); 177 223 { 224 // Validate the page 225 if ($this->form_validation->run()) 244 245 // Update the page row 246 $input['revision_id'] = $revision_id;zone.php https://bitbucket.org/sandeepbhaskar/inspiredliving.git | PHP | 441 lines
1<?php 2class ControllerLocalisationZone extends Controller { 21 22 if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validateForm()) { 23 $this->model_localisation_zone->addZone($this->request->post); 46 47 public function update() { 48 $this->load->language('localisation/zone'); 53 54 if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validateForm()) { 55 $this->model_localisation_zone->editZone($this->request->get['zone_id'], $this->request->post); 85 86 if (isset($this->request->post['selected']) && $this->validateDelete()) { 87 foreach ($this->request->post['selected'] as $zone_id) { 180 'text' => $this->language->get('text_edit'), 181 'href' => $this->url->link('localisation/zone/update', 'token=' . $this->session->data['token'] . '&zone_id=' . $result['zone_id'] . $url, 'SSL') 182 );ThreeZero.php https://github.com/ksecor/civicrm.git | PHP | 271 lines
35 36require_once 'CRM/Upgrade/Form.php'; 37require_once 'CRM/Core/OptionGroup.php'; 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; 138 $updateQuery = " 139 UPDATE civicrm_activity_target cat, civicrm_activity ca 140 SET cat.activity_id = {$dao->aid} 147 $updateParams = array( 1 => array( $bulkEmailID, 'Integer' ) ); 148 CRM_Core_DAO::executeQuery( $updateQuery, $updateParams ); 149 194 195 //finally update participant record. 196 CRM_Core_DAO::setFieldValue( 'CRM_Event_DAO_Participant', $participant->id, 'fee_currency', $currencyID );Tab.php https://github.com/ksecor/civicrm.git | PHP | 344 lines
1<?php 2 35 36require_once 'CRM/Contact/Page/View.php'; 37 69 ), 70 CRM_Core_Action::UPDATE => array( 71 'name' => ts('Edit'), 72 'url' => 'civicrm/contact/view/contribution', 73 'qs' => 'reset=1&action=update&id=%%id%%&cid=%%cid%%&honorId=%%honorId%%&context=%%cxt%%&subType=%%contributionType%%', 74 'title' => ts('Edit Contribution'), 94 { 95 require_once 'CRM/Contribute/BAO/Contribution.php'; 96 180 /** 181 * This function is called when action is update or new 182 *UploadHandler.php https://github.com/zikula-modules/Reviews.git | PHP | 404 lines
1<?php 2/** 45 $this->imageFileTypes = array('gif', 'jpeg', 'jpg', 'png', 'swf'); 46 $this->forbiddenFileTypes = array('cgi', 'pl', 'asp', 'phtml', 'php', 'php3', 'php4', 'php5', 'exe', 'com', 'bat', 'jsp', 'cfm', 'shtml'); 47 $this->allowedFileSizes = array('review' => array('coverUpload' => 102400)); 71 // perform validation 72 if (!$this->validateFileUpload($objectType, $fileData[$fieldName], $fieldName)) { 73 // skip this upload field 115 */ 116 protected function validateFileUpload($objectType, $file, $fieldName) 117 { 135 136 // validate extension 137 $isValidExtension = $this->isAllowedFileExtension($objectType, $fieldName, $extension); 141 142 // validate file size 143 $maxSize = $this->allowedFileSizes[$objectType][$fieldName];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 334 { 335 $timespan -= Date::YEAR * ($output['years'] = (int) floor($timespan / Date::YEAR)); 336 } 505 { 506 $timestamp = ($timestamp === FALSE) ? getdate() : getdate($timestamp); 507 548 * 549 * @see http://php.net/manual/en/datetime.construct.php 550 * @param string datetime_str datetime string 558 559 $time = new DateTime($datetime_str, new DateTimeZone( 560 $timezone ? $timezone : date_default_timezone_get()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 69 * 70 * if $is_init is FALSE, then all activity like add, update and delete for shortcodes attributes will be hold in 71 * the list of activity and will be executed after initialization. 126 * You need to shortcode's tag and settings to map correctly. 127 * Default shortcodes are mapped in config/map.php file. 128 * The best way is to call this method with "init" action callback function of WP. 520 self::$sc[ $name ][ $setting_name ] = $value; 521 visual_composer()->updateShortcodeSetting( $name, $setting_name, $value ); 522 }user.inc.php https://github.com/goldsky/revolution.git | PHP | 202 lines
1<?php 2/** 74$_lang['user_country'] = 'Country'; 75$_lang['user_dob'] = 'Date of birth'; 76$_lang['user_doesnt_exist'] = 'User does not exist'; 152$_lang['user_group_untitled'] = 'Untitled User Group'; 153$_lang['user_group_update'] = 'Update User Group'; 154$_lang['user_group_user_add'] = 'Add User to Group'; 158$_lang['user_group_user_remove_confirm'] = 'Are you sure you want to remove this user from the group?'; 159$_lang['user_group_user_update_role'] = 'Update Role for User in Usergroup'; 160$_lang['user_groups'] = 'User Groups'; 183$_lang['user_remote_data_msg'] = 'Edit remote user data here.'; 184$_lang['user_role_update'] = 'Update User Role'; 185$_lang['user_setting_err_remove'] = 'An error occurred while removing user settings.'; 193$_lang['user_other'] = 'Other'; 194$_lang['user_update'] = 'Update User'; 195$_lang['user_updated_password_message'] = 'The User has been updated. The password is: [[+password]]';Value.php https://github.com/sitengine/sitengine.git | PHP | 401 lines
19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Value.php 12721 2008-11-20 18:21:58Z matthew $ 21 */ 30/** Zend_XmlRpc_Value_Base64 */ 31require_once 'Zend/XmlRpc/Value/Base64.php'; 32 36/** Zend_XmlRpc_Value_DateTime */ 37require_once 'Zend/XmlRpc/Value/DateTime.php'; 38 101 /** 102 * Specify that the XML-RPC native type will be auto detected from a PHP variable type 103 */ 118 const XMLRPC_TYPE_STRING = 'string'; 119 const XMLRPC_TYPE_DATETIME = 'dateTime.iso8601'; 120 const XMLRPC_TYPE_BASE64 = 'base64';Value.php https://github.com/jakedorst/ch3-dev-preview.git | PHP | 401 lines
19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Value.php 12720 2008-11-20 18:20:20Z matthew $ 21 */ 30/** Zend_XmlRpc_Value_Base64 */ 31require_once 'Zend/XmlRpc/Value/Base64.php'; 32 36/** Zend_XmlRpc_Value_DateTime */ 37require_once 'Zend/XmlRpc/Value/DateTime.php'; 38 101 /** 102 * Specify that the XML-RPC native type will be auto detected from a PHP variable type 103 */ 118 const XMLRPC_TYPE_STRING = 'string'; 119 const XMLRPC_TYPE_DATETIME = 'dateTime.iso8601'; 120 const XMLRPC_TYPE_BASE64 = 'base64';PyDown.py https://github.com/jedie/python-code-snippets.git | Python | 459 lines
12__author__ = "Jens Diemer (www.jensdiemer.de)" 13__license__ = "GNU General Public License v2 or above - http://www.opensource.org/licenses/gpl-license.php" 14__url__ = "http://www.jensdiemer.de/Programmieren/Python/PyDown" 34 - NEU: upload 35 - NEU: Download von einzelnen Dateien möglich 36 - NEU: filesystemencoding 60 61 # Datei-Endungsfilter, nur diese Dateien werden beachtet 62 "ext_whitelist": (".mp3",), 93 "temp_prefix": "PyDown_", 94 # Max. alter einer Temp-Datei in Sec. bevor sie automatisch gelöscht wird 95 "temp_max_old": 60, 211 212 # Datenbankverbindung herstellen und dem request-Objekt anhängen 213 self.setup_db()BaseFcvalinmold.php https://github.com/cidesa/roraima-comunal.git | PHP | 714 lines
1<?php 2 416 } else { 417 $affectedRows += FcvalinmoldPeer::doUpdate($this, $con); 418 } 434 435 public function validate($columns = null) 436 { 436 { 437 $res = $this->doValidate($columns); 438 if ($res === true) { 447 448 protected function doValidate($columns = null) 449 { 456 457 if (($retval = FcvalinmoldPeer::doValidate($this, $columns)) !== true) { 458 $failureMap = array_merge($failureMap, $retval);display-debug.page.php https://github.com/evadne/wp-e-commerce.git | PHP | 365 lines
49 <li> 50 <a href='?page=wpsc-debug&wpsc_debug_action=phpinfo'>Display phpinfo</a> 51 </li> 52 <li> 53 <a href='<?php echo $fixpage; ?>'>Fix Purchaselogs</a> 54 </li> 119 120 case 'phpinfo': 121 echo "</pre>"; 141 // wpsc_populate_also_bought_list(); 142 $fields = "cmd=_notify-validate&mc_gross=0.10&invoice=7121255557327&protection_eligibility=Ineligible&address_status=unconfirmed&item_number1=105&payer_id=LCFQDE4F5F6U8&tax=0.00&address_street=2+Offa+RdBedford&payment_date=14%3A56%3A02+Oct+14%2C+2009+PDT&payment_status=Completed&charset=windows-1252&mc_tax1=0.00&address_zip=&mc_shipping=0.00&mc_handling=0.00&first_name=Thomas&mc_fee=0.10&address_country_code=NZ&address_name=test+test¬ify_version=2.8&custom=&payer_status=verified&business=dan%40instinct.co.nz&address_country=New+Zealand&num_cart_items=1&mc_handling1=0.00&address_city=Bedfordshire&verify_sign=AGu.hbwMxRXoqDiyy-IJNOnULnvNAKaQoywaGolyEFLHTSZiM-w0YWH4&payer_email=thomas.howard%40gmail.com&mc_shipping1=0.00&tax1=0.00&txn_id=5014962043916743K&payment_type=instant&last_name=Howard&address_state=&item_name1=m%27a%2Fn.d%2Fe%22l%24%7Ct%2Fe%28s%7Et%29%3A%3B+%C3%85%C3%84%C3%96&receiver_email=dan%40instinct.co.nz&payment_fee=&quantity1=1&receiver_id=LENKCHY6CU2VY&txn_type=cart&mc! 143 _gross_1=0.10&mc_currency=NZD&residence_country=NZ&transaction_subject=Shopping+Cart&payment_gross="; 176 </div> 177 <?php 178}index.php https://github.com/hregis/dolibarr.git | PHP | 427 lines
28require '../../main.inc.php'; 29require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php'; 30require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php'; 116 } 117 if ($status == CommandeFournisseur::STATUS_VALIDATED) { 118 $colorseries[$status] = '-'.$badgeStatus1; 148 149 include_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php'; 150 $dolgraph = new DolGraph(); 206 print '<td class="nowrap">'; 207 print "<a href=\"card.php?id=".$obj->rowid."\">".img_object($langs->trans("ShowOrder"), "order").' '.$obj->ref."</a></td>"; 208 print '<td><a href="'.DOL_URL_ROOT.'/fourn/card.php?socid='.$obj->socid.'">'.img_object($langs->trans("ShowCompany"), "company").' '.dol_trunc($obj->name, 24).'</a></td></tr>'; 338 print '<td><a href="'.DOL_URL_ROOT.'/fourn/card.php?socid='.$obj->socid.'">'.img_object($langs->trans("ShowCompany"), "company").' '.$obj->name.'</a></td>'; 339 print '<td>'.dol_print_date($db->jdate($obj->tms), 'day').'</td>'; 340 print '<td class="right">'.$commandestatic->LibStatut($obj->status, 3, $obj->billed).'</td>';plugin.php https://github.com/mrmark/moodle.git | PHP | 352 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 55 global $CFG; 56 require_once($CFG->libdir . '/filelib.php'); 57 189 * code passed it, or (b) the URL included it). 190 * @param int $width Width passed to function (updated with final value) 191 * @param int $height Height passed to function (updated with final value) 201 global $CFG; 202 require_once($CFG->libdir . '/filelib.php'); 203 if ($this->extensions === null) { 265 $langfiles = get_directory_list($basedir); 266 $candidates = []; 267 foreach ($langfiles as $langfile) { 278 // Not an exact match but similar, for example "pt_br" is similar to "pt". 279 $candidates[$lang] = $langfile; 280 }override_form.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 266 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 28 29require_once($CFG->libdir . '/formslib.php'); 30 101 // Generate an error. 102 $link = new moodle_url('/mod/quiz/overrides.php', array('cmid'=>$cm->id)); 103 print_error('groupsnone', 'quiz', $link); 154 // Generate an error. 155 $link = new moodle_url('/mod/quiz/overrides.php', array('cmid'=>$cm->id)); 156 print_error('usersnone', 'quiz', $link); 177 // Password. 178 // This field has to be above the date and timelimit fields, 179 // otherwise browsers will clear it when those fields are changed. 184 185 // Open and close dates. 186 $mform->addElement('date_time_selector', 'timeopen',internal-link-aliases.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 310 lines
1<?php 2 11 function init() { 12 add_filter('su_custom_update_postmeta-aliases', array(&$this, 'save_post_aliases'), 10, 4); 13 add_filter('the_content', array(&$this, 'apply_aliases'), 9); //Run before wp_texturize etc. 45 46 if ($this->is_action('update')) { 47 68 } 69 $this->update_setting('aliases', $aliases); 70 238 239 $this->update_setting('aliases', $aliases); 240grid.subgrid.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 298 lines
6 * Dual licensed under the MIT and GPL licenses: 7 * http://www.opensource.org/licenses/mit-license.php 8 * http://www.gnu.org/licenses/gpl-2.0.html 133 sid = $(rd).attr("id"); 134 dp = {nd_: (new Date().getTime())}; 135 dp[ts.p.prmNames.subgridid]=sid;store.php https://github.com/dogma/moodle.git | PHP | 362 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 63 $replace = "module = 'course' AND action = 'new' AND userid = :userid AND url = :url AND time > :since"; 64 $params += array('url' => "view.php?id={$params['courseid']}"); 65 return array($replace, $params, $sort); 187 * @param string $module The module name e.g. forum, journal, resource, course, user etc 188 * @param string $action 'view', 'update', 'add' or 'delete', possibly followed by another word to clarify. 189 * @param string $url The file and parameters used to see the results of the action 197 // Note that this function intentionally does not follow the normal Moodle DB access idioms. 198 // This is for a good reason: it is the most frequently used DB update function, 199 // so it has been optimised for speed. 246 247 // If the 100 field size is changed, also need to alter print_log in course/lib.php. 248 if (!empty($url) && \core_text::strlen($url) > 100) { 271 $subject = 'Insert into log failed at your moodle site ' . $site->fullname; 272 $message = "Insert into log table failed at " . date('l dS \of F Y h:i:s A') . 273 ".\n It is possible that your disk is full.\n\n";sfValidatorDateTest.php https://github.com/bheneka/gitta.git | PHP | 246 lines
43 44// validate date array 45$t->diag('validate date array'); 229// timezones 230$defaultTimezone = new DateTimeZone(date_default_timezone_get()); 231$otherTimezone = new DateTimeZone('US/Pacific'); 231$otherTimezone = new DateTimeZone('US/Pacific'); 232if ($defaultTimezone->getOffset(new DateTime()) == $otherTimezone->getOffset(new DateTime())) 233{ 236 237$date = new DateTime('2000-01-01T00:00:00-00:00'); 238$date->setTimezone($otherTimezone); 241$v->setOption('with_time', true); 242$clean = $v->clean($date->format(DATE_ATOM)); 243ki.php https://bitbucket.org/rezanachmad/php-selenium-training.git | PHP | 457 lines
1<?php 2/** 161 ), 162 'dateFormats' => 163 array ( 175 ), 176 'dateTimeFormat' => '{1} {0}', 177 'amName' => 'Kiroko',orderdocument.php https://gitlab.com/neuser/bitrix-core | PHP | 621 lines
1<?php 2namespace Bitrix\Sale\Exchange\OneC; 27 ),*/ 28 'DATE' => array( 29 'TYPE' => 'date' 112 ), 113 '1C_PAYED_DATE' => array( 114 'TYPE' => 'array', 119 'VALUE' => array( 120 'TYPE' => 'datetime' 121 ) 123 ), 124 '1C_DELIVERY_DATE' => array( 125 'TYPE' => 'array', 130 'VALUE' => array( 131 'TYPE' => 'datetime' 132 )class.php https://gitlab.com/neuser/bitrix-core | PHP | 658 lines
1<?php 2if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die(); 12 13require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/classes/general/wizard.php"); //Wizard API 14require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/install/wizard/utils.php"); //Wizard utils 14require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/install/wizard/utils.php"); //Wizard utils 15require_once("tools/bsmpackage.php"); 16require_once("tools/modulechecker.php"); 16require_once("tools/modulechecker.php"); 17require_once("tools/bitrixvmchecker.php"); 18require_once("tools/agentchecker.php"); 18require_once("tools/agentchecker.php"); 19require_once("tools/pushchecker.php"); 20require_once("tools/sitepatcher.php"); 112 return [ 113 "Bitrix\Sale\BsmSiteMaster\Steps\UpdateSystemStep" => [ 114 "SORT" => 350session.php https://github.com/mathieu/fusionforge.git | PHP | 552 lines
178 // User exists, (crypt) unix_pw matches 179 // Update the (MD5) user_pw and retry authentication 180 // It should work, except for status errors 180 // It should work, except for status errors 181 $res = db_query ("UPDATE users 182 SET user_pw='" . md5($passwd) . "' 194 // Empty unix_pw, we'll take the MD5 as authoritative 195 // Update the (crypt) unix_pw and retry authentication 196 // It should work, except for status errors 196 // It should work, except for status errors 197 $res = db_query ("UPDATE users 198 SET unix_pw='" . account_genunixpw($passwd) . "' 490 491//TODO - this should be generalized and used for pre.php, squal_pre.php, 492//SOAP, forum_gateway.php, tracker_gateway.php, etc toattachments.php https://github.com/naderman/phpbb-orchestra.git | PHP | 174 lines
1<?php 2/** 7* @version $Id$ 8* @copyright (c) 2005 phpBB Group 9* @license http://opensource.org/licenses/gpl-license.php GNU Public License 15*/ 16if (!defined('IN_PHPBB')) 17{ 40 'ACP_EXTENSION_GROUPS_EXPLAIN' => 'Here you can add, delete, modify or disable your extension groups. Further options include the assignment of a special category to them, changing the download mechanism and defining an upload icon which will be displayed in front of the attachment which belongs to the group.', 41 'ACP_MANAGE_EXTENSIONS_EXPLAIN' => 'Here you can manage your allowed extensions. To activate your extensions, please refer to the extension groups management panel. We strongly recommend not to allow scripting extensions (such as <code>php</code>, <code>php3</code>, <code>php4</code>, <code>phtml</code>, <code>pl</code>, <code>cgi</code>, <code>py</code>, <code>rb</code>, <code>asp</code>, <code>aspx</code>, and so forth…).', 42 'ACP_ORPHAN_ATTACHMENTS_EXPLAIN' => 'Here you are able to see orphaned files. This happens mostly if users are attaching files but not submitting the post. You are able to delete the files or attach them to existing posts. Attaching to posts requires a valid post ID, you have to determine this ID by yourself. This will assign the already uploaded attachment to the post you entered.', 92 'EXCLUDE_FROM_DISALLOWED_IP' => 'Exclude IP from disallowed IPs/hostnames', 93 'EXTENSIONS_UPDATED' => 'Extensions successfully updated.', 94 'EXTENSION_EXIST' => 'The extension %s already exists.', 154 'SECURE_DOWNLOAD_NOTICE' => 'Secure Downloads are not enabled. The settings below will be applied after enabling secure downloads.', 155 'SECURE_DOWNLOAD_UPDATE_SUCCESS'=> 'The IP list has been updated successfully.', 156 'SECURE_EMPTY_REFERRER' => 'Allow empty referrer',Cloud.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 410 lines
1<?php 2/** 25 */ 26#require_once 'Zend/Tag/Item.php'; 27 143 { 144 // Validate and cleanup the tags 145 $itemList = $this->getItemList(); 152 } else { 153 #require_once 'Zend/Tag/Cloud/Exception.php'; 154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array'); 174 } else { 175 #require_once 'Zend/Tag/Cloud/Exception.php'; 176 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array'); 203 if (null === $this->_tags) { 204 #require_once 'Zend/Tag/ItemList.php'; 205 $this->setItemList(new Zend_Tag_ItemList());class.jetpack-landing-page.php https://gitlab.com/thisishayat/itv-2016 | PHP | 299 lines
27 $format = _x( 'Jetpack %s', 'The menu item label with a new module count as %s', 'jetpack' ); 28 $update_markup = "<span class='update-plugins count-{$new_modules_count}' title='$span_title'><span class='update-count'>$new_count_i18n</span></span>"; 29 $title = sprintf( $format, $update_markup ); 49 add_action( "admin_footer-$hook", apply_filters( 'jetpack_landing_page_js_templates_callback', array( $this, 'js_templates' ), $hook ) ); 50 /** This action is documented in class.jetpack.php */ 51 do_action( 'jetpack_admin_menu', $hook ); 57 58 add_action( 'jetpack_notices_update_settings', array( $this, 'show_notices_update_settings' ), 10, 1 ); 59 } 183 */ 184 function show_notices_update_settings( $module_id ) { 185 $state = Jetpack::state( 'message' ); 203 <div class="squeezer"> 204 <h2><?php echo wp_kses( $message, array( 'strong' => array(), 'a' => array( 'href' => true ), 'br' => true ) ); ?></h2> 205 <?phpcat_contractor_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 339 lines
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/catalog/prolog.php"); 10$selfFolderUrl = $adminPage->getSelfFolderUrl(); 11$listUrl = $selfFolderUrl."cat_contractor_list.php?lang=".LANGUAGE_ID; 12$listUrl = $adminSidePanelHelper->editUrlToPublicPage($listUrl); 20{ 21 require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php"); 22 25 26 require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php"); 27 die(); 40 41if ($_SERVER["REQUEST_METHOD"] == "POST" && check_bitrix_sessid() && $_REQUEST["Update"] <> '' && !$bReadOnly) 42{README.md https://gitlab.com/freebird/WebApp | Markdown | 344 lines
43``` php 44<?php 45 96 * `LessFilter`: parses LESS into CSS (using less.js with node.js) 97 * `LessphpFilter`: parses LESS into CSS (using lessphp) 98 * `OptiPngFilter`: optimize your PNGs 105 * `Sass\ScssFilter`: parses SCSS into CSS 106 * `ScssphpFilter`: parses SCSS using scssphp 107 * `SeparatorFilter`: inserts a separator between assets to prevent merge failures 136``` php 137<?php 138 282``` php 283<?php 284mail.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 406 lines
1<?php 2class Mail { 91 92 $header .= 'Date: ' . date('D, d M Y H:i:s O') . $this->newline; 93 $header .= 'From: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline; 95 $header .= 'Return-Path: ' . $this->from . $this->newline; 96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline; 97 //$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline; 158 } else { 159 if (substr(PHP_OS, 0, 3) != 'WIN') { 160 socket_set_timeout($handle, $this->timeout, 0); 358 foreach ($results as $result) { 359 if (substr(PHP_OS, 0, 3) != 'WIN') { 360 fputs($handle, $result . $this->crlf);glossary_document.php https://github.com/kpike/moodle.git | PHP | 287 lines
1<?php 2/** 9* @contributor Tatsuva Shirai 20090530 10* @date 2008/03/31 11* @license http://www.gnu.org/copyleft/gpl.html GNU Public License 17* Functions for iterating and retrieving the necessary records are now also included 18* in this file, rather than mod/glossary/lib.php 19* 24*/ 25require_once($CFG->dirroot.'/search/documents/document.php'); 26 46 $doc->title = $entry['concept']; 47 $doc->date = $entry['timecreated']; 48 82 $doc->title = get_string('commenton', 'search') . ' ' . $entry['concept']; 83 $doc->date = $entry['timecreated']; 84tracking.inc.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 237 lines
1<?php 2/* 77$langAt = "om"; 78$langLoginTitleDateColumn = "Datum"; 79$langLoginTitleCountColumn = "Bezoeken"; 140$langTrafficDetails = "Trafiekdetails"; 141$langSeeIndividualTracking = "Zie de <a href=\"../user/user.php\">gebruikersmodule</a> voor individuele statistieken."; 142$langPathNeverOpenedByAnybody = "Dit pad is nog nooit geopend door iemand."; 172$NoExercise = "Geen oefeningen"; 173$LimitDate = "Uiterste datum"; 174$SentDate = "Datum van verzending"; 218$AccessDetails = "Toegangsdetails"; 219$DateAndTimeOfAccess = "Datum en tijd van toegang"; 220$Duration = "Duur";CAutoComplete.php https://github.com/LosYear/FluentCMS.git | PHP | 294 lines
1<?php 2/** 31 /** 32 * @var array data that would be saved as client-side data to provide candidate selections. 33 * Each array element can be string or an associative array. 38 /** 39 * @var string|array the URL that can return the candidate selections. 40 * A 'q' GET parameter will be sent with the URL which contains what the user has entered so far.MatchingTask.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 361 lines
1<?php 2/* 2/* 3 * $Id: MatchingTask.php 3076 2006-12-18 08:52:12Z fabien $ 4 * 21 22require_once 'phing/TaskPhing.php'; 23require_once 'phing/types/selectors/SelectorContainer.php'; 23require_once 'phing/types/selectors/SelectorContainer.php'; 24include_once 'phing/types/FileSet.php'; 25include_once 'phing/types/PatternSet.php'; 25include_once 'phing/types/PatternSet.php'; 26include_once 'phing/util/DirectoryScanner.php'; 27 289 /** 290 * add a selector date entry on the selector list 291 * @return DateSelectorEPhotoValidator.php https://github.com/LosYear/FluentCMS.git | PHP | 284 lines
1<?php 2Yii::import('application.modules.user.UserModule'); 37 * @author vladm 38 * @version 0.2alpha_vladm revised version. date: February 14, 2010 39 */ 157 158 protected function validateAttribute($object, $attribute) 159 { 159 { 160 parent::validateAttribute($object, $attribute); 161 } 162 /** 163 * Internally validates a file object. 164 * @param CModel the object being validated 164 * @param CModel the object being validated 165 * @param string the attribute being validated 166 * @param CUploadedFile uploaded file passed to check against a set of rulesPageRepositoryTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 282 lines
1<?php 2/** 139 /** 140 * Test update \Magento\Cms\Api\Data\PageInterface 141 */ 141 */ 142 public function testUpdate() 143 {actions.class.php https://github.com/dada888/phpcollab3.git | PHP | 291 lines
23{ 24 private function validateStaffForm(sfWebRequest $request) 25 { 83 { 84 $from_date = date('Y-m-d H:i:s', strtotime($project_filters['created_at']['year']."-".$project_filters['created_at']['month']."-".$project_filters['created_at']['day'])); 85 } 87 !empty($project_filters['name']) ? $q->where('name LIKE ?', "%".$project_filters['name']."%") : null; 88 !is_null($from_date) ? $q->andWhere("created_at > '".$from_date."'") : null; 89 } 103 $this->form = new idProjectForm(); 104 $this->form->setDefault('starting_date', date('Y-m-d H:i:s', time())); 105 } 140 */ 141 public function executeUpdate(sfWebRequest $request) 142 {CreditCard.php https://github.com/michaelmcandrew/vaw.git | PHP | 297 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4: */ 16 * @category Validate 17 * @package Validate_Finance_CreditCard 18 * @author Stefan Neufeind <pear.neufeind@speedpartner.de> 22 * @version CVS: $Id: CreditCard.php,v 1.13 2007/09/16 16:42:34 kguest Exp $ 23 * @link http://pear.php.net/package/Validate_Finance_CreditCard 24 */ 42 * @copyright 1997-2005 Stefan Neufeind 43 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License 44 * @version Release: @package_version@ 44 * @version Release: @package_version@ 45 * @link http://pear.php.net/package/Validate_Finance_CreditCard 46 */ 233 * This method only checks for the format. It doesn't 234 * validate that the value is the one on the card. 235 *TestOfLinkMySQLDAO.php https://github.com/dagda/ThinkUp.git | PHP | 290 lines
1<?php 2require_once dirname(__FILE__).'/init.tests.php'; 2require_once dirname(__FILE__).'/init.tests.php'; 3require_once THINKUP_ROOT_PATH.'webapp/_lib/extlib/simpletest/autorun.php'; 4require_once THINKUP_ROOT_PATH.'webapp/config.inc.php'; 119 'http://example.com/test', 120 'http://very.long.domain.that.nobody.would.bother.to.type.com/index.php', 'Very Long URL', '12345678901', 121 'twitter', false); 129 $this->assertEqual($result->expanded_url, 130 'http://very.long.domain.that.nobody.would.bother.to.type.com/index.php'); 131 $this->assertEqual($result->title, 'Very Long URL'); 145 146 $updatedlink = $this->DAO->getLinkByUrl($link); 147 $this->assertEqual($updatedlink->expanded_url, "http://expandedurl.com"); 149 $this->DAO->saveExpandedUrl($link, "http://expandedurl1.com", 'my title'); 150 $updatedlink = $this->DAO->getLinkByUrl($link); 151 $this->assertEqual($updatedlink->expanded_url, "http://expandedurl1.com");lib.php https://bitbucket.org/ngmares/moodle.git | PHP | 327 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 24 */ 25require_once($CFG->dirroot . '/repository/lib.php'); 26require_once($CFG->libdir.'/flickrlib.php'); 58 59 $this->flickr = new phpFlickr($this->api_key, $this->secret, $this->token); 60 157 /** 158 * Converts result received from phpFlickr::photo_search to Filepicker/repository format 159 * 189 'thumbnail_width'=>75, 'thumbnail_height'=>75, 190 'date'=>'', 'size'=>'unknown', 'url'=>$photos_url.$p['id']); 191 } 295 $instance = array_shift($instances); 296 $callbackurl = $CFG->wwwroot.'/repository/repository_callback.php?repo_id='.$instance->id; 297 $mform->addElement('static', 'callbackurl', '', get_string('callbackurltext', 'repository_flickr', $callbackurl));wpsc-swfupload-handlers.js https://gitlab.com/endomorphosis/reservationtelco | JavaScript | 348 lines
43 else { 44 jQuery('#media-item-' + fileObj.id).load('async-upload.php', {attachment_id:serverData, fetch:f}, function(){prepareMediaItemInit(fileObj);updateMediaForm()}); 45 } 61 // Tell the server to delete it. TODO: handle exceptions 62 jQuery.ajax({url:'admin-ajax.php',type:'post',success:deleteSuccess,error:deleteError,id:fileObj.id,data:{ 63 id : this.id.replace(/[^0-9]/g,''), 106 .animate({backgroundColor:'#fff'}, 400) 107 .animate({height:0}, 800, null, function(){jQuery(this).remove();updateMediaForm();}); 108 115 116function wpsc_updateMediaForm() { 117 storeState(); 150 output_html += " <div id='gallery_image_"+image_id+"' class='previewimage'>\n"; 151 output_html += " <a class='thickbox' rel='product_extra_image_"+image_id+"' href='admin.php?wpsc_admin_action=crop_image&imagename="+image_src+"&imgheight=480&imgwidth=600&product_id=103&width=640&height=342' id='extra_preview_link_"+image_id+"'>\n"; 152 output_html += " <img title='Preview' alt='Preview' src='"+WPSC_IMAGE_URL+image_src+"' class='previewimage'/>\n";NestedTreeRootTest.php https://github.com/kaiwa/DoctrineExtensions.git | PHP | 337 lines
1<?php 2 15 * @link http://www.gediminasm.org 16 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 17 */ 38 $minutes = intval($took / 60); $seconds = $took % 60; 39 echo sprintf("%s --> %02d:%02d", $msg, $minutes, $seconds) . PHP_EOL; 40 }; 138 139 public function testTreeUpdateShiftToNextBranch() 140 { 167 168 public function testTreeUpdateShiftToRoot() 169 { 197 198 public function testTreeUpdateShiftToOtherParent() 199 {lang.no.php https://bitbucket.org/unixcrab/colab-lims.git | PHP | 255 lines
1<?php 2//include_once("constants.php"); 34$langdata['owner'] = "Eier"; 35$langdata['upload_date'] = "Opplastingsdato"; 36$langdata['modified_date'] = "Endringsdato"; 36$langdata['modified_date'] = "Endringsdato"; 37$langdata['create_date'] = "Lagedato"; 38$langdata['details'] = "Detaljer"; 41$langdata['events'] = "Hendelser"; 42$langdata['date'] = "Dato"; 43$langdata['close'] = "Lukk"; 150$langdata['projects_name'] = "Prosjekt navn"; 151$langdata['projects_startdate'] = "Start dato"; 152$langdata['projects_enddate'] = "Forventet slutt"; 203// account prefs 204$langdata['account_dateformat'] = "Datoformat"; 205$langdata['account_dateformat_mdy'] = "måned/dag/år";SharedTempStore.php https://gitlab.com/mohamed_hussein/prodt | PHP | 318 lines
1<?php 2 34 * the same time. It is the responsibility of the implementation to decide 35 * when and whether one owner can use or update another owner's data. 36 * 170 'data' => $value, 171 'updated' => (int) $this->requestStack->getMainRequest()->server->get('REQUEST_TIME'), 172 ]; 223 if (!$this->lockBackend->acquire($key)) { 224 throw new TempStoreException("Couldn't acquire lock to update item '$key' in '{$this->storage->getCollectionName()}' temporary storage."); 225 } 230 'data' => $value, 231 'updated' => (int) $this->requestStack->getMainRequest()->server->get('REQUEST_TIME'), 232 ]; 244 * @return \Drupal\Core\TempStore\Lock|null 245 * An object with the owner and updated time if the key has a value, or 246 * NULL otherwise.wp-background-process.php https://gitlab.com/campus-academy/krowkaramel | PHP | 503 lines
1<?php // @codingStandardsIgnoreLine. 2/** 100 if ( ! empty( $this->data ) ) { 101 update_site_option( $key, $this->data ); 102 } 107 /** 108 * Update queue 109 * 114 */ 115 public function update( $key, $data ) { 116 if ( ! empty( $data ) ) { 116 if ( ! empty( $data ) ) { 117 update_site_option( $key, $data ); 118 } 314 315 // Update or delete current batch. 316 if ( ! empty( $batch->data ) ) {Tokens.html https://gitlab.com/essere.lab.public/qualitas.class-corpus | HTML | 261 lines
10 11<META NAME="date" CONTENT="2009-02-08"> 12 152<CODE> void</CODE></FONT></TD> 153<TD><CODE><B>PHPTokenizer.</B><B><A HREF="../../../../../net/sourceforge/pmd/cpd/PHPTokenizer.html#tokenize(net.sourceforge.pmd.cpd.SourceCode, net.sourceforge.pmd.cpd.Tokens)">tokenize</A></B>(<A HREF="../../../../../net/sourceforge/pmd/cpd/SourceCode.html" title="class in net.sourceforge.pmd.cpd">SourceCode</A> tokens, 154 <A HREF="../../../../../net/sourceforge/pmd/cpd/Tokens.html" title="class in net.sourceforge.pmd.cpd">Tokens</A> tokenEntries)</CODE>Filesystem.php https://github.com/mamayoleksandr/xtbackup.git | PHP | 317 lines
55 $this->_baseDir = rtrim($this->_baseDir, '/'). '/'; 56 $this->_isWindows = (strpos(strtolower(php_uname('s')), 'win') !== false); 57 $this->_fileStat = new Storage_Filesystem_FileStat(); 114 $obj = Core_FsObject::factoryFromStat($makePath($path), $stat->getStat($path)); 115 $compare->updateFromLocal($obj); 116 $count++; 165 //initialize windows's FileSystemObject 166 /** @noinspection PhpUndefinedClassInspection, PhpUndefinedConstantInspection */ 167 $fso = new COM('Scripting.FileSystemObject', null, CP_UTF8); 191 if($empty($folder)) { 192 //empty folders we update 193 $c($folder->Path.'/'); 202 $compare->updateFromLocalEnd(); 203 $this->_out->jobEnd($job, "done: updated info about $count files"); 204 }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 * 61if ( WP_CACHE ) 62 WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' ); 63 137require( ABSPATH . WPINC . '/taxonomy.php' ); 138require( ABSPATH . WPINC . '/update.php' ); 139require( ABSPATH . WPINC . '/canonical.php' ); 315 * 316 * AJAX requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for 317 * users not logged in.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 34 * 35 * Creates/updates Behat config files getting tests 36 * and steps from Moodle codebase 45 /** 46 * Updates a config file 47 * 57 */ 58 public static function update_config_file($component = '', $testsrunner = true) { 59 global $CFG;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'); 64 $resorted[$switch] = $temp; 65 // now update db sortorder 66 foreach ($resorted as $sortorder=>$instance) { 68 $instance->sortorder = $sortorder; 69 $DB->update_record('enrol', $instance); 70 } 84 $resorted[$switch] = $temp; 85 // now update db sortorder 86 foreach ($resorted as $sortorder=>$instance) {shortcodes.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 334 lines
1<?php 2/** 18 * Please be aware that the above note was made during the beta of WordPress 2.6 19 * and in the future may not be accurate. Please update the note when it is no 20 * longer the case.}}fengoffice.php https://github.com/libersoft/fengoffice-ls.git | PHP | 121 lines
1<?php return array( 2 'chelp add event invitation' => 'Velg brukerene du vil invitere til arrangementet.', 47 'chelp add event reminders' => 'Du kan velge om du vil motta en påminnelse når hendelsen starter. Velg om du vil ha påminnelser som sprettopp-beskjeder i systemet eller om du vil motta e-postvarsel.', 48 'free trial upgrade' => 'Dette er en 30-dagers prøveinstallasjon. Dersom du vil beholde informasjonen og fortsette å bruke våre tjenester: <a class="dashboard-link" href="http://www.fengoffice.com/web/pricing.php">Oppgrader til et abonnement</a>', 49 'chelp personal account' => '<b>Velkommen til kontopanelet</b><br/> 51 På høyre side er det plassert en liste av handlinger. De viktigste handlingene er:<br/> 52 <b>Oppdater profilen:</b> Lar deg endre din informasjon.<br/> 53 <b>Endre passord:</b> Lar deg endre ditt passord<br/>',index.php https://bitbucket.org/kudutest/moodlegit.git | PHP | 428 lines
314 $activity->datepassed = $activity->completionexpected && $activity->completionexpected <= time(); 315 $activity->datepassedclass=$activity->datepassed ? 'completion-expired' : ''; 316 317 if ($activity->completionexpected) { 318 $datetext=userdate($activity->completionexpected,get_string('strftimedate','langconfig')); 319 } else { 329 $formattedactivityname = format_string($activity->name, true, array('context' => $context)); 330 print '<th scope="col" class="'.$activity->datepassedclass.'">'. 331 '<a href="'.$CFG->wwwroot.'/mod/'.$activity->modname. 371 $state=$thisprogress->completionstate; 372 $date=userdate($thisprogress->timemodified); 373 } else { 393 $a->state=$describe; 394 $a->date=$date; 395 $a->user=fullname($user);config.values.php https://gitlab.com/luyxtran264/myproject | PHP | 277 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 6 * 7 * @package PhpMyAdmin 8 */ 9 10if (!defined('PHPMYADMIN')) { 11 exit; 198$cfg_db['Export']['sql_structure_or_data'] = $cfg_db['Export']['_sod_select']; 199$cfg_db['Export']['sql_type'] = array('INSERT', 'UPDATE', 'REPLACE'); 200$cfg_db['Export']['sql_insert_syntax'] = array( 222/** 223 * Basic validator assignments (functions from libraries/config/Validator.php 224 * and 'validators' object in js/config.js) 227$cfg_db['_validators'] = array( 228 'CharTextareaCols' => 'validatePositiveNumber', 229 'CharTextareaRows' => 'validatePositiveNumber',Entry.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 630 lines
18 * @package WindowsAzure\Common\Internal\Atom 19 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 20 * @copyright 2012 Microsoft Corporation 201 if (array_key_exists('updated', $entryArray)) { 202 $this->updated = \DateTime::createFromFormat( 203 \DateTime::ATOM, 464 * 465 * @param \DateTime $updated updated. 466 * 470 { 471 $this->updated = $updated; 472 } 623 Resources::ATOM_NAMESPACE, 624 $this->updated->format(\DateTime::ATOM) 625 );addons_modules.php https://bitbucket.org/mbaily/tremain.git | PHP | 468 lines
62 63 $this->cp->set_right_nav(array('update_modules' => BASE.AMP.'C=addons_modules'.AMP.'check_updates=y')); 64 186 // Send version to update class and let it do any required work 187 if ($this->input->get('check_updates') && $status == 'installed' && file_exists($this->installed_modules[$module]['path'].'upd.'.$module.'.php')) 188 { 203 $this->db->update('modules', array('module_version' => $UPD->version), array('module_name' => ucfirst($module))); 204 $updated[] = $name.': '.lang('updated_to_version').' '.$UPD->version; 205 } 215 { 216 $flashmsg = '<strong>'.lang('updated').'</strong>:<br />'.implode('<br />', $updated); 217 } 334 335 if ($UPD->version > $version && method_exists($UPD, 'update') && $UPD->update($version) !== FALSE) 336 {