421,407 results for 'php empty repo:amrishprajapati/neygengroup1' (865 ms)
CValidator.html https://bitbucket.org/mscherbakov/idn.git | HTML | 778 lines
54 <th>Source Code</th> 55 <td><a class="sourceLink" href="http://code.google.com/p/yii/source/browse/tags/1.1.10/framework/validators/CValidator.php">framework/validators/CValidator.php</a></td> 56</tr> 626<div class="sourceCode"> 627<b>Source Code:</b> <a class="sourceLink" href="http://code.google.com/p/yii/source/browse/tags/1.1.10/framework/validators/CValidator.php#136">framework/validators/CValidator.php#136</a> (<b><a href="#" class="show">show</a></b>) 628<div class="code"><code><span style="color: #000000"> 628<div class="code"><code><span style="color: #000000"> 629<span style="color: #0000BB"></span><span style="color: #007700">public static function </span><span style="color: #0000BB">createValidator</span><span style="color: #007700">(</span><span style="color: #0000BB">$name</span><span style="color: #007700">,</span><span style="color: #0000BB">$object</span><span style="color: #007700">,</span><span style="color: #0000BB">$attributes</span><span style="color: #007700">,</span><span style="color: #0000BB">$params</span><span style="color: #007700">=array())<br />{<br /> if(</span><span style="color: #0000BB">is_string</span><span style="color: #007700">(</span><span style="color: #0000BB">$attributes</span><span style="color: #007700">))<br /> </span><span style="color: #0000BB">$attributes</span><span style="color: #007700">=</span><span style="color: #0000BB">preg_split</span><span style="color: #007700">(</span><span style="color: #DD0000">'/[\s,]+/'</span><span style="color: #007700">,</span><span style="color: #0000BB">$attributes</span><span style="color: #007700">,-</span><span style="color: #0000BB">1</span><span style="color: #007700">,</span><span style="color: #0000BB">PREG_SPLIT_NO_EMPTY</span><span style="color: #007700">);<br /><br /> if(isset(</span><span style="color: #0000BB">$params</span><span style="color: #007700">[</span><span style="color: #DD0000">'on'</span><span style="color: #007700">]))<br /> {<br /> if(</span><span style="color: #0000BB">is_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$params</span><span style="color: #007700">[</span><span style="color: #DD0000">'on'</span><span style="color: #007700">]))<br /> </span><span style="color: #0000BB">$on</span><span style="color: #007700">=</span><span style="color: #0000BB">$params</span><span style="color: #007700">[</span><span style="color: #DD0000">'on'</span><span style="color: #007700">];<br /> else<br /> </span><span style="color: #0000BB">$on</span><span style="color: #007700">=</span><span style="color: #0000BB">preg_split</span><span style="color: #007700">(</span><span style="color: #DD0000">'/[\s,]+/'</span><span style="color: #007700">,</span><span style="color: #0000BB">$params</span><span style="color: #007700">[</span><span style="color: #DD0000">'on'</span><span style="color: #007700">],-</span><span style="color: #0000BB">1</span><span style="color: #007700">,</span><span style="color: #0000BB">PREG_SPLIT_NO_EMPTY</span><span style="color: #007700">);<br /> }<br /> else<br /> </span><span style="color: #0000BB">$on</span><span style="color: #007700">=array();<br /><br /> if(</span><span style="color: #0000BB">method_exists</span><span style="color: #007700">(</span><span style="color: #0000BB">$object</span><span style="color: #007700">,</span><span style="color: #0000BB">$name</span><span style="color: #007700">))<br /> {<br /> </span><span style="color: #0000BB">$validator</span><span style="color: #007700">=new </span><span style="color: #0000BB">CInlineValidator</span><span style="color: #007700">;<br /> </span><span style="color: #0000BB">$validator</span><span style="color: #007700">-></span><span style="color: #0000BB">attributes</span><span style="color: #007700">=</span><span style="color: #0000BB">$attributes</span><span style="color: #007700">;<br /> </span><span style="color: #0000BB">$validator</span><span style="color: #007700">-></span><span style="color: #0000BB">method</span><span style="color: #007700">=</span><span style="color: #0000BB">$name</span><span style="color: #007700">;<br /> if(isset(</span><span style="color: #0000BB">$params</span><span style="color: #007700">[</span><span style="color: #DD0000">'clientValidate'</span><span style="color: #007700">]))<br /> {<br /> </span><span style="color: #0000BB">$validator</span><span style="color: #007700">-></span><span style="color: #0000BB">clientValidate</span><span style="color: #007700">=</span><span style="color: #0000BB">$params</span><span style="color: #007700">[</span><span style="color: #DD0000">'clientValidate'</span><span style="color: #007700">];<br /> unset(</span><span style="color: #0000BB">$params</span><span style="color: #007700">[</span><span style="color: #DD0000">'clientValidate'</span><span style="color: #007700">]);<br /> }<br /> </span><span style="color: #0000BB">$validator</span><span style="color: #007700">-></span><span style="color: #0000BB">params</span><span style="color: #007700">=</span><span style="color: #0000BB">$params</span><span style="color: #007700">;<br /> if(isset(</span><span style="color: #0000BB">$params</span><span style="color: #007700">[</span><span style="color: #DD0000">'skipOnError'</span><span style="color: #007700">]))<br /> </span><span style="color: #0000BB">$validator</span><span style="color: #007700">-></span><span style="color: #0000BB">skipOnError</span><span style="color: #007700">=</span><span style="color: #0000BB">$params</span><span style="color: #007700">[</span><span style="color: #DD0000">'skipOnError'</span><span style="color: #007700">];<br /> }<br /> else<br /> {<br /> </span><span style="color: #0000BB">$params</span><span style="color: #007700">[</span><span style="color: #DD0000">'attributes'</span><span style="color: #007700">]=</span><span style="color: #0000BB">$attributes</span><span style="color: #007700">;<br /> if(isset(</span><span style="color: #0000BB">self</span><span style="color: #007700">::</span><span style="color: #0000BB">$builtInValidators</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">]))<br /> </span><span style="color: #0000BB">$className</span><span style="color: #007700">=</span><span style="color: #0000BB">Yii</span><span style="color: #007700">::</span><span style="color: #0000BB">import</span><span style="color: #007700">(</span><span style="color: #0000BB">self</span><span style="color: #007700">::</span><span style="color: #0000BB">$builtInValidators</span><span style="color: #007700">[</span><span style="color: #0000BB">$name</span><span style="color: #007700">],</span><span style="color: #0000BB">true</span><span style="color: #007700">);<br /> else<br /> </span><span style="color: #0000BB">$className</span><span style="color: #007700">=</span><span style="color: #0000BB">Yii</span><span style="color: #007700">::</span><span style="color: #0000BB">import</span><span style="color: #007700">(</span><span style="color: #0000BB">$name</span><span style="color: #007700">,</span><span style="color: #0000BB">true</span><span style="color: #007700">);<br /> </span><span style="color: #0000BB">$validator</span><span style="color: #007700">=new </span><span style="color: #0000BB">$className</span><span style="color: #007700">;<br /> foreach(</span><span style="color: #0000BB">$params </span><span style="color: #007700">as </span><span style="color: #0000BB">$name</span><span style="color: #007700">=></span><span style="color: #0000BB">$value</span><span style="color: #007700">)<br /> </span><span style="color: #0000BB">$validator</span><span style="color: #007700">-></span><span style="color: #0000BB">$name</span><span style="color: #007700">=</span><span style="color: #0000BB">$value</span><span style="color: #007700">;<br /> }<br /><br /> </span><span style="color: #0000BB">$validator</span><span style="color: #007700">-></span><span style="color: #0000BB">on</span><span style="color: #007700">=empty(</span><span style="color: #0000BB">$on</span><span style="color: #007700">) ? array() : </span><span style="color: #0000BB">array_combine</span><span style="color: #007700">(</span><span style="color: #0000BB">$on</span><span style="color: #007700">,</span><span style="color: #0000BB">$on</span><span style="color: #007700">);<br /><br /> return </span><span style="color: #0000BB">$validator</span><span style="color: #007700">;<br />}</span> 630</span> 672<p>Checks if the given value is empty. 673A value is considered empty if it is null, an empty array, or the trimmed result is an empty string. 674Note that this method is different from PHP empty(). It will return false when the value is 0.</p> 702<div class="sourceCode"> 703<b>Source Code:</b> <a class="sourceLink" href="http://code.google.com/p/yii/source/browse/tags/1.1.10/framework/validators/CValidator.php#188">framework/validators/CValidator.php#188</a> (<b><a href="#" class="show">show</a></b>) 704<div class="code"><code><span style="color: #000000">views-login.php https://bitbucket.org/sanders_nick/front-lawn-pawn.git | PHP | 586 lines
159 160 if($pagenow == 'wp-login.php' && !empty($_GET['action']) && in_array( $_GET['action'], array('lostpassword', 'retrievepassword') ) && self::get_id() ) { 161 wp_redirect(appthemes_get_password_recovery_url('redirect')); 301 302 if($pagenow == 'wp-login.php' && !empty( $_GET['action'] ) && 'rp' == $_GET['action'] && !empty( $_GET['key'] ) && !empty( $_GET['login'] ) && self::get_id() ) { 303 wp_redirect(appthemes_get_password_reset_url('redirect')); 311 312 if(!empty( $_GET['action'] ) && 'rp' == $_GET['action'] && !empty( $_GET['key'] ) && !empty( $_GET['login'] )) { 313 $this->process_form(); 391 392 if(!empty($_GET['action']) && 'rp' == $_GET['action'] && !empty($_GET['key']) && !empty($_GET['login'])) { 393 $url .= 'action='.$_GET['action'].'&key='.$_GET['key'].'&login='.$_GET['login']; 433 function template_redirect() { 434 if ( !empty( $_POST['register'] ) && !empty( $_POST['user_login'] ) && !empty( $_POST['user_email'] )) { 435 $this->process_form();institution.php https://github.com/ybozhko/phd-mahara.git | PHP | 607 lines
1<?php 2/** 81 } elseif ($name == 'theme') { 82 if (!empty($value) && is_string($value) && strlen($value) > 255) { 83 throw new ParamOutOfRangeException("'theme' ($value) should be less than 255 characters in length"); 85 } elseif ($name == 'defaultmembershipperiod') { 86 if (!empty($value) && (!is_numeric($value) || $value < 0 || $value > 9999999999)) { 87 throw new ParamOutOfRangeException("'defaultmembershipperiod' should be a number between 1 and 9,999,999,999"); 89 } elseif ($name == 'maxuseraccounts') { 90 if (!empty($value) && (!is_numeric($value) || $value < 0 || $value > 9999999999)) { 91 throw new ParamOutOfRangeException("'maxuseraccounts' should be a number between 1 and 9,999,999,999"); 531/* The institution selector does exactly the same thing in both 532 institutionadmins.php and institutionstaff.php (in /admin/users/). 533 This function creates the form for the page. */ 591 'datatable' => 'adminstitutionslist', 592 'url' => get_config('wwwroot') . 'admin/users/institutions.php' . (!empty($query) ? '?query=' . urlencode($query) : ''), 593 'jsonscript' => 'admin/users/institutions.json.php',tasks.php https://github.com/asterix14/dolibarr.git | PHP | 347 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"); 107 { 108 Header("Location: ".DOL_URL_ROOT.'/projet/tasks/index.php'.(empty($_REQUEST["mode"])?'':'?mode='.$_REQUEST["mode"])); 109 exit; 119 { 120 if (empty($_GET["id"]) && empty($_POST["id"])) 121 { 122 // We go back on task list 123 Header("Location: ".DOL_URL_ROOT.'/projet/tasks/index.php'.(empty($_REQUEST["mode"])?'':'?mode='.$_REQUEST["mode"])); 124 exit;item_shop.views_default.inc https://github.com/Vaxia/vaxia.git | PHP | 238 lines
86 $handler->display->display_options['footer']['php']['empty'] = TRUE; 87 $handler->display->display_options['footer']['php']['php_output'] = '<?php 88 return _item_shop_show_footer(); 213 $handler->display->display_options['filters']['php']['table'] = 'views'; 214 $handler->display->display_options['filters']['php']['field'] = 'php'; 215 $handler->display->display_options['filters']['php']['group'] = 1; 216 $handler->display->display_options['filters']['php']['use_php_setup'] = 0; 217 $handler->display->display_options['filters']['php']['php_filter'] = 'return item_shop_check_can_afford($row->nid);'; 218 /* Filter criterion: Global: PHP */ 218 /* Filter criterion: Global: PHP */ 219 $handler->display->display_options['filters']['php_1']['id'] = 'php_1'; 220 $handler->display->display_options['filters']['php_1']['table'] = 'views'; 221 $handler->display->display_options['filters']['php_1']['field'] = 'php'; 222 $handler->display->display_options['filters']['php_1']['use_php_setup'] = 0; 223 $handler->display->display_options['filters']['php_1']['php_filter'] = 'return item_shop_check_already_has($row->nid);';errors.html https://github.com/csk83/PHPIDS.git | HTML | 1,433 lines
61<a href="#Email.php">Email.php</a><br> 62<a href="#Empty.php">Empty.php</a><br> 63<a href="#en-x-test.php">en-x-test.php</a><br> 154<a href="#PurifierLinkify.php">PurifierLinkify.php</a><br> 155<a href="#RemoveEmpty.php">RemoveEmpty.php</a><br> 156<a href="#RemoveForeignElements.php">RemoveForeignElements.php</a><br> 542<b>Warning on line 6</b> - no @package tag was used in a DocBlock for class HTMLPurifier_Token_Empty<br> 543<b>Warning on line 8</b> - File "/home/mario/workspace/php-ids.org/trunk/lib/IDS/vendors/htmlpurifier/HTMLPurifier/Token/Empty.php" has no page-level DocBlock, use @package in the first DocBlock to create one<br> 544<b>Warning on line 9</b> - Unknown tag "@warning" used<br> 545<b>Warning on line 10</b> - no @package tag was used in a DocBlock for class HTMLPurifier_ChildDef_Empty<br> 546<b>Warning on line 17</b> - File "/home/mario/workspace/php-ids.org/trunk/lib/IDS/vendors/htmlpurifier/HTMLPurifier/ChildDef/Empty.php" has no page-level DocBlock, use @package in the first DocBlock to create one<br> 547<a name="en-x-test.php"></a> 1143<b>Warning on line 3</b> - no @package tag was used in a DocBlock for class HTMLPurifier_Injector_RemoveEmpty<br> 1144<b>Warning on line 39</b> - File "/home/mario/workspace/php-ids.org/trunk/lib/IDS/vendors/htmlpurifier/HTMLPurifier/Injector/RemoveEmpty.php" has no page-level DocBlock, use @package in the first DocBlock to create one<br> 1145<a name="RemoveForeignElements.php"></a>cnk_section_tree.php https://github.com/netcarver/cnk_section_tree.git | PHP | 1,527 lines
1<?php 2 1126 case urldecode(strtolower(urlencode(gTxt('author')))): 1127 $out['author'] = (!empty($u2)) ? $u2 : ''; break; 1128 // AuthorID gets resolved from Name further down 1131 $out['s'] = 'file_download'; 1132 $out['id'] = (!empty($u2)) ? $u2 : ''; break; 1133 1326 // Tidy up links back to the site homepage 1327 if ($path == 'index.php' && empty($query)) 1328 { 1338 // Check to see if there is query to work with. 1339 else if (empty($query) || $path != 'index.php' || strpos($query, '/') === true) 1340 { 1462 extract($pl['settings']); 1463 if ((empty($s) && empty($c)) || 1464 (empty($con_section) || @$s == $con_section) ||PackageManagerDisplay.php https://github.com/BarnetikKoop/SuiteCRM.git | PHP | 622 lines
1<?php 2/********************************************************************************* 44require_once('include/ytree/Tree.php'); 45require_once('include/ytree/Node.php'); 46require_once('ModuleInstall/PackageManager/ListViewPackages.php'); 78 $error_html = ""; 79 if(!empty($mi_errors)){ 80 $error_html = "<tr><td><span>"; 215 } 216 if($form_action == 'install.php' && (empty($releases) || count($releases['packages']) == 0)){ 217 //return false; 240 $output = "<div id='login_panel'><div class='hd'><b>".$mod_strings['HDR_LOGIN_PANEL']."</b></div>"; 241 $output .= "<div class='bd'><form><table><tr><td>".$mod_strings['LBL_USERNAME']."</td><td><input type='text' name='login_panel_username' id='login_panel_username' value='".$credentials['username']."'></td><td><a href='http://www.sugarcrm.com/crm/index.php?option=com_registration&task=register' target='blank'>".$mod_strings['LNK_NEW_ACCOUNT']."</a></td>"; 242 533 $credentials = PackageManager::getCredentials(); 534 if(empty($credentials['username']) || empty($credentials['password'])){ 535 //$header_text = "<font color='red'><b>".$mod_strings['ERR_CREDENTIALS_MISSING']."</b></font>";PackageManagerDisplay.php https://github.com/item/sugarcrm_dev.git | PHP | 609 lines
1<?php 2/********************************************************************************* 41require_once('include/ytree/Tree.php'); 42require_once('include/ytree/Node.php'); 43require_once('ModuleInstall/PackageManager/ListViewPackages.php'); 74 $error_html = ""; 75 if(!empty($mi_errors)){ 76 $error_html = "<tr><td><span>"; 202 } 203 if($form_action == 'install.php' && (empty($releases) || count($releases['packages']) == 0)){ 204 //return false; 227 $output = "<div id='login_panel'><div class='hd'><b>".$mod_strings['HDR_LOGIN_PANEL']."</b></div>"; 228 $output .= "<div class='bd'><form><table><tr><td>".$mod_strings['LBL_USERNAME']."</td><td><input type='text' name='login_panel_username' id='login_panel_username' value='".$credentials['username']."'></td><td><a href='http://www.sugarcrm.com/crm/index.php?option=com_registration&task=register' target='blank'>".$mod_strings['LNK_NEW_ACCOUNT']."</a></td>"; 229 519 $credentials = PackageManager::getCredentials(); 520 if(empty($credentials['username']) || empty($credentials['password'])){ 521 //$header_text = "<font color='red'><b>".$mod_strings['ERR_CREDENTIALS_MISSING']."</b></font>";update-core.php https://gitlab.com/geyson/geyson.git | PHP | 1,290 lines
846 847 $php_version = phpversion(); 848 $mysql_version = $wpdb->db_version(); 850 $development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' ) ); // a dash in the version indicates a Development release 851 $php_compat = version_compare( $php_version, $required_php_version, '>=' ); 852 if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) 860 if ( !$mysql_compat && !$php_compat ) 861 return new WP_Error( 'php_mysql_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) ); 862 elseif ( !$php_compat ) 862 elseif ( !$php_compat ) 863 return new WP_Error( 'php_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ) ); 864 elseif ( !$mysql_compat ) 935 if ( ! is_wp_error( $result ) ) { 936 if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) { 937 $wp_filesystem->delete( $from, true );class-wp-automatic-updater.php git://github.com/wordpress/wordpress.git | PHP | 1,016 lines
1<?php 2/** 161 } else { 162 $update = ! empty( $item->autoupdate ); 163 } 196 197 $php_compat = version_compare( phpversion(), $item->php_version, '>=' ); 198 if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) { 203 204 if ( ! $php_compat || ! $mysql_compat ) { 205 return false; 208 209 // If updating a plugin, ensure the minimum PHP version requirements are satisfied. 210 if ( 'plugin' === $type ) { 210 if ( 'plugin' === $type ) { 211 if ( ! empty( $item->requires_php ) && version_compare( phpversion(), $item->requires_php, '<' ) ) { 212 return false;index.php http://rapidleech.googlecode.com/svn/trunk/ | PHP | 324 lines
97 if (!empty($_GET['pauth'])) $pauth = decrypt(urldecode(trim($_GET['pauth']))); 98 else $pauth = (!empty($_GET['proxyuser']) && !empty($_GET['proxypass'])) ? base64_encode($_GET['proxyuser'] . ':' . $_GET['proxypass']) : ''; 99} 105 106if (empty($_GET['filename']) || empty($_GET['host']) || empty($_GET['path'])) { 107 $LINK = !empty($_GET['link']) ? trim(rawurldecode($_GET['link'])) : false; 156 // If Url has user & pass, use them as premium login for plugins and set $auth for direct download. 157 if (!empty($Url['user']) && !empty($Url['pass'])) { 158 if (empty($_REQUEST['premium_acc'])) $_GET['premium_acc'] = $_POST['premium_acc'] = $_REQUEST['premium_acc'] = 'on'; 234 $hostmatch = str_replace('.', '_', $hostmatch[1]); 235 if (isset($premium_acc["$hostmatch"]) && is_array($premium_acc["$hostmatch"]) && !empty($premium_acc["$hostmatch"]['user']) && !empty($premium_acc["$hostmatch"]['pass'])) { 236 $auth = base64_encode($premium_acc["$hostmatch"]['user'] . ":" . $premium_acc["$hostmatch"]['pass']); 298 $_GET['partSize'] = (isset($_GET['partSize']) && is_numeric($_GET['partSize']) ? $_GET['partSize'] * 1024 * 1024 : false); 299 if (xmail($fromaddr, $_GET['email'], 'File ' . basename($file['file']), 'File: ' . basename($file['file']) . "\r\n" . 'Link: ' . $_GET['link'] . (!empty($_GET['comment']) ? "\r\n" . 'Comments: ' . str_replace (array('\r', '\n'), array("\r", "\n"), $_GET['comment']) : ''), $pathWithName, $_GET['partSize'], ($_GET['partSize'] && !empty($_GET['method']) ? $_GET['method'] : ''))) { 300 printf(lang(11), $_GET['email'], basename($file['file']));index.php http://rapidleech36b.googlecode.com/svn/trunk/ | PHP | 381 lines
69 70if (empty($_GET ["filename"]) || empty($_GET ["host"]) || empty($_GET ["path"])) { 71 if (!isset($_POST["link"])) { 148 // If Url has user & pass, use them as premium login for plugins and set $auth for direct download. 149 if (!empty($Url['user']) && !empty($Url['pass'])) { 150 if (!$_REQUEST['premium_acc']) $_GET['premium_acc'] = $_POST['premium_acc'] = $_REQUEST['premium_acc'] = 'on'; 210 } 211 insert_location("$PHP_SELF?filename=" . urlencode($FileName) . "&host=" . $Url ["host"] . "&port=" . (isset($Url ["port"]) ? $Url ["port"] : '') . "&path=" . (!empty($Url ["path"]) ? urlencode($Url ["path"]) : '') . (!empty($Url ["query"]) ? urlencode("?" . $Url ["query"]) : "") . "&referer=" . urlencode($Referer) . "&email=" . (!empty($_GET ["domail"]) ? $_GET ["email"] : "") . "&partSize=" . (!empty($_GET ["split"]) ? $_GET ["partSize"] : "") . "&method=" . (!empty($_GET ["method"]) ? $_GET ["method"] : '') . (!empty($_GET ["proxy"]) ? "&useproxy=on&proxy=" . $_GET ["proxy"] : "") . "&saveto=" . $_GET ["path"] . "&link=" . urlencode($LINK) . (isset($_GET ["add_comment"]) && $_GET ["add_comment"] == "on" && !empty($_GET ["comment"]) ? "&comment=" . urlencode($_GET ["comment"]) : "") . $auth . ($pauth ? "&pauth=$pauth" : "") . (isset($_GET["idx"]) ? "&idx=" . $_GET["idx"] : "") . "&cookie=" . (!empty($_GET ["cookie"]) ? urlencode(encrypt($_GET ['cookie'])) : '' . "&dis_plug=on")); 212} else { 278 if ($ftp ["scheme"] == "ftp" && !$_GET ["proxy"]) { 279 $AUTH ["ftp"] = array("login" => !empty($ftp ["user"]) ? $ftp ["user"] : "anonymous", "password" => !empty($ftp ["pass"]) ? $ftp ["pass"] : "anonymous@leechget.com"); 280 require_once (CLASS_DIR . "ftp.php"); 336 $_GET ["partSize"] = (isset($_GET ["partSize"]) && is_numeric($_GET ["partSize"]) ? $_GET ["partSize"] * 1024 * 1024 : false); 337 if (xmail($fromaddr, $_GET ["email"], "File " . basename($file ["file"]), "File: " . basename($file ["file"]) . "\r\n" . "Link: " . $_GET ["link"] . (!empty($_GET ["comment"]) ? "\r\n" . "Comments: " . str_replace("\\r\\n", "\r\n", $_GET ["comment"]) : ""), $pathWithName, $_GET ["partSize"], ($_GET ["partSize"] && !empty($_GET ["method"]) ? $_GET ["method"] : ''))) { 338 print $L->sprintf($L->say['mail_file_sent'], $_GET['email'], basename($file['file']));CController.js git://github.com/phpnode/YiiJS.git | JavaScript | 1,200 lines
280 var priorAction; 281 if(php.empty(filters)) { 282 this.runAction(action); 349 } 350 if(!php.empty(this._pageStates)) { 351 output = this.savePageStates(this._pageStates,output); 435 baseConfig= typeof actionMap[actionID] === 'object' ? actionMap[actionID] : {'class':actionMap[actionID]}; 436 return Yii.createComponent(php.empty(config)?baseConfig:php.array_merge(baseConfig,config),this,requestActionID); 437 } 965 else { 966 name=php.ucfirst(php.basename(this.getId())); 967 if(this.getAction()!==null && php.strcasecmp(this.getAction().getId(),this.defaultAction)) { 1059 * Returns whether the caching stack is empty. 1060 * @returns {Boolean} whether the caching stack is empty. If not empty, it means currently there are 1061 * some output cache in effect. Note, the return result of this method may change when it isdispatch.php git://github.com/Dolibarr/dolibarr.git | PHP | 1,090 lines
93 94if ($action == 'checkdispatchline' && !((empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande->receptionner)) || (!empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande_advance->check)))) 95{ 137 138if ($action == 'uncheckdispatchline' && !((empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande->receptionner)) || (!empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande_advance->check)))) 139{ 180 181if ($action == 'denydispatchline' && !((empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande->receptionner)) || (!empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande_advance->check)))) 182{ 819 if (!empty($conf->global->SUPPLIER_ORDER_CAN_UPDATE_BUYINGPRICE_DURING_RECEIPT)) { 820 if (empty($conf->multicurrency->enabled) && empty($conf->dynamicprices->enabled)) { 821 // Price 1036 print '<td class="center">'; 1037 if ((empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande->receptionner)) || (!empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande_advance->check))) 1038 {login.php git://pkgs.fedoraproject.org/WebCalendar | PHP | 307 lines
55 56$cookie_path = str_replace ( 'login.php', '', $PHP_SELF ); 57//echo "Cookie path: $cookie_path\n"; 240 <input name="login" id="user" size="15" maxlength="25" 241 value="<?php if ( ! empty ( $last_login ) ) echo $last_login;?>" 242 tabindex="1" /> 271 if ( $nulist[$i]['cal_is_public'] == 'Y' ) { 272 ?><a class="nav" href="nulogin.php?login=<?php 273 echo $nulist[$i]['cal_login'] . '">' . 283<br /><br /> 284<?php if ( ! empty ( $ALLOW_SELF_REGISTRATION ) && 285 $ALLOW_SELF_REGISTRATION == 'Y' ) { 298<br /> 299<a href="<?php echo $PROGRAM_URL ?>" id="programname"><?php echo $PROGRAM_NAME?></a> 300<?php // Print custom trailer (since we do not call print_trailer function)trailer.php git://pkgs.fedoraproject.org/WebCalendar | PHP | 336 lines
29 $publicStr = $PUBLIC_ACCESS_FULLNAME; 30 if ( empty ( $readonly ) || $readonly != 'Y' ) 31 $readonly = 'N'; 47 // Get HOME URL and text. 48 if ( ! empty ( $GLOBALS['HOME_LINK'] ) ) { 49 $home = $GLOBALS['HOME_LINK']; 54 55 $mycal = ( empty ( $GLOBALS['STARTVIEW'] ) 56 ? 'index.php' : $GLOBALS['STARTVIEW'] ); 56 ? 'index.php' : $GLOBALS['STARTVIEW'] ); 57 $mycal .= ( strpos ( $mycal, '.php' )? '' : '.php' ); 58 67 $todayURL = ( ! strstr ( $reqURI, 'day.php' ) && ! 68 strstr ( $reqURI, 'month.php' ) && ! strstr ( $reqURI, 'week.php' ) 69 ? 'day.php' : $reqURI );admin.php https://bitbucket.org/dkrzos/phc.git | PHP | 911 lines
176 <?php else: ?> 177 <h2 class="ak-header"><?php printf( __( 'Akismet <a href="%s" class="add-new-h2">Stats</a>' ), esc_url( add_query_arg( array( 'page' => 'akismet-stats-display' ), class_exists( 'Jetpack' ) ? admin_url( 'admin.php' ) : admin_url( 'index.php' ) ) ) ); ?></h2> 178 <?php endif; ?> 205 <td> 206 <input id="key" name="key" type="text" size="15" maxlength="12" value="<?php echo esc_html( get_option('wordpress_api_key') ); ?>" class="regular-text code <?php echo $key_status;?>"><div class="under-input key-status <?php echo $key_status;?>"><?php echo ucfirst( $key_status );?></div> 207 <p class="need-key description"><?php printf( __('You must enter a valid Akismet API key here. If you need an API key, you can <a href="%s">create one here</a>'), '#' );?></p> 214 <fieldset><legend class="screen-reader-text"><span><?php _e('Settings');?></span></legend> 215 <label for="akismet_discard_month" title="<?php echo esc_attr( __( 'Auto-detete old spam' ) ); ?>"><input name="akismet_discard_month" id="akismet_discard_month" value="true" type="checkbox" <?php echo get_option('akismet_discard_month') == 'true' ? 'checked="checked"':''; ?>> <span><?php _e('Auto-delete spam submitted on posts more than a month old.'); ?></span></label><br> 216 <label for="akismet_show_user_comments_approved" title="<?php echo esc_attr( __( 'Show approved comments' ) ); ?>"><input name="akismet_show_user_comments_approved" id="akismet_show_user_comments_approved" value="true" type="checkbox" <?php echo get_option('akismet_show_user_comments_approved') == 'true' ? 'checked="checked"':''; ?>> <span><?php _e('Show the number of comments you\'ve approved beside each comment author.'); ?></span></label> 308 if ( !$api_key ) :?> 309 <div id="akismet-warning" class="updated fade"><p><strong><?php _e('Akismet is almost ready.');?></strong> <?php printf( __( 'You must <a href="%1$s">enter your Akismet API key</a> for it to work.' ), esc_url( add_query_arg( array( 'page' => 'akismet-key-config' ), admin_url( 'admin.php' ) ) ) );?></p></div><?php 310 else :?> 310 else :?> 311 <iframe src="<?php echo esc_url( sprintf( '%s://akismet.com/web/1.0/user-stats.php?blog=%s&api_key=%s', is_ssl()?'https':'http', $blog, $api_key ) ); ?>" width="100%" height="2500px" frameborder="0" id="akismet-stats-frame"></iframe><?php 312 endif;?>config.inc.php https://bitbucket.org/marcenuc/prestashop.git | PHP | 182 lines
1<?php 2/* 23* @version Release: $Revision: 7331 $ 24* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25* International Registered Trademark & Property of PrestaShop SA 27 28require_once(dirname(__FILE__).'/defines.inc.php'); 29$start_time = microtime(true); 33 34/* Improve PHP configuration to prevent issues */ 35ini_set('upload_max_filesize', '100M'); 43/* No settings file? goto installer... */ 44if (!file_exists(dirname(__FILE__).'/settings.inc.php')) 45{ 71 { 72 if (basename($_SERVER['SCRIPT_NAME']) == 'index.php' && empty($_SERVER['QUERY_STRING'])) 73 $_SERVER['REQUEST_URI'] = dirname($_SERVER['SCRIPT_NAME']).'/';config.inc.php https://bitbucket.org/yhjohn/ayanapure.com.git | PHP | 187 lines
1<?php 2/* 23* @version Release: $Revision: 7331 $ 24* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25* International Registered Trademark & Property of PrestaShop SA 39 40/* Improve PHP configuration to prevent issues */ 41ini_set('upload_max_filesize', '100M'); 49/* No settings file? goto installer... */ 50if (!file_exists(dirname(__FILE__).'/settings.inc.php')) 51{ 58 59require_once(dirname(__FILE__).'/settings.inc.php'); 60require_once(dirname(__FILE__).'/defines.inc.php'); 77 { 78 if (basename($_SERVER['SCRIPT_NAME']) == 'index.php' && empty($_SERVER['QUERY_STRING'])) 79 $_SERVER['REQUEST_URI'] = dirname($_SERVER['SCRIPT_NAME']).'/';