100+ results results for 'php strlen repo:lmorchard/friendfeedarchiver' (189 ms)
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* @version Release: $Revision: 6851 $ 24* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25* International Registered Trademark & Property of PrestaShop SA 97 { 98 $subDomainLength = strlen($subDomain) + 1; 99 if (strncmp($subDomain.'.', $domain, $subDomainLength) == 0) 282 /** 283 * Setcookie according to php version 284 */ 296 } 297 if (PHP_VERSION_ID <= 50200) /* PHP version > 5.2.0 */ 298 return setcookie($this->_name, $content, $time, $this->_path, $this->_domain, 0);db.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 438 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | ?????????? (Build on ThinkPHP) 4// +---------------------------------------------------------------------- 356 } else { 357 $len = strlen($sql); 358 $mark = $clean = '';func.php http://snowcms.googlecode.com/svn/trunk/ | PHP | 272 lines
1<?php 2//////////////////////////////////////////////////////////////////////////// 66 'stripos' => create_function('$haystack, $needle, $offset = 0', ' 67 // This function doesn\'t exist until PHP 5.2.0 >= 68 if(function_exists(\'mb_stripos\')) 79 return mb_strstr(mb_strtolower($haystack), mb_strtolower($needle), $part);'), 80 'strlen' => 'mb_strlen', 81 'strpos' => 'mb_strpos', 111 'stristr' => 'stristr', 112 'strlen' => 'strlen', 113 'strpos' => 'strpos',currency.php http://coderstalk.googlecode.com/svn/trunk/ | PHP | 460 lines
1<?php 2class ControllerLocalisationCurrency extends Controller { 416 417 if ((strlen(utf8_decode($this->request->post['title'])) < 3) || (strlen(utf8_decode($this->request->post['title'])) > 32)) { 418 $this->error['title'] = $this->language->get('error_title'); 420 421 if (strlen(utf8_decode($this->request->post['code'])) != 3) { 422 $this->error['code'] = $this->language->get('error_code');Streams.php http://netdns2.googlecode.com/svn/trunk/ | PHP | 338 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 6 * 7 * PHP Version 5 8 * 44 * @copyright 2010 Mike Pultz <mike@mikepultz.com> 45 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 46 * @version SVN: $Id: Streams.php 148 2012-02-10 20:18:19Z mike.pultz $ 46 * @version SVN: $Id: Streams.php 148 2012-02-10 20:18:19Z mike.pultz $ 47 * @link http://pear.php.net/package/Net_DNS2 48 * @since File available since Release 0.6.0 52/** 53 * Socket handling class using the PHP Streams 54 * 54 * 55 * The sockets extension is faster than the stream functions in PHP, but it's 56 * not standard. So if the extension is loaded, then the Net_DNS_Socket_Socketsphp_solr_response.c git://pkgs.fedoraproject.org/php-pecl-solr | C | 433 lines
10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 201 Returns the serialized object string derived from the XML response. */ 202PHP_METHOD(SolrResponse, getDigestedResponse) 203{ 289 290 int json_translation_result = solr_json_to_php_native(&buffer, Z_STRVAL_P(raw_response), Z_STRLEN_P(raw_response) TSRMLS_CC); 291 298 299 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error in JSON->PHP conversion. JSON Error Code %d", json_translation_result); 300 } 385 Destructor */ 386PHP_METHOD(SolrQueryResponse, __destruct) 387{functions.php http://collectgame.googlecode.com/svn/trunk/ | PHP | 429 lines
1<?php 2/** 252 if($condition!="("){ 253 $condition = substr($condition,0,strlen($condition)-1); 254 $condition = $condition.")" ; 378 } 379 $youxiID = substr($youxiID,0,strlen($youxiID)-1); 380 $sql = "select p.id,p.post_title from wp_posts p,wp_customlog c where p.id = c.data and custom_id = '".$cookid."' and data_type = 1 order by op_date desc limit 4"; 414 <ul class="pl_left"> 415 <li><img src="<?php bloginfo('template_url');?>/images/pingltx.jpg" width="57" height="57" alt="?????" title="?????" /></li> 416 <li class="pl_name"><?php echo get_comment_author_link();?></li> 419 <ul class="pl_cont"> 420 <li class="pl_time">???:<?php echo get_comment_date() ;echo get_comment_time(); ?></li> 421 <li class="pl_main"><?php comment_text();?></li> 422 </ul> 423 <span class="louceng"><?php echo $GLOBALS['comments_indexs'];?>F</span> 424 </div>php_fopen_wrapper.c git://github.com/vpj/PHP-Extension-API.git | C | 351 lines
39 40static size_t php_stream_output_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) 41{ 149 150php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) 151{ 201 } 202 return php_stream_alloc(&php_stream_input_ops, ecalloc(1, sizeof(off_t)), 0, "rb"); 203 } 278 } else { 279 php_stream_apply_filter_list(stream, p, mode_rw & PHP_STREAM_FILTER_READ, mode_rw & PHP_STREAM_FILTER_WRITE TSRMLS_CC); 280 } 336 337php_stream_wrapper php_stream_php_wrapper = { 338 &php_stdio_wops,sqlite_statement.c git://github.com/vpj/PHP-Extension-API.git | C | 366 lines
10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 27#include "ext/standard/info.h" 28#include "pdo/php_pdo.h" 29#include "pdo/php_pdo_driver.h" 128 Z_TYPE_P(param->parameter) = IS_STRING; 129 Z_STRLEN_P(param->parameter) = php_stream_copy_to_mem(stm, 130 &Z_STRVAL_P(param->parameter), PHP_STREAM_COPY_ALL, 0); 224 stmt->columns[colno].name = estrdup(sqlite3_column_name(S->stmt, colno)); 225 stmt->columns[colno].namelen = strlen(stmt->columns[colno].name); 226 stmt->columns[colno].maxlen = 0xffffffff;recordsettable.php http://webpy-php-port.googlecode.com/svn/trunk/ | PHP | 422 lines
1<?php 2 264 265 if (strlen($fname)==0) $fname = ''; 266 342 343 if (strlen($v) == 0) $v = ''; 344 $fieldval = $v;GraphWidget.cpp git://pkgs.fedoraproject.org/edb | C++ | 381 lines
152 const char *tmp = agget(obj, const_cast<char*>(name)); 153 if(tmp == 0 || strlen(tmp) == 0) 154 return fallback; 164 const char *tmp = agget(obj, const_cast<char*>(name)); 165 if(tmp == 0 || strlen(tmp) == 0) 166 return fallback; 222 223 QPen graphPen(aggetToQColor(graph, "color", Qt::white)); 224 229 230 QGraphicsRectItem *item = scene_->addRect(subGraphRect, graphPen, graphBrush); 231 item->setZValue(INT_MIN);user.php git://pkgs.fedoraproject.org/virtuoso-opensource | PHP | 387 lines
1<?php 2# 22?> 23<?php 24 147 $GLOBALS[$prefix . "email"] = empty ( $row[3] ) ? "" : $row[3]; 148 if ( strlen ( $row[0] ) && strlen ( $row[1] ) ) 149 $GLOBALS[$prefix . "fullname"] = "$row[0] $row[1]"; 180 181 if ( strlen ( $email ) ) 182 $uemail = "'" . $email . "'"; 184 $uemail = "NULL"; 185 if ( strlen ( $firstname ) ) 186 $ufirstname = "'" . $firstname . "'"; 364 while ( $row = dbi_fetch_row ( $res ) ) { 365 if ( strlen ( $row[1] ) && strlen ( $row[2] ) ) 366 $fullname = "$row[2] $row[1]";admin.media.php http://miacms.googlecode.com/svn/trunk/ | PHP | 360 lines
1<?php 2/** 4* @subpackage Media Manager 5* @author MiaCMS see README.php 6* @copyright see README.php 6* @copyright see README.php 7* See COPYRIGHT.php for copyright notices and details. 8* @license GNU/GPL Version 2, see LICENSE.php 19 | $acl->acl_check( 'administration', 'edit', 'users', $my->usertype, 'components', 'com_media' ))) { 20 mosRedirect( 'index2.php', T_('You are not authorized to view this resource.') ); 21} 38if (is_int(strpos ($listdir, "..")) && $listdir<>'') { 39 mosRedirect( "index2.php?option=com_media&listdir=".$_POST['dirPath'], T_("NO HACKING PLEASE") ); 40 } 50 if (ini_get('safe_mode')=="On") { 51 mosRedirect( "index2.php?option=com_media&listdir=".$_POST['dirPath'], T_("Directory creation not allowed while running in SAFE MODE as this can cause problems.") ); 52 }CTree.php git://pkgs.fedoraproject.org/zabbix | PHP | 241 lines
1<?php 2/* 20?> 21<?php 22 117 118 $count = isset($this->tree[$id]['nodeimg']) ? zbx_strlen($this->tree[$id]['nodeimg']) : 0; 119 for ($i = 0; $i < $count; $i++) {genmenu.php http://opixido-ocms.googlecode.com/svn/trunk/ | PHP | 325 lines
1<?php 2 147 $nbM++; 148 if (strlen($this->separator) && $cpt > 1) { 149 $tpl = new genTemplate();phmagick.php http://bedita.googlecode.com/svn/trunk/ | PHP | 341 lines
1<?php 2/* 51 if(is_null($this->escapeChars) ){ 52 $this->escapeChars = !( strtolower ( substr( php_uname('s'), 0, 3)) == "win" ) ; 53 } 95 if($path != '') 96 if ( strpos($path, '/') < strlen($path)) 97 $path .= '/'; 163 $base = dirname(__FILE__) . '/plugins'; 164 $plugins = glob($base . '/*.php'); 165 foreach($plugins as $plugin){ 166 include_once $plugin ; 167 $name = basename($plugin, '.php'); 168 $className = 'phMagick_'.$name ;Decoder.php git://github.com/shevron/sopha.git | PHP | 462 lines
1<?php 2 3/** 4 * Sopha - A PHP 5.x Interface to CouchDB 5 * 28 29require_once 'Sopha/Json.php'; 30 31/** 32 * Decode JSON encoded string to PHP variable constructs 33 * 100 $this->_source = $source; 101 $this->_sourceLength = strlen($source); 102 $this->_token = self::EOF; 146 if (null === $source) { 147 require_once 'Sopha/Json/Exception.php'; 148 throw new Sopha_Json_Exception('Must specify JSON encoded source for decoding');auth_login.php git://pkgs.fedoraproject.org/cacti | PHP | 365 lines
1<?php 2/* 42 }elseif (isset($_SERVER["HTTP_PHP_AUTH_USER"])) { 43 $username = str_replace("\\", "\\\\", $_SERVER["HTTP_PHP_AUTH_USER"]); 44 }elseif (isset($_SERVER["HTTP_REMOTE_USER"])) { 220 } elseif (sizeof(db_fetch_assoc("SELECT realm_id FROM user_auth_realm WHERE realm_id = 8 AND user_id = " . $_SESSION["sess_user_id"])) == 0) { 221 header("Location: graph_view.php"); 222 } else { 289<body bgcolor="#FFFFFF" onload="document.login.login_username.focus()"> 290 <form name="login" method="post" action="<?php print basename($_SERVER["PHP_SELF"]);?>"> 291 <input type="hidden" name="action" value="login"> 301 <tr> 302 <td colspan="2"><center><?php if ($cacti_logo != '') { ?><img src="<?php echo $cacti_logo; ?>" border="0" alt=""><?php } ?></center></td> 303 </tr> 360 </table> 361<?php api_plugin_hook('login_after'); ?> 362 </form>Xml.class.php http://sqltoappledictionary.googlecode.com/svn/trunk/ | PHP | 377 lines
1<?php 2 282 static function __character_data_handler($parser, $data) { 283 if((strlen($data) === 1 && htmlentities($data) != $data) || htmlentities($data) == $data) { 284 Xml::$build->addChild(Xml::createPCData(htmlentities($data)));import.php https://code.google.com/p/my-imouto-booru/ | PHP | 338 lines
6 There was an error with<br /> 7 "<em><?php echo substr(Request::$params->post['filename'], 0, 50); strlen(Request::$params->post['filename']) > 50 && print '...' ?></em>": 8 <h6><?php echo $errors ?></h6> 17 Import.set_status(<?php echo Request::$params->post['i'] ?>, '<?php echo $status ?>'); 18 <?php if ($status != 'Posted') : ?>Import.error_count();<?php endif ?> 19 <?php if (!$errors) : ?>Import.ids.push(<?php echo $post->id ?>);<?php endif ?> 19 <?php if (!$errors) : ?>Import.ids.push(<?php echo $post->id ?>);<?php endif ?> 20 <?php if ($dupe) : ?>Import.dupes.push(<?php echo Request::$params->post['i'] ?>);<?php endif ?> 21 </div> 65 <?php if ($invalid_files):foreach (range(0, count($invalid_files) - 1) as $i): ?> 66 <tr id="e<?php echo $invalid_files[$i] ?>" class="<?php echo cycle('even', 'odd') ?>"> 67 <td><?php echo substr($invalid_files[$i], 0, 105) ?></td> 73 <tr id="file<?php echo $i ?>" class="<?php echo cycle('even', 'odd') ?>"> 74 <td><?php echo substr($files[$i], 0, 100); strlen($files[$i]) > 100 && print '...' ?></td> 75 <td>Waiting</td>Color.php git://github.com/Dolibarr/dolibarr.git | PHP | 477 lines
20 * 21 * @category PHPExcel 22 * @package PHPExcel_Style 22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2011 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 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_Style_Color implements PHPExcel_IComparable 37{ 206 * <code> 207 * $objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->getColor()->applyFromArray( array('rgb' => '808080') ); 208 * </code>FigletTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: FigletTest.php 23772 2011-02-28 21:35:29Z ralph $ 21 */ 23// Call Zend_Captcha_FigletTest::main() if this source file is executed directly. 24if (!defined("PHPUnit_MAIN_METHOD")) { 25 define("PHPUnit_MAIN_METHOD", "Zend_Captcha_FigletTest::main"); 27 28require_once 'Zend/Form/Element/Captcha.php'; 29require_once 'Zend/Captcha/Adapter.php'; 29require_once 'Zend/Captcha/Adapter.php'; 30require_once 'Zend/Config.php'; 31 39 */ 40class Zend_Captcha_FigletTest extends PHPUnit_Framework_TestCase 41{SPF_Session.php http://spf-php.googlecode.com/svn/trunk/ | PHP | 337 lines
1<?php 2/** 6 * @copyright Copyright (c) 2007, Simon Downes 7 * @license http://www.opensource.org/licenses/mit-license.php 8 */ 20 * @copyright Copyright (c) 2007, Simon Downes 21 * @license http://www.opensource.org/licenses/mit-license.php 22 */ 25 /** 26 * The session id assigned by PHP (usually a 32 character alpha-numeric string). 27 * @var string 75 /** 76 * Disable PHP5's cloning method so people can't make copies of the session instance. 77 * 101 * @return void 102 * @link http://us3.php.net/manual/en/language.oop5.overloading.php 103 */jabber.php git://pkgs.fedoraproject.org/php-laconica | PHP | 290 lines
1<?php 2/* 21 22require_once('XMPPHP/XMPP.php'); 23 23 24# XXX: something of a hack to work around problems with the XMPPHP lib 25 25 26class Laconica_XMPP extends XMPPHP_XMPP { 27 40 41 $cnt = strlen($out); 42 common_log(LOG_DEBUG, "Sending $cnt chars to $to"); 82 common_config('xmpp', 'debug') ? 83 XMPPHP_Log::LEVEL_VERBOSE : NULL 84 );registry.php git://github.com/joomla/joomla-platform.git | PHP | 472 lines
1<?php 2/** 90 * @since 12.2 91 * @note The interface is only present in PHP 5.4 and up. 92 */ 342 */ 343 $nodes = array_values(array_filter(explode('.', $path), 'strlen')); 344FigletTest.php git://pkgs.fedoraproject.org/php-ZendFramework | PHP | 364 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: FigletTest.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 23// Call Zend_Captcha_FigletTest::main() if this source file is executed directly. 24if (!defined("PHPUnit_MAIN_METHOD")) { 25 define("PHPUnit_MAIN_METHOD", "Zend_Captcha_FigletTest::main"); 27 28require_once 'Zend/Form/Element/Captcha.php'; 29require_once 'Zend/Captcha/Adapter.php'; 29require_once 'Zend/Captcha/Adapter.php'; 30require_once 'Zend/Config.php'; 31 39 */ 40class Zend_Captcha_FigletTest extends PHPUnit_Framework_TestCase 41{MY_Controller.php git://github.com/twilio/OpenVBX.git | PHP | 549 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 21 22define('VBX_ROOT', dirname( substr(BASEPATH, 0, strlen(BASEPATH) - 1 )) . ''); 23define('VBX_PARENT_TENANT', 1); 25 26require_once APPPATH . 'libraries/PhoneNumber.php'; 27require_once APPPATH . 'libraries/Plugin.php'; 27require_once APPPATH . 'libraries/Plugin.php'; 28require_once APPPATH . 'libraries/AppletUI.php'; 29require_once APPPATH . 'libraries/OpenVBX.php'; 29require_once APPPATH . 'libraries/OpenVBX.php'; 30require_once APPPATH . 'libraries/PluginData.php'; 31require_once APPPATH . 'libraries/FlowStore.php'; 31require_once APPPATH . 'libraries/FlowStore.php'; 32require_once APPPATH . 'libraries/AppletInstance.php'; 33require_once APPPATH . 'libraries/Caches/Abstract.php';postgres_driver.inc http://scalr.googlecode.com/svn/ | PHP | 657 lines
1<?php 2 3/** 4 * ADOdb Lite is a PHP class to encapsulate multiple database APIs and is compatible with 5 * a subset of the ADODB Command Syntax. 35 $this->password = $this->query_addslashes($password); 36 if (strlen($database) == 0) $database = 'template1'; 37 $this->database = $this->query_addslashes($database); 92 { 93 $len = strlen($query); 94 if ($len == 0) 165 $error = @pg_last_error( $this->connectionId ); 166 return strlen($error) ? $error : 0; 167 } 205 if (!$magic_quotes) { 206 if (strnatcmp(PHP_VERSION, '4.2.0') >= 0) { 207 return "'" . pg_escape_string($string) . "'";tsrm_win32.c http://php52-backports.googlecode.com/svn/trunk/ | C | 418 lines
2 +----------------------------------------------------------------------+ 3 | PHP Version 5 | 4 +----------------------------------------------------------------------+ 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 1997-2010 The PHP Group | 6 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 238 239 cmd = (char*)malloc(strlen(command)+strlen(TWG(comspec))+sizeof(" /c ")); 240 sprintf(cmd, "%s /c %s", TWG(comspec), command);Backup.class.php http://dyhb-frame.googlecode.com/svn/trunk/ | PHP | 260 lines
1<?php 2/* [DoYouHaoBaby!] (C)Dianniu From 2010. 97 } 98 if(strlen($this->_sDumpSql)+strlen($sTmpDumpSql)>$this->_nMaxSize-32){ 99 if($this->_nSqlNum==0){ 130 $sTableDf=$this->getTableDf($sTable,true);// ????????????????? 131 if(strlen($this->_sDumpSql)+strlen($sTableDf)>$this->_nMaxSize-32){ 132 if($this->_nSqlNum==0){// ?????????? 159 public function makeHead($nVol){ 160 $arrSysInfo['os']=PHP_OS;// ???? 161 $arrSysInfo['web_server']=DYHB_PATH; 161 $arrSysInfo['web_server']=DYHB_PATH; 162 $arrSysInfo['php_ver']=PHP_VERSION; 163 $arrSysInfo['database_ver']=$this->_oDbConnect->getVersion(); 170 "-- DATABASE SERVER VERSION : ".$arrSysInfo['database_ver']."\r\n". 171 "-- PHP VERSION : ".$arrSysInfo['php_ver']."\r\n". 172 "-- Vol : ".$nVol."\r\n";createNewProject.php http://marcel-as3-framework.googlecode.com/svn/trunk/ | PHP | 326 lines
32 $destFolderContainer = $_POST["destFolderContainer"]; 33 if ($destFolderContainer[strlen($destFolderContainer) - 1] == "/") $destFolderContainer = substr($destFolderContainer, 0, strlen($destFolderContainer) - 1); 34 $destPackageName = $_POST["destPackageName"]; 284 <form action="" method="POST"> 285 New Project path: <input name="destFolderContainer" style="width:300px;" value="<?php echo str_replace('\\', '/', realpath('../')); ?>/client_YYYYMMDD_project"> 286 <br><br> 291 <br> 292 <?php 293 for ($i = 0; $i < 10; $i++) { 294 ?> 295 <input id="ui_id_<?php echo $i;?>" name="ui_id_<?php echo $i;?>" value="name_ui" onkeyup="updateUIList();"> 296 <span id="span_<?php echo $i;?>">clientproj.</span><input name="ui_class_<?php echo $i;?>" value="uis.UI"> 297 <input type="checkbox" name="ui_<?php echo $i;?>_form_cb" id="ui_<?php echo $i;?>_form_cb" /><label for="ui_<?php echo $i;?>_form_cb"> contains form</label> 298 <input type="checkbox" name="ui_<?php echo $i;?>_video_cb" id="ui_<?php echo $i;?>_video_cb" /><label for="ui_<?php echo $i;?>_video_cb"> contains video</label> 299 <br/>TaxonomyTreesPostTypeWidget.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 193 lines
128 <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title', 'tcp' )?>:</label> 129 <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $instance['title'] ); ?>" /> 130 </p><p> 141 <?php foreach(get_object_taxonomies( $instance['post_type'] ) as $taxonomy): $tax = get_taxonomy( $taxonomy ); ?> 142 <option value="<?php echo esc_attr( $taxonomy );?>"<?php selected( $instance['taxonomy'], $taxonomy ); ?>><?php echo $tax->labels->name;?></option> 143 <?php endforeach; ?> 149 <br /> 150 <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id( 'hide_empty_taxonomies' ); ?>" name="<?php echo $this->get_field_name( 'hide_empty_taxonomies' ); ?>" <?php checked( $hide_empty_taxonomies, true ); ?> /> 151 <label for="<?php echo $this->get_field_id( 'hide_empty_taxonomies' ); ?>"><?php _e( 'Hide empty terms', 'tcp' ); ?></label> 163 foreach( $categories as $cat ): ?> 164 <option value="<?php echo esc_attr( $cat->term_id );?>"<?php $this->selected_multiple( $included_taxonomies, $cat->term_id ); ?>><?php echo $cat->cat_name;?></option> 165 <?php endforeach; ?> 167 <input type="button" onclick="tcp_select_up('<?php echo $this->get_field_id( 'included_taxonomies' ); ?>', '<?php echo $this->get_field_id( 'order_included' ); ?>');" id="tcp_up" value="<?php _e( 'up', 'tcp' );?>" class="button-secondary"/> 168 <input type="button" onclick="tcp_select_down('<?php echo $this->get_field_id( 'included_taxonomies' ); ?>', '<?php echo $this->get_field_id( 'order_included' ); ?>');" id="tcp_down" value="<?php _e( 'down', 'tcp' );?>" class="button-secondary"/> 169 <span class="description"><?php _e( 'Use those actions to sort the list.', 'tcp' );?></span>str.php git://github.com/eryx/php-framework-benchmark.git | PHP | 416 lines
1<?php 2/** 9 * @copyright 2010 - 2013 Fuel Development Team 10 * @link http://fuelphp.com 11 */ 17 * 18 * PHP needs to be compiled with --enable-mbstring 19 * or a fallback without encoding support is used 129 // substr functions don't parse null correctly 130 $length = is_null($length) ? (function_exists('mb_substr') ? mb_strlen($str, $encoding) : strlen($str)) - $start : $length; 131 137 /** 138 * strlen 139 * 411 { 412 return strlen(strip_tags($string)) < strlen($string); 413 }smarty_internal_parsetree.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 236 lines
39 $var = sprintf('$_tmp%d', ++$this->parser->prefix_number); 40 $this->parser->compiler->prefix_code[] = sprintf('<?php ob_start();?>%s<?php %s=ob_get_clean();?>', 41 $this->data, $var); 107 } else { 108 $more_php = $subtree->to_smarty_php(); 109 } 171 } elseif ($this->parser->asp_tags && substr($subtree, 0, 1) == '%') { 172 $code = substr($code, 0, strlen($code)-1) . '<<?php ?>%' . substr($subtree, 1); 173 } else { 180 if (substr($subtree, 0, 1) == '>') { 181 $code = substr($code, 0, strlen($code)-1) . '%<?php ?>>' . substr($subtree, 1); 182 } else { 189 if (substr($subtree, 0, 1) == '>') { 190 $code = substr($code, 0, strlen($code)-1) . '?<?php ?>>' . substr($subtree, 1); 191 } else {qa-page-message.php git://github.com/q2a/question2answer.git | PHP | 230 lines
1<?php 2 8 9 File: qa-include/qa-page-message.php 10 Version: See define()s at top of qa-include/qa-base.php 23 24 More about this license: http://www.question2answer.org/license.php 25*/ 31 32 require_once QA_INCLUDE_DIR.'qa-db-selects.php'; 33 require_once QA_INCLUDE_DIR.'qa-app-users.php'; 33 require_once QA_INCLUDE_DIR.'qa-app-users.php'; 34 require_once QA_INCLUDE_DIR.'qa-app-format.php'; 35 44 45 if (!strlen($handle)) 46 qa_redirect('users');DocumentController.php http://sharebooks.googlecode.com/svn/trunk/ | PHP | 421 lines
1<?php 2 129 if (strrpos($filename, '.') > 0) { 130 $fextension = strtolower(substr($filename, strrpos($filename, '.')+1, strlen($filename))); 131 }anekdotru.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 393 lines
1<?php 2// 12 13include("config.php"); 14 65 // get extension of the source file 66 $fileType = strtolower(substr($mimetype, strlen($mimetype)-3)); 67 212 213 $fileType = strtolower(substr($sourcefile, strlen($sourcefile)-3)); 214auth.php https://bitbucket.org/wez/mtrack/ | PHP | 353 lines
1<?php # vim:ts=2:sw=2:et: 2/* For licensing and copyright terms, see the file named LICENSE */ 3 4include_once MTRACK_INC_DIR . '/auth/mtrack.php'; 5include_once MTRACK_INC_DIR . '/auth/anon.php'; 5include_once MTRACK_INC_DIR . '/auth/anon.php'; 6include_once MTRACK_INC_DIR . '/auth/http.php'; 7include_once MTRACK_INC_DIR . '/auth/openid.php'; 7include_once MTRACK_INC_DIR . '/auth/openid.php'; 8include_once MTRACK_INC_DIR . '/auth/browserid.php'; 9include_once MTRACK_INC_DIR . '/auth/facebook.php'; 77 public static function su($user) { 78 if (!strlen($user)) throw new Exception("invalid user"); 79 array_unshift(self::$stack, $user); 119 * the console */ 120 if (php_sapi_name() == 'cli') { 121 static $envs = array('MTRACK_LOGNAME', 'LOGNAME', 'USER');Deserializer.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 22/** Zend_Amf_Parse_Deserializer */ 23require_once 'Zend/Amf/Parse/Deserializer.php'; 24 25/** 26 * Read an AMF0 input stream and convert it into PHP data types 27 * 64 * @param integer $typeMarker 65 * @return mixed whatever the data type is of the marker in php 66 * @return mixed 115 116 // longString strlen(string) > 2^16 117 case Zend_Amf_Constants::AMF0_LONGSTRING: 136 default: 137 require_once 'Zend/Amf/Exception.php'; 138 throw new Zend_Amf_Exception('Unsupported marker type: ' . $typeMarker);users.php https://code.google.com/p/php-blackops-rcon/ | PHP | 399 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2 25 * @subpackage controller 26 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License 27 */ 191 // Username length 192 if(UTF8::strlen($_POST['username']) > 32 OR UTF8::strlen($_POST['username']) < 4) 193 { 197 // Password 198 if(UTF8::strlen($_POST['password']) > 42 OR UTF8::strlen($_POST['password']) < 5) 199 { 209 // Email 210 if(UTF8::strlen($_POST['email']) > 127 OR UTF8::strlen($_POST['email']) < 4 OR !Validate::email($_POST['email'])) 211 {unimisc.php git://pkgs.fedoraproject.org/unicornscan | PHP | 586 lines
1<?php 2 define(S_SHUFFLE_PORTS, 1); 299 300 for ($tok=strtok(trim($data), ","); strlen($tok) > 0; $tok=strtok(",")) { 301 301 302 if (strlen($add) < 1) { 303 $add=" and ("; 320 321 for ($j=0 ; $j < strlen($ctok) ; $j++) { 322 if (ctype_space($ctok[$j])) { 436 437 for ($tok=strtok($data, ","); strlen($tok) > 0; $tok=strtok(",")) { 438 $ctok=trim($tok); 439 440 if (strlen($add) < 1) { 441 $add=" and ( ";mysqlnd_debug.h git://github.com/php/php-src.git | C Header | 228 lines
2 +----------------------------------------------------------------------+ 3 | Copyright (c) The PHP Group | 4 +----------------------------------------------------------------------+ 4 +----------------------------------------------------------------------+ 5 | This source file is subject to version 3.01 of the PHP license, | 6 | that is bundled with this package in the file LICENSE, and is | 7 | available through the world-wide-web at the following url: | 8 | http://www.php.net/license/3_01.txt | 9 | If you did not receive a copy of the PHP license and are unable to | 10 | obtain it through the world-wide-web, please send a note to | 11 | license@php.net so we can mail you a copy immediately. | 12 +----------------------------------------------------------------------+ 12 +----------------------------------------------------------------------+ 13 | Authors: Andrey Hristov <andrey@php.net> | 14 | Ulf Wendel <uw@php.net> |class.ScalrAPICore.php http://scalr.googlecode.com/svn/ | PHP | 248 lines
1<?php 2 142 header("Content-type: text/xml"); 143 header("Content-length: ".strlen($retval)); 144 print $retval;pp_standard.php http://coderstalk.googlecode.com/svn/trunk/ | PHP | 142 lines
1<?php 2class ControllerPaymentPPStandard extends Controller { 115 $header .= 'Content-Type: application/x-www-form-urlencoded' . "\r\n"; 116 $header .= 'Content-Length: ' . strlen(utf8_decode($request)) . "\r\n"; 117 $header .= 'Connection: close' ."\r\n\r\n";smarty_internal_cacheresource_file.php git://github.com/benkeen/generatedata.git | PHP | 264 lines
1<?php 2/** 62 } 63 $cached->filepath = $_cache_dir . $_cache_id . $_compile_id . $_filepath . '.' . basename($_source_file_path) . '.php'; 64 $cached->timestamp = @filemtime($cached->filepath); 138 $_dir = $smarty->getCacheDir(); 139 $_dir_length = strlen($_dir); 140 if (isset($_cache_id)) { 229 { 230 if (version_compare(PHP_VERSION, '5.3.0', '>=')) { 231 clearstatcache(true, $cached->lock_id);class.Cache.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 326 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4: */ 33* 34* Tested with Apache 1.3.24 and PHP 4.2.3 35* 92 function Cache($cachedir = '') { 93 $this->cache_dir = (string) ((strlen(trim($cachedir)) > 0) ? $cachedir : 'cached'); 94 if ($this->checkCacheDir() == FALSE) {IPSECKEY.php http://netdns2.googlecode.com/svn/trunk/ | PHP | 385 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 6 * 7 * PHP Version 5 8 * 44 * @copyright 2010 Mike Pultz <mike@mikepultz.com> 45 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 46 * @version SVN: $Id: IPSECKEY.php 125 2011-12-03 00:19:49Z mike.pultz $ 46 * @version SVN: $Id: IPSECKEY.php 125 2011-12-03 00:19:49Z mike.pultz $ 47 * @link http://pear.php.net/package/Net_DNS2 48 * @since File available since Release 0.6.0 68 * @author Mike Pultz <mike@mikepultz.com> 69 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 70 * @link http://pear.php.net/package/Net_DNS2 348 case self::GATEWAY_TYPE_DOMAIN: 349 $data .= chr(strlen($this->gateway)) . $this->gateway; 350 break;socket.php http://skygames.googlecode.com/svn/trunk/ | PHP | 281 lines
1<?php 2/* SVN FILE: $Id: socket.php 7847 2008-11-08 02:54:07Z renan.saddam $ */ 5 * 6 * PHP versions 4 and 5 7 * 7 * 8 * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) 9 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 15 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 16 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 17 * @package cake 18 * @subpackage cake.cake.libs 19 * @since CakePHP(tm) v 1.2.0 20 * @version $Revision: 7847 $ 22 * @lastmodified $Date: 2008-11-07 20:54:07 -0600 (Fri, 07 Nov 2008) $ 23 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 24 */server.c git://github.com/mongodb/mongo-php-driver.git | C | 494 lines
73 74 if (zend_hash_find(&EG(persistent_list), id1, strlen(id1)+1, (void**)&le1) == SUCCESS && 75 zend_hash_find(&EG(persistent_list), id2, strlen(id2)+1, (void**)&le2) == SUCCESS && 139 140 zend_hash_find(HASH_P(response), "ok", strlen("ok")+1, (void**)&ok); 141 if (Z_NUMVAL_PP(ok, 1)) { 175 176 zend_hash_find(HASH_P(response), "secondary", strlen("secondary")+1, (void**)&secondary); 177 if (secondary && Z_BVAL_PP(secondary)) { 200 201 zend_hash_find(HASH_P(response), "maxBsonObjectSize", strlen("maxBsonObjectSize")+1, (void**)&bson); 202 if (bson) { 340 341 id = (char*)emalloc(strlen(host)+strlen(MONGO_SERVER_INFO)+2); 342 mongo_buf_init(id);sanitize.inc.php http://myrpm.googlecode.com/svn/trunk/ | PHP | 160 lines
1<?php 2/////////////////////////////////////// 2/////////////////////////////////////// 3// sanitize.inc.php 4// Sanitization functions for PHP 37// internal function for utf8 decoding 38// thanks to Jamie Pratt for noticing that PHP's function is a little 39// screwy 50 $string = preg_replace("/[^a-zA-Z0-9]/", "", $string); 51 $len = strlen($string); 52 if((($min != '') && ($len < $min)) || (($max != '') && ($len > $max))) 65 $string = '"'.preg_replace('/\$/', '\\\$', $string).'"'; //make sure this is only interpretted as ONE argument 66 $len = strlen($string); 67 if((($min != '') && ($len < $min)) || (($max != '') && ($len > $max))) 80 $replacement[2] = "\\'"; 81 $len = strlen($string); 82 if((($min != '') && ($len < $min)) || (($max != '') && ($len > $max)))mapfile.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 375 lines
1<?php 2define('DF_BEGIN',0); 26 if($this->mainFile){ 27 $slen = strlen($data); 28 $bs = intval(ceil($slen/$this->bs)); 338 $head = serialize($this->header); 339 if(($headLength=strlen($head))>$this->hs){ 340 $this->clear(); //???????????inode?modmanagercontrollerdeprecated.class.php git://github.com/modxcms/revolution.git | PHP | 276 lines
1<?php 2/* 150 if (empty($f)) return false; 151 /* if action is a directory, load base index.php */ 152 if (substr($f,strlen($f)-1,1) == '/') { $f .= 'index'; } 152 if (substr($f,strlen($f)-1,1) == '/') { $f .= 'index'; } 153 /* append .php */ 154 if (file_exists($f.'.php')) { 154 if (file_exists($f.'.php')) { 155 $f = $f.'.php'; 156 /* for actions that don't have trailing / but reference index */ 156 /* for actions that don't have trailing / but reference index */ 157 } elseif (file_exists($f.'/index.php')) { 158 $f = $f.'/index.php'; 190 $s = substr($str,0,strpos($str,'"></script>')); 191 if (!empty($s) && substr($s,strlen($s)-3,strlen($s)) == '.js') { 192 $str = $s.'?v='.$version.'"></script>';recaptchalib.php http://energine.googlecode.com/svn/trunk/ | PHP | 280 lines
1<?php 2/* 2/* 3 * This is a PHP library that handles calling reCAPTCHA. 4 * - Documentation and latest version 4 * - Documentation and latest version 5 * http://recaptcha.net/plugins/php/ 6 * - Get a reCAPTCHA API Key 52 // Cut the last '&' 53 $req=substr($req,0,strlen($req)-1); 54 return $req; 73 $http_request .= "Content-Type: application/x-www-form-urlencoded;\r\n"; 74 $http_request .= "Content-Length: " . strlen($req) . "\r\n"; 75 $http_request .= "User-Agent: reCAPTCHA/PHP\r\n"; 166 //discard spam submissions 167 if ($challenge == null || strlen($challenge) == 0 || $response == null || strlen($response) == 0) { 168 $recaptcha_response = new ReCaptchaResponse();modp_burl.h http://stringencoders.googlecode.com/svn/trunk/ | C Header | 263 lines
46 * Everything else is escaped using "%HEXHEX" format. This is 47 * identical to the implementation of php's urlencode and nearly 48 * identical to Java's UrlEncoder class (they do not escape '*' for 77 */ 78size_t modp_burl_min_encode_strlen(const char* src, const size_t len); 79 96 * \param[in] len THe length of the input string, excluding any 97 * final null byte (i.e. strlen(str)) 98 * \return the size of the output string, excluding the final 100 */ 101size_t modp_burl_encode_strlen(const char* str, const size_t len); 102 110 * null byte) 111 * \return the strlen of the output string. 112 */Process.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 372 lines
1<?php 2 15 * Process is a thin wrapper around proc_* functions to ease 16 * start independent PHP processes. 17 * 51 if (!function_exists('proc_open')) { 52 throw new \RuntimeException('The Process class relies on proc_open, which is not available on your PHP installation.'); 53 } 79 * 80 * @param Closure|string|array $callback A PHP callback to run whenever there is some 81 * output available on STDOUT or STDERR 106 107 // Workaround for http://bugs.php.net/bug.php?id=51800 108 if (strstr(PHP_OS, 'WIN')) { 130 $writePipes = array($pipes[0]); 131 $stdinLen = strlen($this->stdin); 132 $stdinOffset = 0;adodb-oracle.inc.php git://github.com/alombarte/SIFO.git | PHP | 342 lines
1<?php 2/* 58 59 return substr($d,1,strlen($d)-2); 60 } 66 67 return substr($d,1,strlen($d)-2); 68 }VigenciaDocumentoDataGridGen.class.php http://logisticsouth.googlecode.com/svn/trunk/ | PHP | 362 lines
1<?php 2 /** 155 $strName = QConvertNotation::WordsFromCamelCase($objNode->_PropertyName); 156 if (strtolower(substr($strName, strlen($strName) - 3)) == ' id') 157 $strName = substr($strName, 0, strlen($strName) - 3);register.php http://ds-pro-chat.googlecode.com/svn/trunk/ | PHP | 434 lines
20 21 If($_REQUEST['pf_nigol'] == 'guest' || StrLen($_REQUEST['pf_nigol']) < 6 || StrLen($_REQUEST['pf_nigol']) > 30 || StrLen($mail) < 6 || StrLen($mail) > 100 || 22 StrLen($_REQUEST['pf_dname']) < 3 || StrLen($_REQUEST['pf_dname']) > 30 || StrLen($_REQUEST['pf_ssap']) != 32 || Preg_Match('#[^0-9a-f]#', $_REQUEST['pf_ssap']) || 28 echo '<br>1 '; 29 Var_Dump(StrLen($_REQUEST['pf_nigol']) < 6); 30 echo '<br>2 '; 32 echo '<br>3 '; 33 Var_Dump(StrLen($mail) < 6 || StrLen($mail) > 100); 34 echo '<br>4 '; 34 echo '<br>4 '; 35 Var_Dump(StrLen($_REQUEST['pf_dname']) < 3); 36 echo '<br>5 '; 38 echo '<br>6 '; 39 Var_Dump(StrLen($_REQUEST['pf_ssap']) != 32); 40 echo '<br>7 ';DatabasePeopleRetriever.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 280 lines
1<?php 2 71 $parameters = array($searchString.'%'); 72 } elseif (strlen(trim($searchString)) < self::MIN_NAME_SEARCH) { 73 $sql = sprintf("SELECT %s FROM %s WHERE %s = ? OR %s = ?", '*', $this->table, $this->getField('firstname'), $this->getField('lastname')); 270 foreach ($data as $field=>$value) { 271 if (strlen($value)>0) { 272 $this->setField(strtolower($field), $value);Z_CreateCollegeTemplateFile.php http://chronique.googlecode.com/svn/ | PHP | 247 lines
1<?php 2/* $Id: Z_CreateCompanyTemplateFile.php 4734 2011-10-29 03:26:27Z daintree $*/ 9 $InputError = false; //assume the best - but check for the worst 10 if (mb_strlen($_POST['TemplateName'])<=1){ 11 prnMsg(_('The name of the template has not been entered or is just 1 character - an informative name is required e.g. Deutsche-distribution in the case of a german distribution company'),'error'); 203 echo '<P><a href="' . $rootpath . '/companies/' . $_SESSION['DatabaseName'] . '/reports/' . $_POST['TemplateName'] .'.sql">' . _('Show the sql template file produced') . '</a>'; 204 include('includes/htmlMimeMail.php'); 205 $Recipients = array('"Submissions" <submissions@weberp.org>'); 216 217echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; 218echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';demo.browse.dhtml.php git://pkgs.fedoraproject.org/php-getid3 | PHP | 442 lines
2// +----------------------------------------------------------------------+ 3// | PHP version 5 | 4// +----------------------------------------------------------------------+ 19// | DHTML techniques compatible with MSIE5 and Mozilla. | 20// | dependencies: getid3, extras/abstration.php, getid3.css | 21// +----------------------------------------------------------------------+ 22// 23// $Id: demo.browse.dhtml.php,v 1.4 2006/12/03 19:28:17 ah Exp $ 24 52require_once('../getid3/getid3.php'); 53require_once('../extras/abstraction.php'); 54 92 echo xml_gen::br(); 93 echo xml_gen::p('getID3() ' . getid3::VERSION . '.<br>PHP ' . phpversion() . ' (' . implode(xml_gen::space(2), $support) . ').'); 94 echo xml_gen::p(xml_gen::a('http://getid3.sourceforge.net/', 'http://getid3.sourceforge.net'));RegisteredCharacter.php https://code.google.com/p/yapeal/ | PHP | 309 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 6 * 7 * LICENSE: This file is part of Yet Another Php Eve Api library also know 8 * as Yapeal which will be used to refer to it in the rest of this license. 41 $mess = basename(__FILE__) 42 . ' must be included it can not be ran directly.' . PHP_EOL; 43 if (PHP_SAPI != 'cli') { 112 // If $id has any characters other than 0-9 it's not a characterID. 113 if (0 == strlen(str_replace(range(0, 9), '', $id))) { 114 if (FALSE === $this->getItemById($id)) {MultipartBody.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 295 lines
1<?php 2/** 8 * 9 * Copyright (c) 2008, 2009, Alexey Borzov <avb@php.net> 10 * All rights reserved. 38 * @author Alexey Borzov <avb@php.net> 39 * @license http://opensource.org/licenses/bsd-license.php New BSD License 40 * @version SVN: $Id: MultipartBody.php 290192 2009-11-03 21:29:32Z avb $ 40 * @version SVN: $Id: MultipartBody.php 290192 2009-11-03 21:29:32Z avb $ 41 * @link http://pear.php.net/package/HTTP_Request2 42 */ 141 { 142 $length += $headerParamLength + strlen($p[0]) + strlen($p[1]) + 2; 143 } 145 { 146 $length += $headerUploadLength + strlen($u['name']) + strlen($u['type']) + strlen($u['filename']) + $u['size'] + 2; 147 }nochex.php http://ymscorp.googlecode.com/svn/trunk/ | PHP | 78 lines
1<?php //00d4b 2// ************************************************************************* 33// ************************************************************************* 34if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');@dl($__ln);if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}@dl($__ln);}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the site administrator.');exit(199); 35?>class.I18NformatDate.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 410 lines
1<?php 2/** 4*/ 5require_once 'class.I18Nbase.inc.php'; 6 9* @author Michael Wimmer <flaimo@gmail.com> 10* @category flaimo-php 11* @example ../www_root/i18n_example_script.php i18n example script 12* @license GNU General Public License v3 13* @link http://code.google.com/p/flaimo-php/ 14* @package i18n 198 // maybe has to be rewritten for multibyte... 199 $length = (int) strlen($string); 200 $newstring = '';Abstract.php git://github.com/moodle/moodle.git | PHP | 457 lines
1<?php 2/** 24 */ 25require_once 'Zend/Validate/Interface.php'; 26 151 if (!isset($this->_messageTemplates[$messageKey])) { 152 require_once 'Zend/Validate/Exception.php'; 153 throw new Zend_Validate_Exception("No message template exists for key '$messageKey'"); 193 */ 194 require_once 'Zend/Validate/Exception.php'; 195 throw new Zend_Validate_Exception("No property exists by the name '$property'"); 236 if ($this->getObscureValue()) { 237 $value = str_repeat('*', strlen($value)); 238 } 245 $length = self::getMessageLength(); 246 if (($length > -1) && (strlen($message) > $length)) { 247 $message = substr($message, 0, (self::getMessageLength() - 3)) . '...';kuveytturk.php http://ymscorp.googlecode.com/svn/trunk/ | PHP | 181 lines
1<?php //00d4b 2// ************************************************************************* 33// ************************************************************************* 34if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');@dl($__ln);if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}@dl($__ln);}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the site administrator.');exit(199); 35?> 133CbwjoEHcxL9j2mBa60034531nxTJRTgzm17AJrvaUsEu3Is5R12rAXzI8nuCdkfYyHWmCZ8a0V7d 134xuYYBp8ntsQ9YVdwiLtQ0eBL7PH8KhmRcrlUozOVLDKY/E2sitR3z9AVwYFDGnE943PhpvpgXrGp 135+ixWPXu+cZKxr31FE8kXUEffDXXXKz652h0AYVthytpd1iIP4j2314aGAxxcmj6Plxpg9Cph9XHMserver.php http://arronwork.googlecode.com/svn/trunk/ | PHP | 429 lines
1#!/usr/bin/env php 2<?php 5$SOAR_DIR="../../../../.."; 6include "$SOAR_DIR/common/php/soar/soar.inc"; 7 139 //printf("cmd(%s)\n", $cmd); 140 $cmdsize=strlen($cmd); 141 if(0 < $cmdsize && $cmdsize <= misc::NAME_SIZE) 175 $svc=para::get_item($request, $curr); 176 if(empty($svc) || strlen($svc) > misc::NAME_SIZE) 177 {merge_dico.inc http://twpug.googlecode.com/svn/trunk/ | PHP | 209 lines
1<?php 2 21 //if empty, prepare an empty record to be inserted 22 if (strlen($text) == 0) { 23 insert_in_sugar_terms($lang_rec,"");$empty++;$found++; 28 //provide some performance enhancement for large dictionaries 29 $ind = strtoupper(strlen($text) > 1 ? $text{0}.$text{1} : $text{0}); 30 //if the text is already in the translation dictionary 76 //replace the file name by the translation file name 77 $file_name = ereg_replace("[^\\./]+.lang.php$", $translationKey.".lang.php", $sugar_lang_rec->file); 78 //values are the same key 108 //indexing is based on the two first letter of the term 109 if (strlen($key) > 0) { 110 $ind = strtoupper(strlen($key) > 1 ? $key{0}.$key{1} : $key{0}); 125 msg("($count) translated values have been found in the 'To Translate' (sugar_lang_trx) table."); 126 msg("You should commit or clear the existing values in the <A href=totrx.php>To Translate module</A>."); 127 $arr_old_to_trx = query_db("SELECT ref FROM sugar_lang_trx where trx != ''");save_QueryBuilder.class.php http://antilophpe.googlecode.com/svn/ | PHP | 317 lines
1<?php 2/** 2/** 3 * File QueryBuilder.class.php 4 * 216 $finalResult = array(); 217 if (strlen(trim($table)) < 1) 218 return false; 226 foreach ($opts as $item) 227 $finalResult[] = substr($item, 1, strlen($item)-2); 228 } 280 $finalResult = array(); 281 if (strlen(trim($table)) < 1) 282 return false; 306 $finalResult = array(); 307 if (strlen(trim($table)) < 1) 308 return false;phodevi_disk.php git://pkgs.fedoraproject.org/phoronix-test-suite | PHP | 374 lines
1<?php 2 7 Copyright (C) 2008 - 2012, Michael Larabel 8 phodevi_disk.php: The PTS Device Interface object for the system disk(s) 9 74 { 75 if(($x = strrpos($mounts, PHP_EOL, (0 - strlen($mounts) + $p))) !== false) 76 { 79 80 if(($x = strpos($mounts, PHP_EOL)) !== false) 81 { 160 161 foreach(explode(PHP_EOL, $camcontrol) as $line) 162 { 174 { 175 $hd_detect = explode(PHP_EOL, trim(shell_exec('/usr/ddu/bin/i386/hd_detect -l 2>&1'))); 176SilvercartCarrier.php https://bitbucket.org/silvercart/silvercart/ | PHP | 271 lines
1<?php 2/** 233 234 if (strlen($attributedZonesStr) > $maxLength) { 235 $attributedZonesStr = substr($attributedZonesStr, 0, $maxLength).'...'; 262 263 if (strlen($attributedShippingMethodsStr) > $maxLength) { 264 $attributedShippingMethodsStr = substr($attributedShippingMethodsStr, 0, $maxLength).'...';lib_pixie.php http://pixie-cms.googlecode.com/svn/trunk/ | PHP | 283 lines
1<?php 2if (!defined('DIRECT_ACCESS')) { 44 } 45 $site_url_last = $site_url{strlen($site_url) - 1}; 46 if ($site_url_last != '/') { 105 if ((!isset($s)) or (!$s)) { 106 $last = $default_page{strlen($default_page) - 1}; 107 $default = explode('/', $default_page); 199 } 200 if (($nested_nav == 'yes') && (file_exists("admin/blocks/block_{$includestr}_nav.php"))) { 201 echo "\t\t\t\t\t<li id=\"li_1_$page_name\"><a href=\"" . createURL($page_name) . "\" title=\"$page_display_name\" id=\"navigation_1_$page_name\" class=\"nav_current_1 replace\">$page_display_name<span></span></a>\n"; 201 echo "\t\t\t\t\t<li id=\"li_1_$page_name\"><a href=\"" . createURL($page_name) . "\" title=\"$page_display_name\" id=\"navigation_1_$page_name\" class=\"nav_current_1 replace\">$page_display_name<span></span></a>\n"; 202 include('admin/blocks/block_' . $includestr . '_nav.php'); 203 } else { 223 $current = str_replace(" ", "", $current); 224 if (file_exists("admin/blocks/block_{$current}.php")) { 225 include("admin/blocks/block_{$current}.php");lazyest-thumbs.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 255 lines
1<?php 2 15 // Fix for permalinks 16 if (strlen(get_option('permalink_structure')) != 0){ 17 $gallery_uri = $gallery_uri.'?'; 31 $folder_caption = clean_folder_caption($currentdir.$dir); 32 $category = substr($currentdir, 0, (strlen($currentdir) -1)); 33 40 if (imagesx($resource) > get_option('lg_thumbwidth')) 41 echo '<img src="'.get_option('siteurl').'/wp-content/plugins/lazyest-gallery/lazyest-img.php?file='.$currentdir.$category.'.png'.'&thumb=1" alt="" class="icon" />» '.$folder_caption."\n"; 42 else 47 if (imagesx($resource) > get_option('lg_thumbwidth')) 48 echo '<img src="'.get_option('siteurl').'/wp-content/plugins/lazyest-gallery/lazyest-img.php?file='.$currentdir.$category.'.jpg'.'&thumb=1" alt="" class="icon" />» '.$folder_caption."\n"; 49 else 54 if (imagesx($resource) > get_option('lg_thumbwidth')) 55 echo '<img src="'.get_option('siteurl').'/wp-content/plugins/lazyest-gallery/lazyest-img.php?file='.$currentdir.$category.'.jpeg'.'&thumb=1" alt="" class="icon" />» '.$folder_caption."\n"; 56 elsefilmeonline24_main.php https://code.google.com/p/hdforall/ | PHP | 200 lines
1#!/usr/local/bin/Resource/www/cgi-bin/php 2<?php echo "<?xml version='1.0' encoding='UTF8' ?>"; 155 156<?php 157function str_between($string, $start, $end){ 158 $string = " ".$string; $ini = strpos($string,$start); 159 if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; 160 return substr($string,$ini,$len); 165$img = "image/movies.png"; 166 $link = $host."/scripts/filme/php/filmeonline24.php?query=,http://www.filmeonline24.com/"; 167 echo ' 186 187 $link = $host."/scripts/filme/php/filmeonline24.php?query=,".$link; 188 echo 'sk_basic_plugins.php http://spam-karma.googlecode.com/svn/trunk/ | PHP | 253 lines
1<?php 2/********************************************************************************************** 14************************************************************************************************/ 15?><?php 16// Basic plugins 137 { 138 $len = strlen($cmt_object->content_filtered); 139 $chars_per_url = 150;Captcha.php http://lxsphp.googlecode.com/svn/trunk/ | PHP | 196 lines
1<?php 2/** 9 * 10 * @version $Id: Captcha.php 312 2012-03-06 09:00:15Z linsir123 $ 11 * @package Component 141 $seccode = $this->code; 142 $seccodelength = strlen($seccode); 143 for ($i = 0; $i < $seccodelength; $i++) { 189 for ($i = 0; $i < 4; $i++) 190 $this->code .= substr($seed, rand(0, strlen($seed) - 1), 1); 191String.php http://lxsphp.googlecode.com/svn/trunk/ | PHP | 239 lines
1<?php 2/** 4 * 5 * @version $Id: String.php 276 2012-01-17 09:42:32Z linsir123 $ 6 * @package Common 164 $string = htmlspecialchars_decode($string); 165 if (empty($length) || strlen($string) <= $length) 166 return $string; 184 } else { 185 $count = strlen($string); 186 for ($i = 0; $i < $count; $i++) { 205 * ?16???????RGB?? 206 * // `Captcha.php`,`Image.php`????? 207 * 221 /// 222 $l = strlen($color); 223 if ($l == 3) {Verifier.php http://ipmanger.googlecode.com/svn/trunk/ | PHP | 374 lines
1<?php 2///////////////////////////////////////////////////////////////////////////// 2///////////////////////////////////////////////////////////////////////////// 3// FleaPHP Framework 4// 7// ??????????????? LICENSE.txt ??? 8// ???? http://www.fleaphp.org/ ??????? 9///////////////////////////////////////////////////////////////////////////// 16 * @package Core 17 * @version $Id: Verifier.php,v 1.1 2008/09/10 03:00:12 jiang Exp $ 18 */ 169 case 'C': // ?????? 250 ???? 170 if (strlen($value) > 250) { return $ret; } 171 $checkLength = true; 253 { 254 return strlen(intval($value)) == strlen($value) && is_numeric($value); 255 }Magic.php git://pkgs.fedoraproject.org/horde | PHP | 273 lines
1<?php 2 2 3require_once 'Horde/Util.php'; 4 9 * 10 * $Horde: framework/MIME/MIME/Magic.php,v 1.52.8.18 2009/01/06 15:23:20 jan Exp $ 11 * 34 if (!isset($mime_extension_map)) { 35 require dirname(__FILE__) . '/mime.mapping.php'; 36 } 52 if (!isset($mime_magic)) { 53 require dirname(__FILE__) . '/mime.magic.php'; 54 } 106 { 107 $pos = strlen($filename) + 1; 108 $type = '';eclipse.php git://github.com/moodle/moodle.git | PHP | 307 lines
1<?php 2/** 10 */ 11include_once 'unit_tester.php'; 12include_once 'test_case.php'; 12include_once 'test_case.php'; 13include_once 'invoker.php'; 14include_once 'socket.php'; 14include_once 'socket.php'; 15include_once 'mock_objects.php'; 16/**#@-*/ 238 $thisdir = dirname(__FILE__); 239 $thisdirlen = strlen($thisdir); 240 foreach ($arrfiles as $index=>$file){receipt_add.php git://git.savannah.nongnu.org/gcourrier.git | PHP | 193 lines
1<?php 2/* 21 22require('phppdflib/phppdflib.class.php'); 23require('functions/mail.php'); 23require('functions/mail.php'); 24require('init.php'); 25 127 128for ($i = 0; $i < strlen($corps); $i++) { 129 if ($corps[$i] == "\r") { 164$temp = $pdf->generate(); 165header('Content-Length: ' . strlen($temp)); 166echo $temp; 179 180include('templates/header.php'); 181echo "<p>"script_templates.php http://scalr.googlecode.com/svn/ | PHP | 350 lines
1<? 2 require("src/prepend.inc.php"); 3 $display['load_extjs'] = true; 10 if (isset($post_cancel)) 11 UI::Redirect("script_templates.php"); 12 67 68 UI::Redirect("script_templates.php"); 69 } 80 $errmsg = _("You don't have permissions to edit this template"); 81 UI::Redirect("script_templates.php"); 82 } 281 { 282 if (strlen($post_sharing_comments) > 0) 283 {file.php http://kak.googlecode.com/svn/trunk/ | PHP | 265 lines
1<?php 2/** 2/** 3 * @version $Id: file.php 14401 2010-01-26 14:10:00Z louis $ 4 * @package Joomla.Framework 6 * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. 7 * @license GNU/GPL, see LICENSE.php 8 * Joomla! is free software. This version may have been modified pursuant 11 * other free or open source software licenses. 12 * See COPYRIGHT.php for copyright notices and details. 13 */ 83 $expirePath = $path . '_expire'; 84 $die = '<?php die("Access Denied"); ?>'."\n"; 85 94 } 95 $len = strlen($data); 96 @fwrite($fp, $data, $len);transports.c http://php52-backports.googlecode.com/svn/trunk/ | C | 520 lines
51 52PHPAPI php_stream *_php_stream_xport_create(const char *name, long namelen, int options, 53 int flags, const char *persistent_id, 270/* Get the next client and their address (as a string) */ 271PHPAPI int php_stream_xport_accept(php_stream *stream, php_stream **client, 272 char **textaddr, int *textaddrlen, 340 341PHPAPI int php_stream_xport_crypto_setup(php_stream *stream, php_stream_xport_crypt_method_t crypto_method, php_stream *session_stream TSRMLS_DC) 342{ 383 * peeking, optionally retrieving OOB data */ 384PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen, 385 long flags, void **addr, socklen_t *addrlen, char **textaddr, int *textaddrlen 493 * connection */ 494PHPAPI int php_stream_xport_shutdown(php_stream *stream, stream_shutdown_t how TSRMLS_DC) 495{list.php https://bitbucket.org/joomla/joomla-platform/ | PHP | 273 lines
1<?php 2/** 95 $items[$i]->text = JText::_($items[$i]->text); 96 if (JString::strlen($items[$i]->text) > $chop) { 97 $text = JString::substr($items[$i]->text,0,$chop)."...";mradio.dpr http://miranda-dev.googlecode.com/svn/trunk/ | Pascal | 396 lines
30const 31 VersionURL = nil;//'http://addons.miranda-im.org/details.php?action=viewfile&id=3285'; 32 VersionPrefix = nil;//'<span class="fileNameHeader">QuickSearch Mod '; 32 VersionPrefix = nil;//'<span class="fileNameHeader">QuickSearch Mod '; 33 UpdateURL = nil;//'http://addons.miranda-im.org/feed.php?dlfile=3285'; 34 BetaVersionURL = 'http://awkward.miranda.im/index.htm'; 45 title :=DBReadUnicode(0,PluginName,optTitle); 46 len:=StrLenW(artist); 47 if (artist<>nil) and (title<>nil) then 48 inc(len,3); 49 inc(len,StrLenW(title)); 50 157 pbVersion :=CreateVersionStringPlugin(@pluginInfo,szTemp); 158 cpbVersion :=StrLen(pbVersion); 159 szBetaChangelogURL :=BetaChangelogURL;Abstract.php https://code.google.com/p/ecartcommerce/ | PHP | 451 lines
1<?php 2/** 122 if (!array_key_exists($key, $info)) { 123 require_once 'Zend/Db/Table/Exception.php'; 124 throw new Zend_Db_Table_Exception( 184 $select->from( 185 substr($this->_name, strlen($this->_prefix)), 186 $columns, 394 if (!class_exists($rowsetClass)) { 395 require_once 'Zend/Loader.php'; 396 Zend_Loader::loadClass($rowsetClass); 445 if (!class_exists($rowClass)) { 446 require_once 'Zend/Loader.php'; 447 Zend_Loader::loadClass($rowClass);captcha.php http://explay-cms.googlecode.com/svn/trunk/ | PHP | 227 lines
1<?php 2 9 10# System requirements: PHP 4.0.6+ w/ GD 11 16 17# See kcaptcha_config.php for customization 18 27 28 require('./kcaptcha_config.php'); 29 $fonts=array(); 39 40 $alphabet_length=strlen($alphabet); 41 46 for($i=0;$i<$length;$i++){ 47 $this->keystring.=$allowed_symbols{mt_rand(0,strlen($allowed_symbols)-1)}; 48 }category_list.php http://tracmor.googlecode.com/svn/trunk/ | PHP | 241 lines
1<?php 2/* 22 // Include prepend.inc to load Qcodo 23 require('../includes/prepend.inc.php'); /* if you DO NOT have "includes/" in your include_path */ 24 // require('prepend.inc'); /* if you DO have "includes/" in your include_path */ 26 // Include the classfile for CategoryListFormBase 27 require(__FORMBASE_CLASSES__ . '/CategoryListFormBase.class.php'); 28 112 113 if (strlen(trim($this->txtQuickAdd->Text)) == 0) { 114 $blnError = true; 228 229 QApplication::Redirect('category_edit.php'); 230 } 233 234 QApplication::Redirect('category_import.php'); 235 }ChainedBlockStream.php https://PHPExcel.svn.codeplex.com/svn | PHP | 235 lines
21 * @category PHPExcel 22 * @package PHPExcel_Shared_OLE 23 * @copyright Copyright (c) 2006 - 2007 Christian Schmidt 27 28/** PHPExcel root directory */ 29if (!defined('PHPEXCEL_ROOT')) { 35 36require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/OLE.php'; 37 41 * Stream wrapper for reading data stored in an OLE file. Implements methods 42 * for PHP's stream_wrapper_register(). For creating streams using this 43 * wrapper, use PHPExcel_Shared_OLE_PPS_File::getStream(). 171 $eof = $this->pos >= strlen($this->data); 172 // Workaround for bug in PHP 5.0.x: http://bugs.php.net/27508 173 if (version_compare(PHP_VERSION, '5.0', '>=') &&AzureStorage.php https://code.google.com/p/celebrio/ | PHP | 252 lines
1<?php 2 67 public function save(DataFile $dataFile, $container = '') { 68 if(\strlen($dataFile->getData()) >= self::MAX_BLOB_SIZE) { 69 $this->saveLarge($dataFile, $container); 97 public function saveLargeFile(DataFile $dataFile, $container = '') { 98 if(\strlen($dataFile->getData()) < self::MAX_BLOB_SIZE) { 99 $this->save($dataFile); 107 AzureStorageBLOB::connection()->createContainerIfNotExists($container); 108 $numOfBlocks = ceil (\strlen($dataFile->getData()) / self::MAX_BLOCK_SIZE); 109 $indexes = $this->getIndexes($numOfBlocks);functions.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 10define( 'NV_IS_MOD_SHOPS', true ); 11require_once ( NV_ROOTDIR . "/modules/" . $module_file . "/global.functions.php" ); 12 24 'title' => $module_info['custom_title'], // 25 'src' => NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=rss"// 26 ); 33{ 34 $link_i = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $alias_i . ""; 35 $global_array_cat[$catid_i] = array( 47 'title' => $module_info['custom_title'] . ' - ' . $title_i, // 48 'src' => NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=rss/" . $alias_i// 49 ); 59{ 60 $link_i = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=group/" . $alias_i . "-" . $groupid_i; 61 $global_array_group[$groupid_i] = array(export.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 410 lines
38 39 if( strlen( $start_date ) > 4 && strlen( $end_date ) > 4 ) 40 $filename = 'wordpress.' . $start_date . '.' . $end_date . '.xml'; 313 <?php if ( $cats ) : foreach ( $cats as $c ) : ?> 314 <wp:category><wp:category_nicename><?php echo $c->slug; ?></wp:category_nicename><wp:category_parent><?php echo $c->parent ? $cats[$c->parent]->name : ''; ?></wp:category_parent><?php wxr_cat_name( $c ); ?><?php wxr_category_description( $c ); ?></wp:category> 315 <?php endforeach; endif; ?> 316 <?php if ( $tags ) : foreach ( $tags as $t ) : ?> 317 <wp:tag><wp:tag_slug><?php echo $t->slug; ?></wp:tag_slug><?php wxr_tag_name( $t ); ?><?php wxr_tag_description( $t ); ?></wp:tag> 318 <?php endforeach; endif; ?> 319 <?php if ( $terms ) : foreach ( $terms as $t ) : ?> 320 <wp:term><wp:term_taxonomy><?php echo $t->taxonomy; ?></wp:term_taxonomy><wp:term_slug><?php echo $t->slug; ?></wp:term_slug><wp:term_parent><?php echo $t->parent ? $custom_taxonomies[$t->parent]->name : ''; ?></wp:term_parent><?php wxr_term_name( $t ); ?><?php wxr_term_description( $t ); ?></wp:term> 321 <?php endforeach; endif; ?> 354 <wp:post_id><?php echo $post->ID; ?></wp:post_id> 355 <wp:post_date><?php echo $post->post_date; ?></wp:post_date> 356 <wp:post_date_gmt><?php echo $post->post_date_gmt; ?></wp:post_date_gmt>Orders.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 305 lines
1<?php 2/** 18 19require_once( 'OrdersDetails.class.php' ); 20 192 on o.order_id = od.order_id'; 193 if ( strlen( $status ) > 0 ) 194 if ( $customer_id > -1 )AccountAction.class.php http://thinksns-2.googlecode.com/svn/trunk/ | PHP | 416 lines
1<?php 2/** 50 $replace = substr($user['email'],2,-3); 51 for ($i=1;$i<=strlen($replace);$i++){ 52 $replacestring.='*'; 244 245 if( strlen($domain)<2 ){ 246 $this->error('?????1???'); 248 249 if( strlen($domain)>20 ){ 250 $this->error('?????20???'); 267 public function doModifyPassword() { 268 if( strlen($_POST['password']) < 6 || strlen($_POST['password']) > 16 || $_POST['password'] != $_POST['repassword'] ) { 269 $this->error('?????6-16?????????');messaging.lib.php http://wowroster.googlecode.com/svn/trunk/ | PHP | 363 lines
74 } 75 if( strlen($receiver) == 0 ) 76 { 150 151 if(strlen($msgId) == 0) 152 { 173 174 if(strlen($msgId) == 0) 175 { 300 $where = ''; 301 if(strlen($receiver) > 0 && strlen($sender) > 0) 302 { 305 306 $where = ((strlen($receiver) > 0)?'`uid`=' . $receiver:'') . $where . ((strlen($sender) > 0)?'`sender`=' . $sender:''); 307mdl.passport.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 303 lines
1<?php 2require_once('plugin.php'); 122 $tmp = ''; 123 for($i = 0;$i < strlen($txt); $i++) { 124 $ctr = $ctr == strlen($encrypt_key) ? 0 : $ctr; 132 $tmp = ''; 133 for ($i = 0;$i < strlen($txt); $i++) { 134 $md5 = $txt[$i]; 143 $tmp = ''; 144 for($i = 0; $i < strlen($txt); $i++) { 145 $ctr = $ctr == strlen($encrypt_key) ? 0 : $ctr; 204 function setCookie($name,$value,$expire=false,$path=null){ 205 $cookiePath = substr(PHP_SELF, 0, strrpos(PHP_SELF, '/')).'/'; 206 $cookieLife = 3600;Transcoding.php http://pumukit.googlecode.com/svn/trunk/ | PHP | 379 lines
1<?php 2/** 163 //ojo Error 164 if (strlen($this->getPerfil()->getUrlOut()) !== 0) 165 $file->setUrl(str_replace($this->getPerfil()->getDirOut(), $this->getPerfil()->getUrlOut(), $this->getUrl())); 309 310 if((strlen($this->getPathIni()) == 0)||is_null($this->getMmId())||is_null($this->getPerfilId())){ 311 throw new sfException("Error en autoEnd");activate.php http://snowcms.googlecode.com/svn/trunk/ | PHP | 168 lines
1<?php 2//////////////////////////////////////////////////////////////////////////// 91 api()->add_filter('activate_form_errors', create_function('$value', ' 92 $value[] = l(\'That account is already activated. If this is your account you can <a href="%s">log in</a>.\', baseurl(\'index.php?action=login\')); 93 101 // activation code is admin_approval). 102 elseif($member_info['acode'] != $_REQUEST['code'] || strlen($member_info['acode']) == 0 || $member_info['acode'] == 'admin_approval') 103 { 120 api()->add_filter('activate_form_messages', create_function('$value', ' 121 $value[] = l(\'Your account has been successfully activated. You may now <a href="%s">log in</a>.\', baseurl(\'index.php?action=login\')); 122SimplePayloadDecoder.php http://gwtphp-derpc.googlecode.com/svn/trunk/ | PHP | 389 lines
1<?php 2/* 20 21require_once PHPRPC_ROOT . 'derpc/ast.php'; 22require_once PHPRPC_ROOT . 'classes.php'; 23 24require_once PHPRPC_ROOT . 'derpc/SimplePayloadSink.php'; 25require_once PHPRPC_ROOT . 'derpc/ClientOracle.php'; 68 69 while ($this->toReturn == null && $this->idx < mb_strlen($payload)) { 70 $this->decodeCommand();UserSettings.php http://chronique.googlecode.com/svn/ | PHP | 219 lines
1<?php 2 2 3/* $Id: UserSettings.php 4752 2011-11-24 09:10:21Z daintree $*/ 4 39 if ($_POST['PasswordCheck'] != ''){ 40 if (mb_strlen($_POST['Password'])<5){ 41 $InputError = 1; 95 $_SESSION['PDFLanguage'] = $_POST['PDFLanguage']; 96 include ('includes/LanguageSetup.php'); 97 100 101echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; 102echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';LongVariable.php git://pkgs.fedoraproject.org/php-phpmd-PHP-PMD | PHP | 224 lines
41 * @subpackage Rule_Naming 42 * @author Manuel Pichler <mapi@phpmd.org> 43 * @copyright 2008-2012 Manuel Pichler. All rights reserved. 48 49require_once 'PHP/PMD/AbstractRule.php'; 50require_once 'PHP/PMD/Rule/IClassAware.php'; 51require_once 'PHP/PMD/Rule/IMethodAware.php'; 52require_once 'PHP/PMD/Rule/IFunctionAware.php'; 53 66 */ 67class PHP_PMD_Rule_Naming_LongVariable 68 extends PHP_PMD_AbstractRule 69 implements PHP_PMD_Rule_IClassAware, 70 PHP_PMD_Rule_IMethodAware, 71 PHP_PMD_Rule_IFunctionAwareannotations.php http://php-xframe.googlecode.com/svn/trunk/ | PHP | 411 lines
1<?php 2 /** 2 /** 3 * Addendum PHP Reflection Annotations 4 * http://code.google.com/p/addendum/ 22 23 require_once(dirname(__FILE__).'/annotations/annotation_parser.php'); 24 351 if($enabled) { 352 require_once(dirname(__FILE__).'/annotations/doc_comment.php'); 353 } 378 $pos = strrpos($declared, "_$class"); 379 if($pos !== false && ($pos + strlen($class) == strlen($declared) - 1)) { 380 $matching[] = $declared;AFSDB.php http://netdns2.googlecode.com/svn/trunk/ | PHP | 175 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 6 * 7 * PHP Version 5 8 * 44 * @copyright 2010 Mike Pultz <mike@mikepultz.com> 45 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 46 * @version SVN: $Id: AFSDB.php 127 2011-12-03 03:29:39Z mike.pultz $ 46 * @version SVN: $Id: AFSDB.php 127 2011-12-03 03:29:39Z mike.pultz $ 47 * @link http://pear.php.net/package/Net_DNS2 48 * @since File available since Release 0.6.0 64 * @author Mike Pultz <mike@mikepultz.com> 65 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 66 * @link http://pear.php.net/package/Net_DNS2 152 { 153 if (strlen($this->hostname) > 0) { 154virtuemart_parser.php http://vanphongphamdm.googlecode.com/svn/trunk/ | PHP | 310 lines
1<?php 2if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); 6* 7* @version $Id: virtuemart_parser.php 3105 2011-04-30 13:35:30Z zanardi $ 8* @package VirtueMart 15* other free or open source software licenses. 16* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details. 17* 24 25include_once( dirname(__FILE__).'/../../administrator/components/com_virtuemart/compat.joomla1.5.php' ); 26 30 // Clean the var PHP_SELF from chars like " or ' 31 $_SERVER['PHP_SELF'] = htmlspecialchars( $_SERVER['PHP_SELF'], ENT_QUOTES ); 32 65 die( "<h3>The configuration file for VirtueMart is missing!</h3>It should be here: <strong>" 66 . $mosConfig_absolute_path. "/administrator/components/com_virtuemart/virtuemart.cfg.php</strong>" ); 67 }Lib.hx http://caffeine-hx.googlecode.com/svn/trunk/ | Haxe | 425 lines
100 #elseif php 101 if(Std.is(e, php.Exception)) { 102 var __rtex__ = e; 361 else { 362 var so = untyped __call__("isset", __php__("$o->$name")) ? __php__("$o->$name") : {}; 363 appendType(so, path, t); 363 appendType(so, path, t); 364 untyped __php__("$o->$name = $so"); 365 } 372 public static function isCli() : Bool { 373 return untyped __php__("(0 == strncasecmp(PHP_SAPI, 'cli', 3))"); 374 } 379 380 public static inline function toPhpArray(a : Array<Dynamic>) : php.NativeArray { 381 return untyped __field__(a, 'Â?a');class.csstidy_print.php https://bitbucket.org/chamilo/chamilo/ | PHP | 350 lines
1<?php 2/** 23 * 24 * @license http://opensource.org/licenses/gpl-license.php GNU Public License 25 * @package csstidy 303 } 304 return round((strlen($this->input_css) - strlen($this->output_css_plain)) / strlen($this->input_css), 3) * 100; 305 } 318 319 $diff = strlen($this->output_css_plain) - strlen($this->input_css); 320 343 if ($loc == 'input') { 344 return (strlen($this->input_css) / 1000); 345 } else { 345 } else { 346 return (strlen($this->output_css_plain) / 1000); 347 }helper.php https://bitbucket.org/joomla/joomla-platform/ | PHP | 530 lines
1<?php 2/** 328 case 'aprmd5' : 329 $length = strlen($plaintext); 330 $context = $plaintext.'$apr1$'.$salt; 472 $salt = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; 473 $len = strlen($salt); 474 $makepass = ''; 476 $stat = @stat(__FILE__); 477 if (empty($stat) || !is_array($stat)) $stat = array(php_uname()); 478 521 $bin = ''; 522 $length = strlen($hex); 523 for ($i = 0; $i < $length; $i += 2) {syntax.php https://bitbucket.org/wez/mtrack/ | PHP | 196 lines
1<?php # vim:ts=2:sw=2:et: 2/* For licensing and copyright terms, see the file named LICENSE */ 19 'css' => 'css', 20 'php' => 'php', 21 'php3' => 'php', 21 'php3' => 'php', 22 'php4' => 'php', 23 'php5' => 'php', 23 'php5' => 'php', 24 'phtml' => 'php', 25 'pl' => 'perl', 45 'css' => 'CSS (Cascading Style Sheet)', 46 'php' => 'PHP', 47 'perl' => 'Perl', 145 } 146 if (strlen($type) && isset(self::$langs[$type])) { 147 require_once dirname(__FILE__) . '/hyperlight/hyperlight.php';NSEC3.php http://netdns2.googlecode.com/svn/trunk/ | PHP | 309 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 6 * 7 * PHP Version 5 8 * 44 * @copyright 2010 Mike Pultz <mike@mikepultz.com> 45 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 46 * @version SVN: $Id: NSEC3.php 125 2011-12-03 00:19:49Z mike.pultz $ 46 * @version SVN: $Id: NSEC3.php 125 2011-12-03 00:19:49Z mike.pultz $ 47 * @link http://pear.php.net/package/Net_DNS2 48 * @since File available since Release 0.6.0 68 * @author Mike Pultz <mike@mikepultz.com> 69 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 70 * @link http://pear.php.net/package/Net_DNS2 179 180 $this->salt_length = strlen(pack('H*', $salt)); 181 $this->salt = strtoupper($salt);MimePart.php git://github.com/nette/nette.git | PHP | 393 lines
1<?php 2 131 { 132 $offset = strlen($name) + 2; // colon + space 133 147 $email .= ','; 148 if ($s !== '' && $offset + strlen($email) > self::LINE_LENGTH) { 149 $s .= self::EOL . "\t"; 152 $s .= $email; 153 $offset += strlen($email); 154 } 157 } elseif (preg_match('#^(\S+; (?:file)?name=)"(.*)"$#', $this->headers[$name], $m)) { // Content-Disposition 158 $offset += strlen($m[1]); 159 return $m[1] . '"' . self::encodeHeader($m[2], $offset) . '"'; 301 if ($this->parts) { 302 if (substr($output, -strlen(self::EOL)) !== self::EOL) { 303 $output .= self::EOL;Condition.php git://github.com/jaytaph/HTRouter.git | PHP | 281 lines
1<?php 2 88 89 if ($condPattern[0] == "<" && strlen($condPattern) > 1) { 90 $this->_condPattern = substr($condPattern, 1); 91 $this->_condPatternType = self::COND_LEXICAL_PRE; 92 } elseif ($condPattern[0] == ">" and strlen($condPattern) > 1) { 93 $this->_condPattern = substr($condPattern, 1); 94 $this->_condPatternType = self::COND_LEXICAL_POST; 95 } elseif ($condPattern[0] == "=" and strlen($condPattern) > 1) { 96 $this->_condPattern = substr($condPattern, 1); 97 $this->_condPatternType = self::COND_LEXICAL_EQ; 98 } elseif ($condPattern[0] == "-" and strlen($condPattern) == 2) { 99 switch ($condPattern) { 129 // Check for brackets 130 if ($flags[0] != '[' && $flags[strlen($flags)-1] != ']') { 131 throw new \InvalidArgumentException("Flags must be bracketed");DictionaryLoader.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 60 $tiVersion != (int)0xFFFFFFFD /* 2.1+ format */) { 61 require_once 'Zend/Search/Lucene/Exception.php'; 62 throw new Zend_Search_Lucene_Exception('Wrong TermInfoIndexFile file format'); 65 // $indexTermCount = $tiiFile->readLong(); 66 if (PHP_INT_SIZE > 4) { 67 $indexTermCount = ord($data[$pos]) << 56 | 80 ((ord($data[$pos+4]) & 0x80) != 0)) { 81 require_once 'Zend/Search/Lucene/Exception.php'; 82 throw new Zend_Search_Lucene_Exception('Largest supported segment size (for 32-bit mode) is 2Gb'); 98 if ($indexTermCount < 1) { 99 require_once 'Zend/Search/Lucene/Exception.php'; 100 throw new Zend_Search_Lucene_Exception('Wrong number of terms in a term dictionary index'); 163 $pb = 0; $pc = 0; 164 while ($pb < strlen($prevTerm) && $pc < $termPrefixLength) { 165 $charBytes = 1;Init.php git://github.com/thorsten/phpMyFAQ.git | PHP | 325 lines
1<?php 2/** 4 * 5 * PHP Version 5.3 6 * 13 * 14 * @category phpMyFAQ 15 * @package PMF_Init 16 * @author Johann-Peter Hartmann <hartmann@mayflower.de> 17 * @author Thorsten Rinne <thorsten@phpmyfaq.de> 18 * @author Stefan Esser <sesser@php.net> 18 * @author Stefan Esser <sesser@php.net> 19 * @author Matteo Scaramuccia <matteo@phpmyfaq.de> 20 * @author Christian Stocker <chregu@bitflux.ch> 20 * @author Christian Stocker <chregu@bitflux.ch> 21 * @copyright 2005-2012 phpMyFAQ Team 22 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0JSMin.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 370 lines
1<?php 2/** 2/** 3 * jsmin.php - PHP implementation of Douglas Crockford's JSMin. 4 * 4 * 5 * This is a direct port of jsmin.c to PHP with a few PHP performance tweaks and 6 * modifications to preserve some comments (see below). Also, rather than using 13 * 14 * PHP 5 or higher is required. 15 * 43 * @package JSMin 44 * @author Ryan Grove <ryan@wonko.com> (PHP port) 45 * @author Steve Clay <steve@mrclay.org> (modifications + cleanup) 47 * @copyright 2002 Douglas Crockford <douglas@crockford.com> (jsmin.c) 48 * @copyright 2008 Ryan Grove <ryan@wonko.com> (PHP port) 49 * @license http://opensource.org/licenses/mit-license.php MIT LicenselastRSS.php git://github.com/JxLib/JxLib.git | PHP | 226 lines
1<?php 2/* 5 6 Simple yet powerfull PHP class to parse RSS files. 7 31* lastRSS 32* Simple yet powerfull PHP class to parse RSS files. 33*/ 70 if ($f = @fopen($cache_file, 'w')) { 71 fwrite ($f, $serialized, strlen($serialized)); 72 fclose($f);category.php http://comet.googlecode.com/svn/trunk/ | PHP | 211 lines
1<?php 2 4 exit ( 'No direct script access allowed' ); 5require_once ('./application/controllers/authenticate.php'); 6 124 $bannerPath = 'media/category/banners/' . $dataUpload ['file_name']; 125 if (strlen ( $dataUpload ['file_name'] ) > 0) { 126 $this->category_model->setBanner ( $bannerPath );FormValidator.php http://webpagetest.googlecode.com/svn/trunk/ | PHP | 201 lines
1<?php 2/** 2/** 3 * Pork Formvalidator. validates fields by regexes and can sanatize them. Uses PHP filter_var built-in functions and extra regexes 4 * @package pork 56 { 57 if((strlen($val) == 0 || array_search($key, $this->validations) === false) && array_search($key, $this->mandatories) === false) 58 {running.inc http://webpagetest.googlecode.com/svn/trunk/ | PHP | 166 lines
7 </noscript> 8 <?php 9 $autoRefresh = true; 17 <div class="page"> 18 <?php 19 require_once('testStatus.inc'); 31 <p> 32 <?php 33 if ($settings['nolinks']) { 42 <h3>Testing...</h3> 43 <?php 44 $status = GetTestStatus($id, true); 47 ?> 48 <form action="/cancelTest.php" method="get"> 49 <input type="hidden" name="test" value="<?php echo $id;?>">fronts_common.php http://php-ppcms.googlecode.com/svn/trunk/ | PHP | 254 lines
33//do not use the function util_xxx 34if( strlen($request_uri) > 0 && (substr($request_uri, 0, strlen('index.php')) != 'index.php') ) { 35 $link_result = util_parse_link($request_uri); 43$request_param = $_SERVER['QUERY_STRING']; 44//$request_redirect = substr($_SERVER['REDIRECT_URL'], strlen(CONFIG_URL_PREFIX)); 45////////////////////////////////////////////////////////////////////////////////////////////////////////////// 87 // 88 include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'module/news/news.class.php'); 89 $mObj = new NewsBase(); 96 // 97 include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'module/product/product.category.class.php'); 98 $mObj = new ProductCategoryBase(); 116 // 117 include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'module/gallery/gallery.album.class.php'); 118 $mObj = new GalleryAlbumBase();Main.c git://pkgs.fedoraproject.org/mingw-nsis | C | 352 lines
36 37char g_caption[NSIS_MAX_STRLEN*2]; 38#ifdef NSIS_CONFIG_VISIBLE_SUPPORT 94 // workaround for bug #1008632 95 // http://sourceforge.net/tracker/index.php?func=detail&aid=1008632&group_id=22049&atid=373085 96 // 173 174 GetTempPath(NSIS_MAX_STRLEN, state_temp_dir); 175 if (!ValidateTempDir()) 176 { 177 GetWindowsDirectory(state_temp_dir, NSIS_MAX_STRLEN - 5); // leave space for \Temp 178 mystrcat(state_temp_dir, "\\Temp"); 236 { 237 static char buf2[NSIS_MAX_STRLEN]; 238erlang_term_parser.php http://erlang-term-php-parser.googlecode.com/svn/trunk/ | PHP | 255 lines
1<?php 2/* 3 @author Alexxz 4 @project_url http://code.google.com/p/erlang-term-php-parser/ 5 33function erl_parse_all($string, $i){ 34 $len = strlen($string); 35 while($i < $len){ 72 $list = array(); 73 $len = strlen($string); 74 while($i < $len){ 106 $list = array(); 107 $len = strlen($string); 108 while($i < $len){ 141 $list = array(); 142 $len = strlen($string); 143 while($i < $len){iptc.c git://github.com/infusion/PHP.git | C | 377 lines
2 +----------------------------------------------------------------------+ 3 | PHP Version 5 | 4 +----------------------------------------------------------------------+ 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 1997-2011 The PHP Group | 6 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+manufacturer.php http://coderstalk.googlecode.com/svn/trunk/ | PHP | 418 lines
1<?php 2class ControllerCatalogManufacturer extends Controller { 384 385 if ((strlen(utf8_decode($this->request->post['name'])) < 3) || (strlen(utf8_decode($this->request->post['name'])) > 32)) { 386 $this->error['name'] = $this->language->get('error_name');