421,407 results for 'php empty repo:ilyabazhenov/speakplace' (529 ms)
class.products-post-type.php https://github.com/ArzuA/gitwordpress.git | PHP | 815 lines
233 <?php if ( 'publish' != $post->post_status && 'future' != $post->post_status && 'pending' != $post->post_status ) : ?> 234 <input <?php if ( 'private' == $post->post_status ) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php esc_attr_e( 'Save Draft' ); ?>" class="button button-large" /> 235 <?php elseif ( 'pending' == $post->post_status && $can_publish ) : ?> 253 ?> 254 <a class="preview button button-large" href="<?php echo $preview_link; ?>" target="wp-preview" id="<?php echo $preview_id; ?>"><?php echo $preview_button; ?></a> 255 <input type="hidden" name="wp-preview" id="wp-preview" value="" /> 280 <div id="advanced-action"> 281 <a class="advanced-status-option-link advanced-hidden" href data-hidden="<?php _e( 'Show Advanced', 'it-l10n-ithemes-exchange' ); ?>" data-visible="<?php _e( 'Hide Advanced', 'it-l10n-ithemes-exchange' ); ?>"><?php _e( 'Show Advanced', 'it-l10n-ithemes-exchange' ); ?></a> 282 </div> 321 <?php if ( 'publish' == $post->post_status || 'private' == $post->post_status || $can_publish ) : ?> 322 <a href="#post_status" <?php if ( 'private' == $post->post_status ) { ?>style="display:none;" <?php } ?>class="edit-post-status hide-if-no-js"><?php _e( 'Edit', 'it-l10n-ithemes-exchange' ) ?></a> 323 <div id="post-status-select" class="hide-if-js"> 361 <select name='it-exchange-visibility' id='it-exchange-visibility'> 362 <option<?php selected( $product_visibility, 'visible' ); ?> value='visible'><?php _e( 'Show in Store', 'it-l10n-ithemes-exchange' ) ?></option> 363 <option<?php selected( $product_visibility, 'hidden' ); ?> value='hidden'><?php _e( 'Hide from Store', 'it-l10n-ithemes-exchange' ) ?></option>index.php git://github.com/usebb/UseBB.git | PHP | 287 lines
1<?php 2 61 62if ( empty($_SESSION['installer_running']) && $functions->get_config('installer_run') ) { 63 73 74 if ( !empty($_POST['start']) && !is_writable(ROOT_PATH.'config.php') && !empty($_SESSION['installer_running']) ) { 75 77 78 } elseif ( !empty($_POST['db_type']) && array_key_exists($_POST['db_type'], $db_servers) && !empty($_POST['db_server']) && !empty($_POST['db_username']) && !empty($_POST['db_dbname']) && !empty($_POST['admin_username']) && preg_match(USER_PREG, $_POST['admin_username']) && !empty($_POST['admin_email']) && preg_match(EMAIL_PREG, $_POST['admin_email']) && !empty($_POST['admin_passwd1']) && !empty($_POST['admin_passwd2']) && $functions->validate_password(stripslashes($_POST['admin_passwd1']), true) && strlen(stripslashes($_POST['admin_passwd1'])) >= $functions->get_config('passwd_min_length') && $_POST['admin_passwd1'] == $_POST['admin_passwd2'] ) { 79 110 111 $config_warning = ( !is_writable(ROOT_PATH.'config.php') ) ? '<p class="important"><strong>Tip:</strong> <code>config.php</code> is at this moment not writable by the webserver. Therefore, you will be asked to download the file after filling in this form. If you would like UseBB to edit the file automatically, make <code>config.php</code> writable and <a href="index.php">refresh</a> this wizard.</p>' : ''; 112 225 226} elseif ( $_GET['step'] === 2 && !empty($_SESSION['admin_username']) && preg_match(USER_PREG, $_SESSION['admin_username']) && !empty($_SESSION['admin_email']) && preg_match(EMAIL_PREG, $_SESSION['admin_email']) && !empty($_SESSION['admin_passwd']) ) { 227profile.php https://bitbucket.org/Balancer/projects-balancer | PHP | 1,630 lines
1105 <?php echo $username_field ?> 1106<?php if ($pun_user['id'] == $id || $pun_user['g_id'] == PUN_ADMIN || ($user['g_id'] > PUN_MOD && $pun_config['p_mod_change_passwords'] == '1')): ?><p><a href="<?php echo $pun_config['root_uri'];?>/profile.php?action=change_pass&id=<?php echo $id ?>"><?php echo $lang_profile['Change pass'];/*"*/?></a></p> 1107<?php endif; ?> </div> 1327 <div class="infldset"> 1328<?php if (isset($avatar_format)): ?> <img src="<?php echo $pun_config['root_uri'];?>/<?php echo $pun_config['o_avatars_dir'].'/'.$id.'.'.$avatar_format;/*"*/?>" <?php echo $img_size[3] ?> alt="" /> 1329<?php endif; ?> <p><?php echo $lang_profile['Avatar info'] ?></p> 1342 <div class="txtarea"> 1343 <label><?php echo $lang_profile['Sig max length'] ?>: <?php echo $pun_config['p_sig_length'] ?> / <?php echo $lang_profile['Sig max lines'] ?>: <?php echo $pun_config['p_sig_lines'] ?><br /> 1344 <textarea name="signature" rows="4" cols="65"><?php echo pun_htmlspecialchars($user['signature']) ?></textarea><br /></label> 1346 <ul class="bblinks"> 1347 <li><a href="<?php echo $pun_config['root_uri'];?>/help.php#bbcode" onclick="window.open(this.href); return false;"><?php echo $lang_common['BBCode'] ?></a>: <?php echo ($pun_config['p_sig_bbcode'] == '1') ? $lang_common['on'] : $lang_common['off']; ?></li> 1348 <li><a href="<?php echo $pun_config['root_uri'];?>/help.php#img" onclick="window.open(this.href); return false;"><?php echo $lang_common['img tag'] ?></a>: <?php echo ($pun_config['p_sig_img_tag'] == '1') ? $lang_common['on'] : $lang_common['off']; ?></li> 1348 <li><a href="<?php echo $pun_config['root_uri'];?>/help.php#img" onclick="window.open(this.href); return false;"><?php echo $lang_common['img tag'] ?></a>: <?php echo ($pun_config['p_sig_img_tag'] == '1') ? $lang_common['on'] : $lang_common['off']; ?></li> 1349 <li><a href="<?php echo $pun_config['root_uri'];?>/help.php#smilies" onclick="window.open(this.href); return false;"><?php echo $lang_common['Smilies'] ?></a>: <?php echo ($pun_config['o_smilies_sig'] == '1') ? $lang_common['on'] : $lang_common['off']; ?></li> 1350 </ul>InstallerController.php https://bitbucket.org/openemr/openemr.git | PHP | 774 lines
451 452 if (file_exists($sqldir . "/acl_setup.php") && file_exists($ModulePath . "/version.php") && empty($mod->acl_version)) { 453 $mod->acl_action = "install"; 454 } 455 if (file_exists($sqldir . "/acl_upgrade.php") && file_exists($ModulePath . "/version.php") && !empty($mod->acl_version)) { 456 global $ACL_UPGRADE; 690 $div = []; 691 if (file_exists($modDir . "/acl/acl_upgrade.php") && !empty($Module->acl_version)) { 692 // Pass a unique variable, so below scripts can not be run on their own 728 729 echo PHP_EOL . '--- Run command [' . $moduleAction . '] in module: ' . $moduleName . '---' . PHP_EOL; 730 echo 'start process - ' . date('Y-m-d H:i:s') . PHP_EOL; 731 732 if (!empty($moduleAction) && !empty($moduleName) && $moduleName != "all") { 733 $moduleId = $this->getModuleId($moduleName);modinstall.class.php https://bitbucket.org/argnist/mohana | PHP | 911 lines
1<?php 2/* 83 public function loadSettings($class = 'modInstallSettings') { 84 $path = dirname(__FILE__).'/'.strtolower($class).'.class.php'; 85 $included = @include_once $path; 100 public function loadLexicon($class = 'modInstallLexicon') { 101 $path = dirname(__FILE__).'/'.strtolower($class).'.class.php'; 102 $included = @include $path; 139 case modInstall::MODE_UPGRADE_EVO : 140 $included = @ include MODX_INSTALL_PATH . 'manager/includes/config.inc.php'; 141 if ($included && isset ($dbase)) 145 case modInstall::MODE_UPGRADE_REVO_ADVANCED : 146 $included = @ include MODX_CORE_PATH . 'config/' . MODX_CONFIG_KEY . '.inc.php'; 147 if ($included && isset ($dbase)) { 796 if (defined('MODX_CORE_PATH') && file_exists(MODX_CORE_PATH) && is_dir(MODX_CORE_PATH)) { 797 if (file_exists(MODX_CORE_PATH . 'xpdo/xpdo.class.php') && file_exists(MODX_CORE_PATH . 'model/modx/modx.class.php')) { 798 $exists = true;WebCalendar.class.orig git://pkgs.fedoraproject.org/WebCalendar | Unknown | 984 lines
122 // Several files need a no-cache header and some of the same code. 123 $special = array ( 'month.php', 'day.php', 'week.php', 124 'week_details.php', 'year.php', 'minical.php' ); 375 // if they are not coming from the login.php page. 376 if ( empty ( $PHP_SELF ) && ! empty ( $_SERVER['PHP_SELF'] ) ) 377 $PHP_SELF = $_SERVER['PHP_SELF']; // Backward compatibility. 381 382 if ( ! strstr ( $PHP_SELF, 'login.php' ) && ! empty ( $GLOBALS['login'] ) ) 383 $GLOBALS['login'] = ''; 513 514 if ( empty ( $login ) && empty ( $webcalendar_session ) ) 515 $session_not_found = true; 821 strstr ( $PHP_SELF, 'reject_entry.php' ) || 822 strstr ( $PHP_SELF, 'set_entry_cat.php' ) || 823 strstr ( $PHP_SELF, 'users.php' ) ||WebCalendar.class git://pkgs.fedoraproject.org/WebCalendar | Unknown | 992 lines
122 // Several files need a no-cache header and some of the same code. 123 $special = array ( 'month.php', 'day.php', 'week.php', 124 'week_details.php', 'year.php', 'minical.php' ); 380 // if they are not coming from the login.php page. 381 if ( empty ( $PHP_SELF ) && ! empty ( $_SERVER['PHP_SELF'] ) ) 382 $PHP_SELF = $_SERVER['PHP_SELF']; // Backward compatibility. 386 387 if ( ! strstr ( $PHP_SELF, 'login.php' ) && ! empty ( $GLOBALS['login'] ) ) 388 $GLOBALS['login'] = ''; 518 519 if ( empty ( $login ) && empty ( $webcalendar_session ) ) 520 $session_not_found = true; 829 strstr ( $PHP_SELF, 'reject_entry.php' ) || 830 strstr ( $PHP_SELF, 'set_entry_cat.php' ) || 831 strstr ( $PHP_SELF, 'users.php' ) ||tasks.php https://bitbucket.org/speedealing/speedealing.git | PHP | 399 lines
1<?php 2/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> 27require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php'; 28require_once DOL_DOCUMENT_ROOT.'/projet/class/task.class.php'; 29require_once DOL_DOCUMENT_ROOT.'/core/lib/project.lib.php'; 29require_once DOL_DOCUMENT_ROOT.'/core/lib/project.lib.php'; 30require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php'; 31require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php'; 129 { 130 header("Location: ".DOL_URL_ROOT.'/projet/tasks/index.php'.(empty($mode)?'':'?mode='.$mode)); 131 exit; 144 // We go back on task list 145 header("Location: ".DOL_URL_ROOT.'/projet/tasks/index.php'.(empty($mode)?'':'?mode='.$mode)); 146 exit; 312 { 313 print '<a class="butAction" href="'.$_SERVER['PHP_SELF'].'?id='.$object->id.'&action=create'.$param.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$object->id).'">'.$langs->trans('AddTask').'</a>'; 314 }expedition.class.php https://bitbucket.org/speedealing/speedealing.git | PHP | 1,283 lines
1<?php 2/* Copyright (C) 2003-2008 Rodolphe Quiedeville <rodolphe@quiedeville.org> 28require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php'; 29if (! empty($conf->propal->enabled)) require_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propal.class.php'; 30if (! empty($conf->commande->enabled)) require_once DOL_DOCUMENT_ROOT.'/commande/class/commande.class.php'; 119 120 $file = $conf->global->EXPEDITION_ADDON_NUMBER.".php"; 121 334 // Check parameters 335 if (empty($id) && empty($ref) && empty($ref_ext) && empty($ref_int)) return -1; 336 498 // If stock increment is done on sending (recommanded choice) 499 if (! $error && ! empty($conf->stock->enabled) && ! empty($conf->global->STOCK_CALCULATE_ON_SHIPMENT)) 500 { 1195 $url=''; 1196 if (file_exists(DOL_DOCUMENT_ROOT."/core/modules/expedition/methode_expedition_".strtolower($code).".modules.php") && ! empty($this->tracking_number)) 1197 {fiche.php https://bitbucket.org/speedealing/speedealing.git | PHP | 588 lines
1<?php 2/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> 28require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php'; 29require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php'; 30require_once DOL_DOCUMENT_ROOT.'/compta/dons/class/don.class.php'; 31require_once DOL_DOCUMENT_ROOT.'/compta/paiement/class/paiement.class.php'; 32if (! empty($conf->projet->enabled)) require_once DOL_DOCUMENT_ROOT.'/core/lib/project.lib.php'; 33 229 $newlang=''; 230 if ($conf->global->MAIN_MULTILANGS && empty($newlang) && ! empty($_REQUEST['lang_id'])) $newlang=$_REQUEST['lang_id']; 231 if ($conf->global->MAIN_MULTILANGS && empty($newlang)) $newlang=$donation->client->default_lang; 244 { 245 header('Location: '.$_SERVER["PHP_SELF"].'?id='.$donation->id.(empty($conf->global->MAIN_JUMP_TAG)?'':'#builddoc')); 246 exit; 455 456 $linkback = '<a href="'.DOL_URL_ROOT.'/compta/dons/liste.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>'; 457admin.php https://bitbucket.org/KamranMackey/wordpress.git | PHP | 833 lines
145?> 146<?php if ( !empty($_POST['submit'] ) ) : ?> 147<div id="message" class="updated fade"><p><strong><?php _e('Options saved.') ?></strong></p></div> 223 <td><?php echo htmlspecialchars($ip); ?></td> 224 <td style="padding: 0 .5em; font-weight:bold; color: #fff; background-color: <?php echo $color; ?>"><?php echo ($status ? __('Accessible') : __('Re-trying') ); ?></td> 225 292 <p><?php esc_html_e( $alert['msg'] ); ?></p> 293 <p>More information is available at <a href="https://akismet.com/errors/<?php echo $alert['code']; ?>">https://akismet.com/errors/<?php echo $alert['code']; ?></a></p> 294 </div> 309 return; 310 } elseif ( ( empty($_SERVER['SCRIPT_FILENAME']) || basename($_SERVER['SCRIPT_FILENAME']) == 'edit-comments.php' ) && wp_next_scheduled('akismet_schedule_cron_recheck') ) { 311 function akismet_warning() { 749function akismet_add_comment_author_url() { 750 if ( !empty( $_POST['id'] ) && !empty( $_POST['url'] ) && check_admin_referer( 'comment_author_url_nonce' ) ) { 751 global $wpdb;index.php https://bitbucket.org/varad/usebb-freddy-cannon-edition | PHP | 283 lines
1<?php 2 44 45$_GET['step'] = ( !empty($_GET['step']) && valid_int($_GET['step']) ) ? intval($_GET['step']) : 1; 46 73 74 if ( !empty($_POST['start']) && !is_writable(ROOT_PATH.'config.php') && !empty($_SESSION['installer_running']) ) { 75 77 78 } elseif ( !empty($_POST['db_type']) && array_key_exists($_POST['db_type'], $db_servers) && !empty($_POST['db_server']) && !empty($_POST['db_username']) && !empty($_POST['db_dbname']) && !empty($_POST['admin_username']) && preg_match(USER_PREG, $_POST['admin_username']) && !empty($_POST['admin_email']) && preg_match(EMAIL_PREG, $_POST['admin_email']) && !empty($_POST['admin_passwd1']) && !empty($_POST['admin_passwd2']) && preg_match(PWD_PREG, $_POST['admin_passwd1']) && $_POST['admin_passwd1'] == $_POST['admin_passwd2'] ) { 79 110 111 $config_warning = ( !is_writable(ROOT_PATH.'config.php') ) ? '<p class="important"><strong>Tip:</strong> <code>config.php</code> is at this moment not writable by the webserver. Therefore, you will be asked to download the file after filling in this form. If you would like UseBB to edit the file automatically, make <code>config.php</code> writable (<em>chmod</em> it to 0777) and <a href="index.php">refresh</a> this wizard.</p>' : ''; 112 220 221} elseif ( $_GET['step'] === 2 && !empty($_SESSION['admin_username']) && preg_match(USER_PREG, $_SESSION['admin_username']) && !empty($_SESSION['admin_email']) && preg_match(EMAIL_PREG, $_SESSION['admin_email']) && !empty($_SESSION['admin_passwd']) ) { 222da_catalog_titleRecord.php https://github.com/jmjamison/da_catalog.git | PHP | 759 lines
44<div id="content"> 45<?php 46 52 //include('../db_login2.php'); 53 //include('ISSRDA_login.php'); 54 // set the include file 54 // set the include file 55 //include the login file - db_login.php 56 $sscnetInclude = "ISSRDA_login.php"; 428 # 429 if (empty($file) and empty($study)) { 430 # ignore 496echo "<A HREF='viewfiles.php'>View Data Cart</A><br>"; 497 echo "<A HREF='emptycart.php'>Empty/Clear Data Cart</A><br><br>"; 498 }CHANGELOG.php https://github.com/cavila/Astica.git | PHP | 3,622 lines
2575# Task #870 - Wrong template used for Order Status Change link (ps_order.php) 2576# Task #868 - missing pathway's style class in Account Maintenance (account.billing.php, account.order_details.php, account.shipto.php, account.shipping.php) 2577# Task #867 - errors in german language-file 2591 (http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=21124.msg52587#msg52587) 2592 affected files: ps_checkout.php, ps_product.php, basket.php, admin.show_cfg.php, all language files 2593# possible errors in tax total calculation when coupons are used in vendor-based tax mode 3541 and list_extra_field_5 in file classes/ps_html.php. 3542 You can change position of this fields in form in files: account.shipto.php account.billing.php account.order_details.php 3543 admin.users.html.php admin.user_address_form.php 358601-08-2005 Zdenek Dvorak 3587# Product Type: File mod_virtuemart.php, variable _PHPSHOP_PARAMETER_SEARCH was changed to _PHPSHOP_ADVANCED_PARAMETER_SEARCH 3588 360501-07-2005 Zdenek Dvorak 3606! changed ToolTip in files ps_product_type.php, shop.parameter_search_form.php, product.product_form.php and 3607 product.product_type_parameter_form.phpfiche.php https://github.com/zeert/dolibarr.git | PHP | 574 lines
1<?php 2/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> 27require_once(DOL_DOCUMENT_ROOT."/core/modules/dons/modules_don.php"); 28require_once(DOL_DOCUMENT_ROOT."/core/class/html.formfile.class.php"); 29require_once(DOL_DOCUMENT_ROOT."/core/class/html.formcompany.class.php"); 29require_once(DOL_DOCUMENT_ROOT."/core/class/html.formcompany.class.php"); 30require_once(DOL_DOCUMENT_ROOT."/compta/dons/class/don.class.php"); 31require_once(DOL_DOCUMENT_ROOT."/compta/paiement/class/paiement.class.php"); 226 $newlang=''; 227 if ($conf->global->MAIN_MULTILANGS && empty($newlang) && ! empty($_REQUEST['lang_id'])) $newlang=$_REQUEST['lang_id']; 228 if ($conf->global->MAIN_MULTILANGS && empty($newlang)) $newlang=$donation->client->default_lang; 241 { 242 Header('Location: '.$_SERVER["PHP_SELF"].'?id='.$donation->id.(empty($conf->global->MAIN_JUMP_TAG)?'':'#builddoc')); 243 exit; 444 445 $linkback = '<a href="'.DOL_URL_ROOT.'/compta/dons/liste.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>'; 446readme.md https://bitbucket.org/davide_grobberio/laravel-angular.git | Markdown | 867 lines
121 122The Carbon class is [inherited](http://php.net/manual/en/keyword.extends.php) from the PHP [DateTime](http://www.php.net/manual/en/class.datetime.php) class. 123 149 150There are several different methods available to create a new instance of Carbon. First there is a constructor. It overrides the [parent constructor](http://www.php.net/manual/en/datetime.construct.php) and you are best to read about the first parameter from the PHP manual and understand the date/time string formats it accepts. You'll hopefully find yourself rarely using the constructor but rather relying on the explicit static methods for improved readability. 151 212 213`createFromFormat()` is mostly a wrapper for the base php function [DateTime::createFromFormat](http://php.net/manual/en/datetime.createfromformat.php). The difference being again the `$tz` argument can be a DateTimeZone instance or a string timezone value. Also, if there are errors with the format this function will call the `DateTime::getLastErrors()` method and then throw a `InvalidArgumentException` with the errors as the message. If you look at the source for the `createXX()` functions above, they all make a call to `createFromFormat()`. 214 422 423The PHP function `__isset()` is implemented. This was done as some external systems (ex. [Twig](http://twig.sensiolabs.org/doc/recipes.html#using-dynamic-object-properties)) validate the existence of a property before using it. This is done using the `isset()` or `empty()` method. You can read more about these on the PHP site: [__isset()](http://www.php.net/manual/en/language.oop5.overloading.php#object.isset), [isset()](http://www.php.net/manual/en/function.isset.php), [empty()](http://www.php.net/manual/en/function.empty.php). 424 800 801Change the `readme.src.md` and then use the `readme.php` to generate the new `readme.md` file. It can be run at the command line using `php readme.php` from the project root. Maybe someday I'll extract this out to another project or at least run it with a post receive hook, but for now its just a local tool, deal with it. 802readme.md https://bitbucket.org/Kamor/nexway.git | Markdown | 901 lines
121 122The Carbon class is [inherited](http://php.net/manual/en/keyword.extends.php) from the PHP [DateTime](http://www.php.net/manual/en/class.datetime.php) class. 123 149 150There are several different methods available to create a new instance of Carbon. First there is a constructor. It overrides the [parent constructor](http://www.php.net/manual/en/datetime.construct.php) and you are best to read about the first parameter from the PHP manual and understand the date/time string formats it accepts. You'll hopefully find yourself rarely using the constructor but rather relying on the explicit static methods for improved readability. 151 212 213`createFromFormat()` is mostly a wrapper for the base php function [DateTime::createFromFormat](http://php.net/manual/en/datetime.createfromformat.php). The difference being again the `$tz` argument can be a DateTimeZone instance or a string timezone value. Also, if there are errors with the format this function will call the `DateTime::getLastErrors()` method and then throw a `InvalidArgumentException` with the errors as the message. If you look at the source for the `createXX()` functions above, they all make a call to `createFromFormat()`. 214 438 439The PHP function `__isset()` is implemented. This was done as some external systems (ex. [Twig](http://twig.sensiolabs.org/doc/recipes.html#using-dynamic-object-properties)) validate the existence of a property before using it. This is done using the `isset()` or `empty()` method. You can read more about these on the PHP site: [__isset()](http://www.php.net/manual/en/language.oop5.overloading.php#object.isset), [isset()](http://www.php.net/manual/en/function.isset.php), [empty()](http://www.php.net/manual/en/function.empty.php). 440 834 835Change the `readme.src.md` and then use the `readme.php` to generate the new `readme.md` file. It can be run at the command line using `php readme.php` from the project root. Maybe someday I'll extract this out to another project or at least run it with a post receive hook, but for now its just a local tool, deal with it. 836readme.src.md https://github.com/sean-gnu/Carbon.git | Markdown | 887 lines
125 126The Carbon class is [inherited](http://php.net/manual/en/keyword.extends.php) from the PHP [DateTime](http://www.php.net/manual/en/class.datetime.php) class. 127 153 154There are several different methods available to create a new instance of Carbon. First there is a constructor. It overrides the [parent constructor](http://www.php.net/manual/en/datetime.construct.php) and you are best to read about the first parameter from the PHP manual and understand the date/time string formats it accepts. You'll hopefully find yourself rarely using the constructor but rather relying on the explicit static methods for improved readability. 155 220 221`createFromFormat()` is mostly a wrapper for the base php function [DateTime::createFromFormat](http://php.net/manual/en/datetime.createfromformat.php). The difference being again the `$tz` argument can be a DateTimeZone instance or a string timezone value. Also, if there are errors with the format this function will call the `DateTime::getLastErrors()` method and then throw a `InvalidArgumentException` with the errors as the message. If you look at the source for the `createXX()` functions above, they all make a call to `createFromFormat()`. 222 435 436The PHP function `__isset()` is implemented. This was done as some external systems (ex. [Twig](http://twig.sensiolabs.org/doc/recipes.html#using-dynamic-object-properties)) validate the existence of a property before using it. This is done using the `isset()` or `empty()` method. You can read more about these on the PHP site: [__isset()](http://www.php.net/manual/en/language.oop5.overloading.php#object.isset), [isset()](http://www.php.net/manual/en/function.isset.php), [empty()](http://www.php.net/manual/en/function.empty.php). 437 821 822Change the `readme.src.md` and then use the `readme.php` to generate the new `readme.md` file. It can be run at the command line using `php readme.php` from the project root. Maybe someday I'll extract this out to another project or at least run it with a post receive hook, but for now its just a local tool, deal with it. 823config.inc.php https://github.com/netplayer/PrestaShop.git | PHP | 236 lines
1<?php 2/* 26 27require_once(dirname(__FILE__).'/defines.inc.php'); 28$start_time = microtime(true); 32 33/* Improve PHP configuration to prevent issues */ 34ini_set('upload_max_filesize', '100M'); 42/* No settings file? goto installer... */ 43if (!file_exists(_PS_ROOT_DIR_.'/config/settings.inc.php')) 44{ 76 { 77 if (basename($_SERVER['SCRIPT_NAME']) == 'index.php' && empty($_SERVER['QUERY_STRING'])) 78 $_SERVER['REQUEST_URI'] = dirname($_SERVER['SCRIPT_NAME']).'/'; 132$locale = strtolower(Configuration::get('PS_LOCALE_LANGUAGE')).'_'.strtoupper(Configuration::get('PS_LOCALE_COUNTRY')); 133/* Please do not use LC_ALL here http://www.php.net/manual/fr/function.setlocale.php#25041 */ 134setlocale(LC_COLLATE, $locale.'.UTF-8', $locale.'.utf8');comments.php https://bitbucket.org/bontiv/insomnia | PHP | 234 lines
36 foreach ($_POST['idCom'] as $k => $v) $plxAdmin->modCommentaire($v, 'online'); 37 header('Location: comments.php'.(!empty($_GET['a'])?'?a='.$_GET['a']:'')); 38 exit; 42 foreach ($_POST['idCom'] as $k => $v) $plxAdmin->modCommentaire($v, 'offline'); 43 header('Location: comments.php'.(!empty($_GET['a'])?'?a='.$_GET['a']:'')); 44 exit; 121 122<form action="comments.php<?php echo !empty($_GET['a'])?'?a='.$_GET['a']:'' ?>" method="post" id="form_comments"> 123 220 <?php $urlp_hl = $plxAdmin->racine.'feed.php?admin'.$plxAdmin->aConf['clef'].'/commentaires/hors-ligne'; ?> 221 <li><a href="<?php echo $urlp_hl ?>" title="<?php echo L_COMMENT_OFFLINE_FEEDS_TITLE ?>"><?php echo L_COMMENT_OFFLINE_FEEDS ?></a></li> 222 <?php $urlp_el = $plxAdmin->racine.'feed.php?admin'.$plxAdmin->aConf['clef'].'/commentaires/en-ligne'; ?> 222 <?php $urlp_el = $plxAdmin->racine.'feed.php?admin'.$plxAdmin->aConf['clef'].'/commentaires/en-ligne'; ?> 223 <li><a href="<?php echo $urlp_el ?>" title="<?php echo L_COMMENT_ONLINE_FEEDS_TITLE ?>"><?php echo L_COMMENT_ONLINE_FEEDS ?></a></li> 224 </ul>