100+ results results for 'php str_replace repo:alin40404/FanweShare' (725 ms)
1<?php 2/** 4 * 5 * A PHP-Based RSS and Atom Feed Framework. 6 * Takes the hard work out of managing a complete RSS/Atom solution. 41 * @link http://simplepie.org/ SimplePie 42 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 43 */ 223 $consumed_length = strlen($this->consumed); 224 $this->data = substr_replace($this->data, $replacement, $this->position - $consumed_length, $consumed_length); 225 $this->position += strlen($replacement) - $consumed_length;module.tag.apetag.php https://gitlab.com/Gashler/dp | PHP | 370 lines
1<?php 2///////////////////////////////////////////////////////////////// 9// // 10// module.tag.apetag.php // 11// module for analyzing APE tags // 24 if (!getid3_lib::intValueSupported($info['filesize'])) { 25 $info['warning'][] = 'Unable to check for APEtags because file is larger than '.round(PHP_INT_MAX / 1073741824).'GB'; 26 return false; 149 case 'replaygain_track_gain': 150 $thisfile_replaygain['track']['adjustment'] = (float) str_replace(',', '.', $thisfile_ape_items_current['data'][0]); // float casting will see "0,95" as zero! 151 $thisfile_replaygain['track']['originator'] = 'unspecified'; 154 case 'replaygain_track_peak': 155 $thisfile_replaygain['track']['peak'] = (float) str_replace(',', '.', $thisfile_ape_items_current['data'][0]); // float casting will see "0,95" as zero! 156 $thisfile_replaygain['track']['originator'] = 'unspecified'; 162 case 'replaygain_album_gain': 163 $thisfile_replaygain['album']['adjustment'] = (float) str_replace(',', '.', $thisfile_ape_items_current['data'][0]); // float casting will see "0,95" as zero! 164 $thisfile_replaygain['album']['originator'] = 'unspecified';module.audio.flac.php https://gitlab.com/Gashler/dp | PHP | 442 lines
1<?php 2///////////////////////////////////////////////////////////////// 9// // 10// module.audio.flac.php // 11// module for analyzing FLAC and OggFLAC audio files // 11// module for analyzing FLAC and OggFLAC audio files // 12// dependencies: module.audio.ogg.php // 13// /// 16 17getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'module.audio.ogg.php', __FILE__, true); 18 129 if (!empty($info['flac']['VORBIS_COMMENT']['vendor'])) { 130 $info['audio']['encoder'] = str_replace('reference ', '', $info['flac']['VORBIS_COMMENT']['vendor']); 131 } 360 $picture['data'] = $this->saveAttachment( 361 str_replace('/', '_', $picture['type']).'_'.$this->ftell(), 362 $this->ftell(),getid3.php https://gitlab.com/Gashler/dp | PHP | 1405 lines
117 if (version_compare(PHP_VERSION, $required_php_version, '<')) { 118 $this->startup_error .= 'getID3() requires PHP v'.$required_php_version.' or higher - you are running v'.PHP_VERSION; 119 return false; 135 } elseif ($this->memory_limit <= 12582912) { 136 $this->startup_warning .= 'PHP has less than 12MB available memory and might run out if all modules are loaded. Increase memory_limit in php.ini'; 137 } 290 fclose($this->fp); 291 throw new getid3_exception('Unable to determine actual filesize. File is most likely larger than '.round(PHP_INT_MAX / 1073741824).'GB and is not supported by PHP.'); 292 } elseif (getid3_lib::intValueSupported($real_filesize)) { 294 fclose($this->fp); 295 throw new getid3_exception('PHP seems to think the file is larger than '.round(PHP_INT_MAX / 1073741824).'GB, but filesystem reports it as '.number_format($real_filesize, 3).'GB, please report to info@getid3.org'); 296 } 297 $this->info['filesize'] = $real_filesize; 298 $this->warning('File is larger than '.round(PHP_INT_MAX / 1073741824).'GB (filesystem reports it as '.number_format($real_filesize, 3).'GB) and is not properly supported by PHP.'); 299 }getid3.lib.php https://gitlab.com/Gashler/dp | PHP | 1341 lines
1<?php 2///////////////////////////////////////////////////////////////// 7// // 8// getid3.lib.php - part of getID3() // 9// See readme.txt for more details // 84 if (!$hasINT64 && !defined('PHP_INT_MIN')) { 85 define('PHP_INT_MIN', ~PHP_INT_MAX); 86 } 88 // if integers are 64-bit - no other check required 89 if ($hasINT64 || (($num <= PHP_INT_MAX) && ($num >= PHP_INT_MIN))) { 90 return true; 122 $exponent += ($pointpos - 1); 123 $binarypointnumber = str_replace('.', '', $binarypointnumber); 124 $binarypointnumber = $binarypointnumber{0}.'.'.substr($binarypointnumber, 1); 385 // written by kcØhireability*com 386 // taken from http://www.php.net/manual/en/function.array-merge-recursive.php 387 if (!is_array($array1) || !is_array($array2)) {theme.php https://gitlab.com/Gashler/dp | PHP | 1624 lines
1<?php 2/** 345 if ( 0 === strpos( $theme_root, WP_CONTENT_DIR ) ) 346 $relative_theme_roots[ str_replace( WP_CONTENT_DIR, '', $theme_root ) ] = $theme_root; 347 elsepost.php https://gitlab.com/Gashler/dp | PHP | 1467 lines
1<?php 2/** 25 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 26 '_edit_link' => 'post.php?post=%d', /* internal use only. don't use this when registering your own post type. */ 27 'capability_type' => 'post', 42 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 43 '_edit_link' => 'post.php?post=%d', /* internal use only. don't use this when registering your own post type. */ 44 'capability_type' => 'page', 63 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 64 '_edit_link' => 'post.php?post=%d', /* internal use only. don't use this when registering your own post type. */ 65 'capability_type' => 'post', 84 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 85 '_edit_link' => 'revision.php?revision=%d', /* internal use only. don't use this when registering your own post type. */ 86 'capability_type' => 'post', 234 if ( 0 === strpos( $new_path, $uploads['basedir'] ) ) { 235 $new_path = str_replace( $uploads['basedir'], '', $new_path ); 236 $new_path = ltrim( $new_path, '/' );post-template.php https://gitlab.com/Gashler/dp | PHP | 1432 lines
1<?php 2/** 166 $content = apply_filters( 'the_content', $content ); 167 $content = str_replace( ']]>', ']]>', $content ); 168 echo $content; 455 $classes[] = 'attachmentid-' . $post_id; 456 $classes[] = 'attachment-' . str_replace( $mime_prefix, '', $mime_type ); 457 } 508 $classes[] = 'page-template'; 509 $classes[] = 'page-template-' . sanitize_html_class( str_replace( '.', '-', get_page_template_slug( $page_id ) ) ); 510 } else {media.php https://gitlab.com/Gashler/dp | PHP | 1457 lines
1<?php 2/** 152 if ( $intermediate = image_get_intermediate_size($id, $size) ) { 153 $img_url = str_replace($img_url_basename, $intermediate['file'], $img_url); 154 $width = $intermediate['width']; 160 if ( ($thumb_file = wp_get_attachment_thumb_file($id)) && $info = getimagesize($thumb_file) ) { 161 $img_url = str_replace($img_url_basename, wp_basename($thumb_file), $img_url); 162 $width = $info[0]; 316 * @param bool $crop Optional, default is false. Whether to crop image or resize. 317 * @return bool|array False on failure. Returned array matches parameters for imagecopyresampled() PHP function. 318 */link-template.php https://gitlab.com/Gashler/dp | PHP | 1673 lines
1<?php 2/** 159 ); 160 $permalink = home_url( str_replace($rewritecode, $rewritereplace, $permalink) ); 161 $permalink = user_trailingslashit($permalink, 'single'); 197 $slug = get_page_uri($id); 198 $post_link = str_replace("%$post->post_type%", $slug, $post_link); 199 } 274 if ( ! $leavename ) { 275 $link = str_replace('%pagename%', get_page_uri( $post ), $link); 276 } 320 if ( ! $leavename ) 321 $link = str_replace( '%postname%', $name, $link ); 322 } 343 if ( !empty($yearlink) ) { 344 $yearlink = str_replace('%year%', $year, $yearlink); 345 return apply_filters('year_link', home_url( user_trailingslashit($yearlink, 'year') ), $year);feed.php https://gitlab.com/Gashler/dp | PHP | 552 lines
1<?php 2/** 149 $content = apply_filters('the_content', get_the_content()); 150 $content = str_replace(']]>', ']]>', $content); 151 return apply_filters('the_content_feed', $content, $feed_type); 444 * 445 * @link http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.3.1 446 * 529function fetch_feed( $url ) { 530 require_once ( ABSPATH . WPINC . '/class-feed.php' ); 531deprecated.php https://gitlab.com/Gashler/dp | PHP | 1753 lines
1<?php 2/** 153 $string .= '</a>'; 154 $format = str_replace('%', $string, $format); 155 echo $format; 189 $string .= '</a>'; 190 $format = str_replace('%', $string, $format); 191 echo $format;comment-template.php https://gitlab.com/Gashler/dp | PHP | 1495 lines
1<?php 2/** 247 $display = ($linktext != '') ? $linktext : $url; 248 $display = str_replace( 'http://www.', '', $display ); 249 $display = str_replace( 'http://', '', $display );class-wp.php https://gitlab.com/Gashler/dp | PHP | 645 lines
1<?php 2/** 148 $pathinfo_array = explode('?', $pathinfo); 149 $pathinfo = str_replace("%", "%25", $pathinfo_array[0]); 150 $req_uri = $_SERVER['REQUEST_URI']; 152 $req_uri = $req_uri_array[0]; 153 $self = $_SERVER['PHP_SELF']; 154 $home_path = parse_url(home_url()); 164 // requested permalink. 165 $req_uri = str_replace($pathinfo, '', $req_uri); 166 $req_uri = trim($req_uri, '/'); 237 // If req_uri is empty or if it is a request for ourself, unset error. 238 if ( empty($request) || $req_uri == $self || strpos($_SERVER['PHP_SELF'], 'wp-admin/') !== false ) { 239 unset( $error, $_GET['error'] ); 240 241 if ( isset($perma_query_vars) && strpos($_SERVER['PHP_SELF'], 'wp-admin/') !== false ) 242 unset( $perma_query_vars );class-wp-customize-control.php https://gitlab.com/Gashler/dp | PHP | 817 lines
192 protected function render() { 193 $id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) ); 194 $class = 'customize-control customize-control-' . $this->type; 195 196 ?><li id="<?php echo esc_attr( $id ); ?>" class="<?php echo esc_attr( $class ); ?>"> 197 <?php $this->render_content(); ?> 240 <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> 241 <input type="text" value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->link(); ?> /> 242 </label> 264 <label> 265 <input type="radio" value="<?php echo esc_attr( $value ); ?>" name="<?php echo esc_attr( $name ); ?>" <?php $this->link(); checked( $this->value(), $value ); ?> /> 266 <?php echo esc_html( $label ); ?><br/> 386 <div class="customize-control-content"> 387 <input class="color-picker-hex" type="text" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value' ); ?>"<?php echo $default_attr; ?> /> 388 </div>class-simplepie.php https://gitlab.com/Gashler/dp | PHP | 1773 lines
6require ABSPATH . WPINC . '/SimplePie/Cache.php'; 7require ABSPATH . WPINC . '/SimplePie/File.php'; 8require ABSPATH . WPINC . '/SimplePie/Sanitize.php'; 9require ABSPATH . WPINC . '/SimplePie/Registry.php'; 10require ABSPATH . WPINC . '/SimplePie/IRI.php'; 11require ABSPATH . WPINC . '/SimplePie/Locator.php'; 11require ABSPATH . WPINC . '/SimplePie/Locator.php'; 12require ABSPATH . WPINC . '/SimplePie/Content/Type/Sniffer.php'; 13require ABSPATH . WPINC . '/SimplePie/XML/Declaration/Parser.php'; 27 28 $file = ABSPATH . WPINC . '/' . str_replace( '_', '/', $class ) . '.php'; 29 include $file; 42} else { 43 require ABSPATH . WPINC . '/SimplePie/Cache/Base.php'; 44 require ABSPATH . WPINC . '/SimplePie/Cache/DB.php';nc-markdown.inc.php https://gitlab.com/Gashler/dp | PHP | 1475 lines
1<?php 2/** 2/** 3* PHP Markdown class. 4* 4* 5* Copyright {@link http://www.michelf.com/projects/php-markdown/ Michel Fortin}. 6* Original Markdown. Copyright {@link http://daringfireball.net/projects/markdown/ John Gruber}. 17/** 18* PHP Markdown interface. 19* 36/** 37* PHP Markdown class. 38* @package Xtnls\Markdown 43 # Regex to match balanced [brackets]. 44 # Needed to insert a maximum bracked depth while converting to PHP. 45 var $nested_brackets_depth = 6;utils-urls.inc.php https://gitlab.com/Gashler/dp | PHP | 375 lines
39 { 40 return apply_filters("wp_signup_location", site_url("/wp-signup.php")); 41 } 42 /** 43 * Builds a WordPress® registration URL to `/wp-login.php?action=register`. 44 * 104 { 105 return str_replace("&", "&", c_ws_plugin__s2member_utils_urls::n_amps((string)$url_uri_query)); 106 } 146 * 147 * This works around issues with this PHP function in versions prior to 5.3.8. 148 * 164 list($_, $query) = preg_split /* Split @ query string marker. */("/\?/", $url_uri, 2); 165 $query = /* See: <https://bugs.php.net/bug.php?id=38143>. */ str_replace("://", urlencode("://"), $query); 166 $url_uri = /* Put it all back together again, after the above modifications. */ $_."?".$query;utils-strings.inc.php https://gitlab.com/Gashler/dp | PHP | 548 lines
98 99 return str_replace("'", str_repeat("\\", $times)."'", str_replace(array("\r", "\n"), array("", '\\n'), str_replace("\'", "'", (string)$string))); 100 } 155 * @see s2Member\Utilities\c_ws_plugin__s2member_utils_strings::trim_deep() 156 * @see http://php.net/manual/en/function.trim.php 157 * 187 Note, we do NOT use ``array_map()`` here, because multiple args to ``array_map()`` causes a loss of string keys. 188 For further details, see: <http://php.net/manual/en/function.array-map.php>. */ 189 { 269 Note, we do NOT use ``array_map()`` here, because multiple args to ``array_map()`` causes a loss of string keys. 270 For further details, see: <http://php.net/manual/en/function.array-map.php>. */ 271 { 291 Note, we do NOT use ``array_map()`` here, because multiple args to ``array_map()`` causes a loss of string keys. 292 For further details, see: <http://php.net/manual/en/function.array-map.php>. */ 293 {paypal-return-in-wa-ccaps-wo-level.inc.php https://gitlab.com/Gashler/dp | PHP | 201 lines
1<?php 2/** 80 } 81 if ($paypal["ccaps"] && preg_match ("/^-all/", str_replace ("+", "", $paypal["ccaps"]))) 82 foreach ($user->allcaps as $cap => $cap_enabled) 85 86 if ($paypal["ccaps"] && preg_replace ("/^-all[\r\n\t\s;,]*/", "", str_replace ("+", "", $paypal["ccaps"]))) 87 foreach (preg_split ("/[\r\n\t\s;,]+/", preg_replace ("/^-all[\r\n\t\s;,]*/", "", str_replace ("+", "", $paypal["ccaps"]))) as $ccap)paypal-notify-in-wa-ccaps-wo-level.inc.php https://gitlab.com/Gashler/dp | PHP | 295 lines
1<?php 2/** 84 85 if ($paypal["ccaps"] && preg_match ("/^-all/", str_replace ("+", "", $paypal["ccaps"]))) 86 foreach ($user->allcaps as $cap => $cap_enabled) 89 90 if ($paypal["ccaps"] && preg_replace ("/^-all[\r\n\t\s;,]*/", "", str_replace ("+", "", $paypal["ccaps"]))) 91 foreach (preg_split ("/[\r\n\t\s;,]+/", preg_replace ("/^-all[\r\n\t\s;,]*/", "", str_replace ("+", "", $paypal["ccaps"]))) as $ccap)syscon.inc.php https://gitlab.com/Gashler/dp | PHP | 566 lines
1<?php 2/** 34plugins_url("/".basename(dirname(dirname(__FILE__)))) : // Otherwise, this gives it a chance to live anywhere in the content dir. 35content_url(preg_replace("/^(.*?)\/".preg_quote(basename(WP_CONTENT_DIR), "/")."/", "", str_replace(DIRECTORY_SEPARATOR, "/", dirname(dirname(__FILE__))))); 36/* 38*/ 39$GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["s2o_url"] = $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["dir_url"]."/".preg_replace("/\.php$/", "-o.php", basename($GLOBALS["WS_PLUGIN__"]["s2member"]["l"])); 40/* 70*/ 71$GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["default_files_dir"] = dirname(dirname(__FILE__))."-files".((stripos(PHP_OS, "win") === 0 && stripos($_SERVER["SERVER_SOFTWARE"], "apache") === false) ? "/app_data" : ""); 72$GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["files_dir"] = apply_filters("ws_plugin__s2member_files_dir", $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["default_files_dir"]); 72$GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["files_dir"] = apply_filters("ws_plugin__s2member_files_dir", $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["default_files_dir"]); 73$GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["files_no_gzip_htaccess"] = dirname(__FILE__)."/templates/cfg-files/s2member-files-no-gzip.php"; 74$GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["files_dir_htaccess"] = dirname(__FILE__)."/templates/cfg-files/s2member-files.php"; 77*/ 78$GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["default_logs_dir"] = dirname(dirname(__FILE__))."-logs".((stripos(PHP_OS, "win") === 0 && stripos($_SERVER["SERVER_SOFTWARE"], "apache") === false) ? "/app_data" : ""); 79$GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["logs_dir"] = apply_filters("ws_plugin__s2member_logs_dir", $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["default_logs_dir"]);misc.php https://gitlab.com/Gashler/dp | PHP | 667 lines
1<?php 2/** 159 160 // Using win_is_writable() instead of is_writable() because of a bug in Windows PHP 161 if ( iis7_supports_permalinks() && ( ( ! file_exists($web_config_file) && win_is_writable($home_path) && $wp_rewrite->using_mod_rewrite_permalinks() ) || win_is_writable($web_config_file) ) ) { 222function url_shorten( $url ) { 223 $short_url = str_replace( array( 'http://', 'www.' ), '', $url ); 224 $short_url = untrailingslashit( $short_url ); 331 $map_option = $option; 332 $type = str_replace('edit_', '', $map_option); 333 $type = str_replace('_per_page', '', $type); 338 else 339 $option = str_replace('-', '_', $option); 340 538foreach ( $_wp_admin_css_colors as $color => $color_info ): ?> 539<div class="color-option"><input name="admin_color" id="admin_color_<?php echo esc_attr( $color ); ?>" type="radio" value="<?php echo esc_attr( $color ); ?>" class="tog" <?php checked($color, $current_color); ?> /> 540 <table class="color-palette">media.php https://gitlab.com/Gashler/dp | PHP | 1517 lines
1<?php 2/** 147 148 $caption = str_replace( array("\r\n", "\r"), "\n", $caption); 149 $caption = preg_replace_callback( '/<[a-zA-Z0-9]+(?: [^<>]+>)*/', '_cleanup_image_add_caption', $caption ); 185var win = window.dialogArguments || opener || parent || top; 186win.send_to_editor('<?php echo addslashes($html); ?>'); 187/* ]]> */ 188</script> 189<?php 190 exit; 381?> 382<title><?php bloginfo('name') ?> › <?php _e('Uploads'); ?> — <?php _e('WordPress'); ?></title> 383<?php 394addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}; 395var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup', 396isRtl = <?php echo (int) is_rtl(); ?>;image.php https://gitlab.com/Gashler/dp | PHP | 450 lines
1<?php 2/** 47 if ( ! $dst_file ) 48 $dst_file = str_replace( basename( $src_file ), 'cropped-' . basename( $src_file ), $src_file ); 49 138 } 139 $basename = str_replace( '.', '-', basename( $file ) ) . '-image' . $ext; 140 $uploaded = wp_upload_bits( $basename, '', $metadata['image']['data'] );file.php https://gitlab.com/Gashler/dp | PHP | 1071 lines
19 'comments-popup.php' => __( 'Popup Comments' ), 20 'footer.php' => __( 'Footer' ), 21 'header.php' => __( 'Header' ), 33 'functions.php' => __( 'Theme Functions' ), 34 'attachment.php' => __( 'Attachment Template' ), 35 'image.php' => __('Image Attachment Template'), 38 'application.php' => __('Application Attachment Template'), 39 'my-hacks.php' => __( 'my-hacks.php (legacy hacks support)' ), 40 '.htaccess' => __( '.htaccess (for rewrite rules )' ), 292 else 293 $error_msg = __( 'File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.' ); 294 return call_user_func($upload_error_handler, $file, $error_msg); 388 389 // Courtesy of php.net, the strings that describe the error indicated in $_FILES[{form field}]['error']. 390 $upload_error_strings = array( false,export.php https://gitlab.com/Gashler/dp | PHP | 436 lines
342<?php foreach ( $cats as $c ) : ?> 343 <wp:category><wp:term_id><?php echo $c->term_id ?></wp:term_id><wp:category_nicename><?php echo $c->slug; ?></wp:category_nicename><wp:category_parent><?php echo $c->parent ? $cats[$c->parent]->slug : ''; ?></wp:category_parent><?php wxr_cat_name( $c ); ?><?php wxr_category_description( $c ); ?></wp:category> 344<?php endforeach; ?> 345<?php foreach ( $tags as $t ) : ?> 346 <wp:tag><wp:term_id><?php echo $t->term_id ?></wp:term_id><wp:tag_slug><?php echo $t->slug; ?></wp:tag_slug><?php wxr_tag_name( $t ); ?><?php wxr_tag_description( $t ); ?></wp:tag> 347<?php endforeach; ?> 348<?php foreach ( $terms as $t ) : ?> 349 <wp:term><wp:term_id><?php echo $t->term_id ?></wp:term_id><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 ? $terms[$t->parent]->slug : ''; ?></wp:term_parent><?php wxr_term_name( $t ); ?><?php wxr_term_description( $t ); ?></wp:term> 350<?php endforeach; ?> 371 <link><?php the_permalink_rss() ?></link> 372 <pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate> 373 <dc:creator><?php echo get_the_author_meta( 'login' ); ?></dc:creator> 407 <wp:comment_id><?php echo $c->comment_ID; ?></wp:comment_id> 408 <wp:comment_author><?php echo wxr_cdata( $c->comment_author ); ?></wp:comment_author> 409 <wp:comment_author_email><?php echo $c->comment_author_email; ?></wp:comment_author_email>class-wp-plugins-list-table.php https://gitlab.com/Gashler/dp | PHP | 437 lines
1<?php 2/** 126 127 $plugins_per_page = $this->get_items_per_page( str_replace( '-', '_', $screen->id . '_per_page' ), 999 ); 128 223 $status_links[$type] = sprintf( "<a href='%s' %s>%s</a>", 224 add_query_arg('plugin_status', $type, 'plugins.php'), 225 ( $type == $status ) ? ' class="current"' : '', 274 elseif ( 'top' == $which && 'mustuse' == $status ) 275 echo '<p>' . sprintf( __( 'Files in the <code>%s</code> directory are executed automatically.' ), str_replace( ABSPATH, '/', WPMU_PLUGIN_DIR ) ) . '</p>'; 276 elseif ( 'top' == $which && 'dropins' == $status ) 276 elseif ( 'top' == $which && 'dropins' == $status ) 277 echo '<p>' . sprintf( __( 'Drop-ins are advanced plugins in the <code>%s</code> directory that replace WordPress functionality when present.' ), str_replace( ABSPATH, '', WP_CONTENT_DIR ) ) . '</p>'; 278 328 $is_active = false; 329 $description = '<p><strong>' . $dropins[ $plugin_file ][0] . ' <span class="attention">' . __('Inactive:') . '</span></strong> ' . sprintf( __( 'Requires <code>%s</code> in <code>wp-config.php</code>.' ), "define('" . $dropins[ $plugin_file ][1] . "', true);" ) . '</p>'; 330 }ajax-actions.php https://gitlab.com/Gashler/dp | PHP | 1646 lines
1<?php 2/** 80 if ( ',' !== $comma ) 81 $s = str_replace( $comma, ',', $s ); 82 if ( false !== strpos( $s, ',' ) ) { 147 148 include_once( ABSPATH . 'wp-admin/includes/image-edit.php' ); 149 if ( ! stream_preview_image($post_id) ) 205function wp_ajax_dashboard_widgets() { 206 require_once ABSPATH . 'wp-admin/includes/dashboard.php'; 207 333 'id' => $cat_id, 334 'data' => str_replace( array("\n", "\t"), '', $data), 335 'position' => -1 356 'id' => $term_id, 357 'data' => str_replace( array("\n", "\t"), '', $data), 358 'position' => -1press-this.php https://gitlab.com/Gashler/dp | PHP | 653 lines
155 <a href="#" class="select"> 156 <img src="<?php echo esc_url($image); ?>" alt="<?php echo esc_attr(__('Click to insert.')); ?>" title="<?php echo esc_attr(__('Click to insert.')); ?>" /> 157 </a> 290 291 jQuery('#extra-fields').html('<div class="postbox"><h2><?php _e( 'Add Photos' ); ?> <small id="photo_directions">(<?php _e("click images to select") ?>)</small></h2><ul class="actions"><li><a href="#" id="photo-add-url" class="button button-small"><?php _e("Add from URL") ?> +</a></li></ul><div class="inside"><div class="titlewrap"><div id="img_container"></div></div><p id="options"><a href="#" class="close button"><?php _e('Cancel'); ?></a><a href="#" class="refresh button"><?php _e('Refresh'); ?></a></p></div>'); 292 jQuery('#img_container').html(strtoappend); 305addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}; 306var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>', pagenow = 'press-this', isRtl = <?php echo (int) is_rtl(); ?>; 307var photostorage = false; 348 case 'video' : 349 jQuery('#extra-fields').load('<?php echo esc_url($_SERVER['PHP_SELF']); ?>', { ajax: 'video', s: '<?php echo esc_attr($selection); ?>'}, function() { 350 <?php 396 cache : false, 397 url: "<?php echo esc_url($_SERVER['PHP_SELF']); ?>", 398 data: "ajax=photo_js&u=<?php echo urlencode($url)?>",plugins.php https://gitlab.com/Gashler/dp | PHP | 437 lines
57 if ( isset($_GET['from']) && 'import' == $_GET['from'] ) { 58 wp_redirect( self_admin_url("import.php?import=" . str_replace('-importer', '', dirname($plugin))) ); // overrides the ?error=true one above and redirects to the Imports page, stripping the -importer suffix 59 } else { 98 99 wp_redirect( self_admin_url("plugins.php?activate-multi=true&plugin_status=$status&paged=$page&s=$s") ); 100 exit; 224 225 $parent_file = 'plugins.php'; 226 231 <div class="wrap"> 232 <?php 233 $files_to_delete = $plugin_info = array(); 265 <?php if ( $have_non_network_plugins && is_network_admin() ) : ?> 266 <div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php echo _n( 'This plugin may be active on other sites in the network.', 'These plugins may be active on other sites in the network.', $plugins_to_delete ); ?></p></div> 267 <?php endif; ?>VideoController.php https://gitlab.com/macitsimsek/fastsubtitle | PHP | 644 lines
1<?php 2 25 $sorgu = $request['sorgu']; 26 $sorgu = str_replace(" ", "+", $sorgu); 27 $page = file_get_contents('http://www.imdb.com/find?q='.$sorgu); 131 return $name['data']['cast']; 132 return \GuzzleHttp\json_decode(file_get_contents('https://tr.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&formatversion=2&titles='.$name),true)['query']['pages'][0]['extract']; 133 } 136 $input = $request['search']; 137 $input = str_replace(' ','+',$input); 138 $name = \GuzzleHttp\json_decode(file_get_contents('https://en.wikipedia.org/w/api.php?action=query&list=search&utf8=&formatversion=2&format=json&srsearch='.$input),true); 139 foreach ($name['query']['search'] as $perName){ 140 $name = str_replace(' ','+',$perName['title']); 141 if($name==$input){ 141 if($name==$input){ 142 $content = \GuzzleHttp\json_decode(file_get_contents('https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&formatversion=2&titles='.$name),true)['query']['pages'][0]['extract']; 143 $tr = new TranslateClient('en','tr');DenemeController.php https://gitlab.com/macitsimsek/fastsubtitle | PHP | 390 lines
1<?php 2 125 foreach ($deneme as $item) { 126 $item->translatingSrtPath=str_replace('backend/translatingSrt/','',$item->translatingSrtPath); 127 $item->save(); 169 foreach ($deneme as $item) { 170 $item->personPicture=str_replace('backend/peopleImages/','',$item->personPicture); 171 $item->save(); 247 $input = $videoName." trailer"; 248 $input = str_replace(" ", "+", $input); 249 $page = file_get_contents('https://www.youtube.com/results?search_query='.$input); 300 } 301 return $links;https://tr.wikipedia.org/w/api.php?action=query&list=search&srsearch=The%20Big%20Bang%20Theory&utf8=&formatversion=2 302 302 303 //$name =\GuzzleHttp\json_decode(file_get_contents('https://tr.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&formatversion=2&titles=Tesla%20Motors'),true)['query']['pages'][0]['extract']; 304 $input = "The+Big+Bang+Theory";Slim.php https://gitlab.com/albertkeba/service | PHP | 1412 lines
1<?php 2/** 2/** 3 * Slim - a micro PHP 5 framework 4 * 111 { 112 $thisClass = str_replace(__NAMESPACE__.'\\', '', __CLASS__); 113 125 $className = substr($className, $lastNsPos + 1); 126 $fileName .= str_replace('\\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR; 127 } 127 } 128 $fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php'; 129date_helper.php https://gitlab.com/betanurlaila/UI_onlineshop | PHP | 796 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 88 * 89 * This function is identical to PHPs date() function, 90 * except that it allows date codes to be formatted using 112 113 $datestr = str_replace( 114 '%\\', 131 * 132 * As of PHP 5.2, the DateTime extension provides constants that 133 * serve for the exact same purpose and are used with date(). 136 * @deprecated 3.0.0 Use PHP's native date() instead. 137 * @link http://www.php.net/manual/en/class.datetime.php#datetime.constants.types 138 *oci8_driver.php https://gitlab.com/betanurlaila/UI_onlineshop | PHP | 682 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 159 */ 160 $this->dsn = str_replace(array("\n", "\r", "\t", ' '), '', $this->dsn); 161 173 // Legacy support for TNS in the hostname configuration field 174 $this->hostname = str_replace(array("\n", "\r", "\t", ' '), '', $this->hostname); 175 if (preg_match($valid_dsns['tns'], $this->hostname)) 208 209 $this->database = str_replace(array("\n", "\r", "\t", ' '), '', $this->database); 210 foreach ($valid_dsns as $regexp) 218 /* Well - OK, an empty string should work as well. 219 * PHP will try to use environment variables to 220 * determine which Oracle instance to connect to.template.php https://gitlab.com/endomorphosis/fusenews | PHP | 1145 lines
1<?php 2 7 function draw_subscribe($template_p) { 8 global $phpiCal_config, $getdate, $cal, $ALL_CALENDARS_COMBINED, $subscribe_path, $download_filename; 9 if ($cal != $ALL_CALENDARS_COMBINED && $subscribe_path != '' && $download_filename != '') { 9 if ($cal != $ALL_CALENDARS_COMBINED && $subscribe_path != '' && $download_filename != '') { 10 $this->page = str_replace('{SUBSCRIBE_PATH}', $subscribe_path, $this->page); 11 $this->page = str_replace('{DOWNLOAD_FILENAME}', $download_filename, $this->page); 17 function draw_admin() { 18 global $phpiCal_config, $getdate, $cal, $master_array, $is_loged_in; 19 $delete_table = ''; 35 $cal_tmp = urlencode($file); 36 $cal_displayname_tmp = str_replace("32", " ", $cal_filename_tmp); 37 48 49 $this->page = str_replace('{DELETE_TABLE}', $delete_table, $this->page); 50 } else {ical_parser.php https://gitlab.com/endomorphosis/fusenews | PHP | 518 lines
1<?php 2if (!defined('BASE')) define('BASE', './'); 2if (!defined('BASE')) define('BASE', './'); 3include_once(BASE.'functions/init.inc.php'); 4include_once(BASE.'functions/date_functions.php'); 4include_once(BASE.'functions/date_functions.php'); 5include_once(BASE.'functions/draw_functions.php'); 6include_once(BASE.'functions/parse/overlapping_events.php'); 6include_once(BASE.'functions/parse/overlapping_events.php'); 7include_once(BASE.'functions/timezones.php'); 8include_once(BASE.'functions/parse/recur_functions.php'); 11$parse_file = true; 12if ($phpiCal_config->save_parsed_cals == 'yes') { 13 if (sizeof ($cal_filelist) > 1) { 13 if (sizeof ($cal_filelist) > 1) { 14 $parsedcal = $phpiCal_config->tmp_dir.'/parsedcal-'.urlencode($cpath.'::'.$cal_filename).'-'.$this_year; 15 if (file_exists($parsedcal)) {end_vevent.php https://gitlab.com/endomorphosis/fusenews | PHP | 663 lines
1<?php 2/* end_vevent.php 180 case 'UNTIL': 181 $until = str_replace('T', '', $val); 182 $until = str_replace('Z', '', $until);view.html.php https://gitlab.com/julienv/joomleague | PHP | 538 lines
1<?php defined('_JEXEC') or die('Restricted access'); 2 4jimport('joomla.html.pane'); 5require_once (JLG_PATH_ADMIN .DS.'models'.DS.'match.php'); 6require_once(JPATH_COMPONENT.DS.'models'.DS.'results.php'); 110 foreach ($legresult as $temp){$string .= $temp.' : ';} 111 $string=substr_replace($string,'',-2); 112 $string.=') '; 116 { 117 $legresult1=str_replace(";","",$this->match->team1_result_split); 118 $legresult2=str_replace(";","",$this->match->team2_result_split);joomleague_legacy.php https://gitlab.com/julienv/joomleague | PHP | 328 lines
1<?php 2class JoomleagueConnector extends JLCalendar{ 33 } 34 $query = ($this->prefix != '') ? str_replace('#__', $this->prefix, $query) : $query; 35 $database = JFactory::getDbo(); 96 $query .= " ORDER BY p.birthday ASC"; 97 $query = ($this->prefix != '') ? str_replace('#__', $this->prefix, $query) : $query; 98 $database->setQuery($query); 115 global $mainframe; 116 if ($this->xparams->get('jlbirthdaypix', 0) == 1 AND $row->default_picture != '' AND file_exists($mainframe->getCfg('absolute_path').DS.str_replace('/', DS, $row->default_picture))) { 117 $linkit = 1; 262 263 $query = ($this->prefix != '') ? str_replace('#__', $this->prefix, $query) : $query; 264 $database->setQuery($query.$where.$limit);helper.php https://gitlab.com/julienv/joomleague | PHP | 406 lines
1<?php 2/** 14 15//require_once (JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php'); 16require_once (dirname(__FILE__).DS.'calendarClass.php'); 71 //set the link for the month, this will be the link for the calendar header (ex. December 2007) 72 $cal->monthLink=JRoute::_('index.php?option=com_joomleague_calendar' . '&year=' . $year . 73 '&month=' . $month . '&modid=' . $modid); 100 .$counter[$createdDate]['createdYear'].'-'.$counter[$createdDate]['createdMonth'].'-'.$counter[$createdDate]['createdDay'].'-'.$modid 101 .'\', \''.str_replace(' :: ', ': ',$title).'\', '.$inject.', '.$modid.');'; 102 //$cal->linklist[$createdDate]['click']= 'jlcnewDate('.$counter[$createdDate]['createdMonth'].",". $counter[$createdDate]['createdYear'].",".$modid."," .$day.');'; 124 ' WHERE match_id=\'' . $id . '\''; 125 $query = ($prefix != '') ? str_replace('#__', $prefix, $query) : $query; 126 $db = JFactory::getDbo(); 171 172class JLCalendar extends PHPCalendar 173{html.php https://gitlab.com/julienv/joomleague | PHP | 561 lines
1<?php 2/** 3 * @copyright Copyright (C) 2006-2014 joomleague.at. All rights reserved. 4 * @license GNU/GPL,see LICENSE.php 5 * Joomla! is free software. This version may have been modified pursuant 8 * other free or open source software licenses. 9 * See COPYRIGHT.php for copyright notices and details. 10 */ 31 public static function showMatchTime(&$game, &$config, &$overallconfig, &$project) 32 // overallconfig could be deleted here and replaced below by config as both array were merged in view.html.php 33 { 74 $match_begin=$output.' '; 75 $title=str_replace('%STARTTIME%',$match_begin,trim(htmlspecialchars($config['mark_now_playing_alt_text']))); 76 $title=str_replace('%ACTUALTIME%',self::mark_now_playing($thistime,$match_stamp,$config,$project),$title); 294<span class='hasTip' 295 title='<?php echo $toolTipTitle; ?> :: <?php echo $toolTipText; ?>'> 296 <?php echo JHtml::link($link,$boldStart.$playgroundName.$boldEnd); ?> </span>ctools_export_ui.class.php https://gitlab.com/endomorphosis/tactilevision | PHP | 1455 lines
1<?php 2// $Id: ctools_export_ui.class.php,v 1.1.2.20 2010/10/15 21:05:55 merlinofchaos Exp $ 13 * Fake constructor -- this is easier to deal with than the real 14 * constructor because we are retaining PHP4 compatibility, which 15 * would require all child classes to implement their own constructor. 34 $export_key = $this->plugin['export']['key']; 35 $title = (str_replace('%title', check_plain($item->{$export_key}), $title)); 36 } 132 case 'import': 133 return user_access('use PHP for block visibility'); 134 case 'revert':2012-83-066.html https://gitlab.com/bernagg/TI | HTML | 303 lines
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml"><head><title>My FIrst Facebook Cover</title><meta http-equiv="content-type" content="text/html; charset=utf-8" /><meta name="robots" content="INDEX,FOLLOW" /><meta name="description" content="Our site has hundreds off My FIrst facebookc overs made by our users. WE also have hundreds of My FIrst covers made by us for you. All our faceboko timeline covers are 100% free!" /><meta name="keywords" content="My FIrst,My FIrst covers,My FIrst facebook covers, My FIrst facebook cover" /><link rel="Shortcut Icon" href="images/icon.gif" type="image/x-icon" /><link href="http://www.firstcovers.com/style2.css?v=4" rel="stylesheet" type="text/css" /><link type="text/css" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/base/jquery-ui.css" rel="stylesheet" /><meta property="og:image" content="http://images.firstcovers.com/covers/flash/m/my_first-95122.jpg" /><meta property="fb:admins" content="514749628"/> <meta property="fb:app_id" content="256634997709164"/><meta name="google-site-verification" content="gt1Rglp9AtbrwIg3XJZveEesdaCL0VrwMi7aKyohWtY" /><link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /><!--[if lte IE 8]> 2<style> 10 11 function str_replace(search, replace, subject) { 12 return subject.split(search).join(replace); 24 25 $.post('http://www.firstcovers.com/facebook/setcookie_fb.php', { }); 26 37 function callback(response) { 38 window.location = str_replace('.html', '/add.html', document.URL); 39 //document.getElementById('msg').innerHTML = "Post ID: " + response['post_id']; 49 50 <form id="s-bForm" method="post" action="http://www.firstcovers.com/index.php?site=search"> 51 <input id="s-bInput" class="s-bInput" name="tag" type="text" value="Search for a cover here!" onclick="this.value = '';"> 63 } else { 64 $.post('http://www.fbanners.com/requests/lookup.php', {searchterm: inputString}, function(data) { 65 if(data.length > 0) {2012-61-130.html https://gitlab.com/bernagg/TI | HTML | 303 lines
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml"><head><title>first Facebook Cover</title><meta http-equiv="content-type" content="text/html; charset=utf-8" /><meta name="robots" content="INDEX,FOLLOW" /><meta name="description" content="Our site has hundreds off first facebookc overs made by our users. WE also have hundreds of first covers made by us for you. All our faceboko timeline covers are 100% free!" /><meta name="keywords" content="first,first covers,first facebook covers, first facebook cover" /><link rel="Shortcut Icon" href="images/icon.gif" type="image/x-icon" /><link href="http://www.firstcovers.com/style2.css?v=4" rel="stylesheet" type="text/css" /><link type="text/css" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/base/jquery-ui.css" rel="stylesheet" /><meta property="og:image" content="http://images.firstcovers.com/covers/flash/f/first-45873.jpg" /><meta property="fb:admins" content="514749628"/> <meta property="fb:app_id" content="256634997709164"/><meta name="google-site-verification" content="gt1Rglp9AtbrwIg3XJZveEesdaCL0VrwMi7aKyohWtY" /><link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /><!--[if lte IE 8]> 2<style> 10 11 function str_replace(search, replace, subject) { 12 return subject.split(search).join(replace); 24 25 $.post('http://www.firstcovers.com/facebook/setcookie_fb.php', { }); 26 37 function callback(response) { 38 window.location = str_replace('.html', '/add.html', document.URL); 39 //document.getElementById('msg').innerHTML = "Post ID: " + response['post_id']; 49 50 <form id="s-bForm" method="post" action="http://www.firstcovers.com/index.php?site=search"> 51 <input id="s-bInput" class="s-bInput" name="tag" type="text" value="Search for a cover here!" onclick="this.value = '';"> 63 } else { 64 $.post('http://www.fbanners.com/requests/lookup.php', {searchterm: inputString}, function(data) { 65 if(data.length > 0) {rewrite.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1730 lines
272 // This fixes things like #anchors, ?query=strings, missing 'www.', 273 // added 'www.', or added 'index.php/' that will mess up our WP_Query 274 // and return a false negative 285 if ( false !== strpos(home_url(), '://www.') && false === strpos($url, '://www.') ) 286 $url = str_replace('://', '://www.', $url); 287 291 292 // Strip 'index.php/' if we're not using path info permalinks 293 if ( !$wp_rewrite->using_index_permalinks() ) 293 if ( !$wp_rewrite->using_index_permalinks() ) 294 $url = str_replace('index.php/', '', $url); 295 297 // Chop off http://domain.com 298 $url = str_replace(home_url(), '', $url); 299 } else {post.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1419 lines
1<?php 2/** 20 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 21 '_edit_link' => 'post.php?post=%d', /* internal use only. don't use this when registering your own post type. */ 22 'capability_type' => 'post', 31 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 32 '_edit_link' => 'post.php?post=%d', /* internal use only. don't use this when registering your own post type. */ 33 'capability_type' => 'page', 46 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 47 '_edit_link' => 'media.php?attachment_id=%d', /* internal use only. don't use this when registering your own post type. */ 48 'capability_type' => 'post', 62 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 63 '_edit_link' => 'revision.php?revision=%d', /* internal use only. don't use this when registering your own post type. */ 64 'capability_type' => 'post', 207 if ( 0 === strpos($new_path, $uploads['basedir']) ) { 208 $new_path = str_replace($uploads['basedir'], '', $new_path); 209 $new_path = ltrim($new_path, '/');post-template.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1236 lines
1<?php 2/** 169 $content = apply_filters('the_content', $content); 170 $content = str_replace(']]>', ']]>', $content); 171 echo $content; 408 $classes[] = 'attachmentid-' . $post_id; 409 $classes[] = 'attachment-' . str_replace( $mime_prefix, '', $mime_type ); 410 } 442 $classes[] = 'page-template'; 443 $classes[] = 'page-template-' . sanitize_html_class( str_replace( '.', '-', get_post_meta( $page_id, '_wp_page_template', true ) ), '' ); 444 }media.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1397 lines
1<?php 2/** 146 if ( $intermediate = image_get_intermediate_size($id, $size) ) { 147 $img_url = str_replace(basename($img_url), $intermediate['file'], $img_url); 148 $width = $intermediate['width']; 154 if ( ($thumb_file = wp_get_attachment_thumb_file($id)) && $info = getimagesize($thumb_file) ) { 155 $img_url = str_replace(basename($img_url), basename($thumb_file), $img_url); 156 $width = $info[0]; 233/** 234 * Load an image from a string, if PHP supports it. 235 * 330 * @param bool $crop Optional, default is false. Whether to crop image or resize. 331 * @return bool|array False, on failure. Returned array matches parameters for imagecopyresampled() PHP function. 332 */ 389 * 390 * Some functionality requires API to exist, so some PHP version may lose out 391 * support. This is not the fault of WordPress (where functionality islink-template.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1716 lines
1<?php 2/** 157 ); 158 $permalink = home_url( str_replace($rewritecode, $rewritereplace, $permalink) ); 159 $permalink = user_trailingslashit($permalink, 'single'); 195 $slug = get_page_uri($id); 196 $post_link = str_replace("%$post->post_type%", $slug, $post_link); 197 } 277 if ( ! $leavename ) 278 $link = str_replace('%pagename%', get_page_uri($id), $link); 279 $link = home_url($link); 342 if ( !empty($yearlink) ) { 343 $yearlink = str_replace('%year%', $year, $yearlink); 344 return apply_filters('year_link', home_url( user_trailingslashit($yearlink, 'year') ), $year); 366 if ( !empty($monthlink) ) { 367 $monthlink = str_replace('%year%', $year, $monthlink); 368 $monthlink = str_replace('%monthnum%', zeroise(intval($month), 2), $monthlink);formatting.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1441 lines
1<?php 2/** 79 // static strings 80 $curl = str_replace($static_characters, $static_replacements, $curl); 81 // regular expressions 159 160 $text = str_replace('<br />', '', $text); 161 $text = str_replace('<p>', "\n", $text); 161 $text = str_replace('<p>', "\n", $text); 162 $text = str_replace('</p>', '', $text); 163 190 $pee = preg_replace('!(</' . $allblocks . '>)!', "$1\n\n", $pee); 191 $pee = str_replace(array("\r\n", "\r"), "\n", $pee); // cross-platform newlines 192 if ( strpos($pee, '<object') !== false ) { 206 $pee = preg_replace('|<p><blockquote([^>]*)>|i', "<blockquote$1><p>", $pee); 207 $pee = str_replace('</blockquote></p>', '</p></blockquote>', $pee); 208 $pee = preg_replace('!<p>\s*(</?' . $allblocks . '[^>]*>)!', "$1", $pee);classes.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1700 lines
1<?php 2/** 5 * Some of the other classes are contained in other files. For example, the 6 * WordPress cache is in cache.php and the WordPress roles API is in 7 * capabilities.php. The third party libraries are contained in their own 157 $pathinfo_array = explode('?', $pathinfo); 158 $pathinfo = str_replace("%", "%25", $pathinfo_array[0]); 159 $req_uri = $_SERVER['REQUEST_URI']; 161 $req_uri = $req_uri_array[0]; 162 $self = $_SERVER['PHP_SELF']; 163 $home_path = parse_url(home_url()); 173 // requested permalink. 174 $req_uri = str_replace($pathinfo, '', rawurldecode($req_uri)); 175 $req_uri = trim($req_uri, '/'); 201 // Don't try to match against AtomPub calls 202 if ( $req_uri == 'wp-app.php' ) 203 break;class-IXR.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 908 lines
1<?php 2/** 11 * @link http://scripts.incutio.com/xmlrpc/ Site 12 * @link http://scripts.incutio.com/xmlrpc/manual.php Manual 13 * @license BSD License http://www.opensource.org/licenses/bsd-license.php 61 } 62 // If it is a normal PHP object convert it in to a struct 63 if (is_object($this->data)) { 162 $header = preg_replace( '/<\?xml.*?\?'.'>/', '', substr( $this->message, 0, 100 ), 1 ); 163 $this->message = substr_replace($this->message, $header, 0, 100); 164 if (trim($this->message) == '') { 412 'faults_interop' => array( 413 'specUrl' => 'http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php', 414 'specVersion' => 20010516category-template.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1009 lines
1<?php 2/** 34 35 $catlink = str_replace( '%category%', $category_nicename, $catlink ); 36 $catlink = home_url( user_trailingslashit( $catlink, 'category' ) );nusoapmime.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 501 lines
1<?php 2/* 2/* 3$Id: nusoapmime.php,v 1.12 2007/04/17 16:34:03 snichol Exp $ 4 4 5NuSOAP - Web Services Toolkit for PHP 6 39 40/*require_once('nusoap.php');*/ 41/* PEAR Mail_MIME library */ 41/* PEAR Mail_MIME library */ 42require_once('Mail/mimeDecode.php'); 43require_once('Mail/mimePart.php'); 50* @author Thanks to Guillaume and Henning Reich for posting great attachment code to the mail list 51* @version $Id: nusoapmime.php,v 1.12 2007/04/17 16:34:03 snichol Exp $ 52* @access publictheme.functions.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 843 lines
117 * © with xiligroup dev 118 * @todo - 1bigidea - shouldn't this load theme/functions.php rather than theme/theme.php???? (handy feature though) 119 */ 159 if(is_ssl()) { 160 $siteurl = str_replace("http://", "https://", $siteurl); 161 } 295 margin-left: <?php echo $thumbnail_width + 10; ?>px !important; 296 <?php /*_margin-left: <?php echo ($thumbnail_width/2) + 5; ?>px !important; */ ?> 297 min-height: <?php echo $thumbnail_height;?>px; 299 } 300 <?php endif; ?> 301 div.default_product_display div.textcol div.imagecol{ 362 width: <?php echo $single_thumbnail_width; ?>px; 363 height: <?php echo $single_thumbnail_height; ?>px; 364 }misc.functions.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 796 lines
1<?php 2/** 38 function wpsc_add_new_user($user_login,$user_pass, $user_email) { 39 require_once(ABSPATH . WPINC . '/registration.php'); 40 $errors = new WP_Error(); 194 if($new_title != '') { 195 $title = str_replace($aiosp_home_title, $new_title, $title); 196 }ajax.functions.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1076 lines
1<?php 2/** 103 if($state == true) { 104 $cart_messages[] = str_replace("[product_name]", stripslashes($product['name']), __('You just added "[product_name]" to your cart.', 'wpsc')); 105 } else { 108 } else if($wpsc_cart->get_remaining_quantity($product_id,$parameters['variation_values'], $parameters['quantity']) > 0) { 109 $cart_messages[] = str_replace("[number]", $wpsc_cart->get_remaining_quantity($product_id,$parameters['variation_values'], $parameters['quantity']), __('Sorry, but there are only [number] of this item in stock.', 'wpsc')); 110 } else { 110 } else { 111 $cart_messages[] = str_replace("[product_name]", $product['name'], __('Sorry, but the item "[product_name]" is out of stock.', 'wpsc')); 112 } 118 echo "if(jQuery('#fancy_notification_content')) {\n\r"; 119 echo " jQuery('#fancy_notification_content').html(\"".str_replace(array("\n","\r") , array('\n','\r'), addslashes(fancy_notification_content($cart_messages))). "\");\n\r"; 120 echo " jQuery('#loading_animation').css('display', 'none');\n\r"; 127 $cur_wpsc_theme_folder = apply_filters('wpsc_theme_folder',$wpsc_theme_path.WPSC_THEME_DIR); 128 include_once($cur_wpsc_theme_folder."/cart_widget.php"); 129 $output = ob_get_contents();presentation.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1070 lines
258 <?php _e("You just need to edit the appropriate files in the following location.", 'wpsc'); ?><br /><br /> 259 <span class='display-path'><strong><?php _e("Path:", 'wpsc'); ?></strong> <?php echo str_replace(ABSPATH, "", WPSC_THEMES_PATH).WPSC_THEME_DIR."/"; ?> </span> 260 </p> 270 <p><?php _e("Please set the permissions to 775 on the following directory.", 'wpsc'); ?><br /><br /> 271 <span class='display-path'><strong><?php _e("Path:", 'wpsc'); ?></strong> <?php echo str_replace(ABSPATH, "", WPSC_THEMES_PATH).WPSC_THEME_DIR."/"; ?> </span></p> 272 <?php 275 <p><?php _e("Your theme files have not been moved. Until your theme files have been moved, we have disabled automatic upgrades.", 'wpsc');?> 276 <p><?php printf(__("Click here to <a href='%s'>Move your files</a> to a safe place", 'wpsc'), wp_nonce_url("admin.php?wpsc_admin_action=copy_themes", 'copy_themes') ); ?> </p> 277 <?php 360 ?> 361 <option value='grid' <?php echo $product_view3; ?>><?php echo __('Grid View', 'wpsc');?></option> 362 <?php 371 if(!function_exists('product_display_grid')) { 372 ?><a href='http://getshopped.org/extend/premium-upgrades/'><?php echo __('Purchase unavailable options', 'wpsc'); ?></a> <?php 373 }display-items.page.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 510 lines
347 ?> 348 <tr class="product-edit <?php echo ( wpsc_publish_status($product['id']) ) ? ' wpsc_published' : ' wpsc_not_published'; ?>" id="product-<?php echo $product['id']?>" > 349 <th class="check-column" scope="row"> 355 <td class="product-image "> 356 <img title='Drag to a new position' src='<?php echo $image_path; ?>' alt='<?php echo $product['name']; ?>' width='38' height='38' /> 357 </td> 361 ?> 362 <a class='edit-product' href='<?php echo $edit_product_url; ?>' title="ID #<?php echo $product['id']; ?>: <?php echo $product_name; ?>"><?php echo $product_name; ?></a> 363 <?php 364 if($product['publish'] != 1 ) { 365 ?> - <strong> <?php _e('Draft', 'wpsc'); ?> </strong> <?php 366 } 374 ?> 375 <img alt='<?php echo $product_alert['messages'];?>' title='<?php echo $product_alert['messages'];?>' class='product-alert-image' src='<?php echo WPSC_URL;?>/images/product-alert.jpg' alt='' /> 376 <?phpajax-and-init.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1154 lines
1<?php 2/** 51 $message = get_option('wpsc_trackingid_message'); 52 $message = str_replace('%trackid%',$trackingid,$message); 53 $message = str_replace('%shop_name%',get_option('blogname'),$message); 59 $subject = get_option('wpsc_trackingid_subject'); 60 $subject = str_replace('%shop_name%',get_option('blogname'),$subject); 61 wp_mail($email, $subject, $message,"From: ".get_option('return_email')." <".get_option('return_email').">");chronopay.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 508 lines
1<?php 2$nzshpcrt_gateways[$num]['name'] = 'Chronopay'; 43 { 44 $data['street'] = str_replace("\n",', ', $_POST['collected_data'][get_option('chronopay_form_address')]); 45 }wp-shopping-cart.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 537 lines
1<?php 2/* 23 24$v1 = str_replace(array('_','-','+'), '.', strtolower($wp_version)); 25$v1 = str_replace(array('alpha','beta','gamma'), array('a','b','g'), $v1); 39if(is_ssl()) { 40 $wpsc_siteurl = str_replace("http://", "https://", $wpsc_siteurl); 41} 47 if(stristr($plugin_url_parts['host'], $site_url_parts['host']) && stristr($site_url_parts['host'], $plugin_url_parts['host'])) { 48 $wpsc_plugin_url = str_replace("http://", "https://", $wpsc_plugin_url); 49 } 64 load plugin text domain for get_text files. Plugin language will be the same 65 as wordpress language defined in wp-config.php line 67 66*/ 110// start including the rest of the plugin here 111require_once(WPSC_FILE_PATH.'/wpsc-includes/wpsc_query.php'); 112require_once(WPSC_FILE_PATH.'/wpsc-includes/variations.class.php');admin-form-functions.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 992 lines
1<?php 2// ini_set('display_errors','1'); 9 $output .= "<div class='editing_this_group form_table'>"; 10 $output .= "<p>".str_replace("[categorisation]", htmlentities(stripslashes($product['name'])), __('You are editing the "[categorisation]" Category', 'wpsc'))."</p>\n\r"; 11 $output .= "<p><a href='' onclick='return showaddform()' class='add_category_link'><span>".str_replace(""[categorisation]"", "current", __('+ Add new category to the "[categorisation]" Group', 'wpsc'))."</span></a></p>"; 15 $output .=" <dt>Display Category Template Tag: </dt>\n\r"; 16 $output .=" <dd> <?php echo wpsc_display_products_page(array('category_url_name'=>'{$product['nice-name']}')); ?></dd>\n\r"; 17 $output .="</dl>\n\r"; 101 $output .= __('Height', 'wpsc').":<input type='text' size='6' name='height' value='".$imagetype[1]."' /> ".__('Width', 'wpsc').":<input type='text' size='6' name='width' value='".$imagetype[0]."' /><br /><span class='wpscsmall description'>$nzshpcrt_imagesize_info</span><br />\n\r"; 102 $output .= "<span class='wpscsmall description'>".__('You can upload thumbnail images for each group. To display Group details in your shop you must configure these settings under <a href="admin.php?page=wpsc-settings&tab=presentation">Presentation Settings</a>.', 'wpsc')."</span>\n\r"; 103 $output .= " </td>\n\r"; 110 $output .= __('Height', 'wpsc').":<input type='text' size='6' name='height' value='".get_option('product_image_height')."' /> ".__('Width', 'wpsc').":<input type='text' size='6' name='width' value='".get_option('product_image_width')."' /><br /><span class='wpscsmall description'>$nzshpcrt_imagesize_info</span><br />\n\r"; 111 $output .= "<span class='wpscsmall description'>".__('You can upload thumbnail images for each group. To display Group details in your shop you must configure these settings under <a href="admin.php?page=wpsc-settings&tab=presentation">Presentation Settings</a>.', 'wpsc')."</span>\n\r"; 112 $output .= " </td>\n\r"; 137 if(@extension_loaded('suhosin')) { 138 $output .= "<em>".__("The Target Markets feature has been disabled because you have the Suhosin PHP extension installed on this server. If you need to use the Target Markets feature then disable the suhosin extension, if you can not do this, you will need to contact your hosting provider. 139 ",'wpsc')."</em>";wp-cycle.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 470 lines
263 <input type="hidden" name="wp_cycle_images[<?php echo $image; ?>][id]" value="<?php echo $data['id']; ?>" /> 264 <input type="hidden" name="wp_cycle_images[<?php echo $image; ?>][file]" value="<?php echo $data['file']; ?>" /> 265 <input type="hidden" name="wp_cycle_images[<?php echo $image; ?>][file_url]" value="<?php echo $data['file_url']; ?>" /> 265 <input type="hidden" name="wp_cycle_images[<?php echo $image; ?>][file_url]" value="<?php echo $data['file_url']; ?>" /> 266 <input type="hidden" name="wp_cycle_images[<?php echo $image; ?>][thumbnail]" value="<?php echo $data['thumbnail']; ?>" /> 267 <input type="hidden" name="wp_cycle_images[<?php echo $image; ?>][thumbnail_url]" value="<?php echo $data['thumbnail_url']; ?>" /> 268 <th scope="row" class="column-slug"><img src="<?php echo $data['thumbnail_url']; ?>" /></th> 269 <td><input type="text" name="wp_cycle_images[<?php echo $image; ?>][image_links_to]" value="<?php echo $data['image_links_to']; ?>" size="35" /></td> 270 <td class="column-slug"><input type="submit" class="button-primary" value="Update" /> <a href="?page=wp-cycle&delete=<?php echo $image; ?>" class="button">Delete</a></td> 288 <form method="post" action="options.php"> 289 <?php settings_fields('wp_cycle_settings'); ?> 290 <?php global $wp_cycle_settings; $options = $wp_cycle_settings; ?> 349 <?php foreach((array)$wp_cycle_defaults as $key => $value) : ?> 350 <input type="hidden" name="wp_cycle_settings[<?php echo $key; ?>]" value="<?php echo $value; ?>" /> 351 <?php endforeach; ?>plugin.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1257 lines
179 180function newsletter_phpmailer_init($phpmailer) { 181 $options_email = get_option('newsletter_email'); 361 newsletter_save_batch_file($batch); 362 remove_action('phpmailer_init','newsletter_phpmailer_init'); 363 if (newsletter_has_extras('1.0.4')) newsletter_close_mail(); 367 368 remove_action('phpmailer_init','newsletter_phpmailer_init'); 369 if (newsletter_has_extras('1.0.4')) newsletter_close_mail(); 382 newsletter_save_batch_file($batch); 383 remove_action('phpmailer_init','newsletter_phpmailer_init'); 384 if (newsletter_has_extras('1.0.4')) newsletter_close_mail(); 388 389 remove_action('phpmailer_init','newsletter_phpmailer_init'); 390 if (newsletter_has_extras('1.0.4')) newsletter_close_mail();RCCWP_CustomWritePanel.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 685 lines
1<?php 2/** 45 * @param array $standardFields a list of standard fields ids that are to be displayed in 46 * in the panel. Use $STANDARD_FIELDS defined in RCCWP_Constant.php 47 * @param array $categories array of category ids that are checked by default when the user 54 function Create($name, $description = '', $standardFields = array(), $categories = array(), $display_order = 1, $type = FALSE, $createDefaultGroup=true,$single_post = 0, $default_theme_page = NULL, $default_parent_page = NULL) { 55 include_once('RC_Format.php'); 56 global $wpdb; 105 if ($createDefaultGroup){ 106 include_once('RCCWP_CustomGroup.php'); 107 RCCWP_CustomGroup::Create($customWritePanelId, '__default', false, false); 282 * Create a capability name for a write panel given its name. This function is 283 * copied from WP's sanitize_title_with_dashes($title) (formatting.php) 284 * 288 function GetCapabilityName($customWritePanelName) { 289 // copied from WP's sanitize_title_with_dashes($title) (formatting.php) 290 $capabilityName = strip_tags($customWritePanelName);RCCWP_CustomField.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 508 lines
1<?php 2/** 25 * 26 * @param integer $type the type of the field. Use $FIELD_TYPES defined in RCCWP_Constant.php 27 * @param array $options array of strings that represent the list of the field if 37 $name = addslashes($name); 38 $name = str_replace(" ","_",$name); 39 219 global $wpdb; 220 $customFieldName = str_replace(" ","_",$customFieldName); 221 $fieldMetaID = RCCWP_CustomField::GetMetaID($postId, $customFieldName, $groupIndex, $fieldIndex); 366 * doesn't allow users to save a post if they are null. 367 * @param integer $type the type of the field. Use $FIELD_TYPES defined in RCCWP_Constant.php 368 * @param array $options array of strings that represent the list of the field if 376 global $wpdb; 377 $name = str_replace(" ","_",$name); 378 $oldCustomField = RCCWP_CustomField::Get($customFieldId);sitemap-core.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1710 lines
1<?php 2/* 3 4 $Id: sitemap-core.php 246875 2010-05-29 07:22:02Z arnee $ 5 409 function EscapeXML($string) { 410 return str_replace ( array ( '&', '"', "'", '<', '>'), array ( '&' , '"', ''' , '<' , '>'), $string); 411 }calendar.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1268 lines
1<?php 2/* 146 $cal_output = calendar(); 147 $content = str_replace('{CALENDAR}',$cal_output,$content); 148 } 157 $cal_output = '<span class="page-upcoming-events">'.upcoming_events().'</span>'; 158 $content = str_replace('{UPCOMING_EVENTS}',$cal_output,$content); 159 } 166 $cal_output = '<span class="page-todays-events">'.todays_events().'</span>'; 167 $content = str_replace('{TODAYS_EVENTS}',$cal_output,$content); 168 }misc.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 615 lines
1<?php 2/** 156 157 // Using win_is_writable() instead of is_writable() because of a bug in Windows PHP 158 if ( ( ! file_exists($web_config_file) && win_is_writable($home_path) && $wp_rewrite->using_mod_rewrite_permalinks() ) || win_is_writable($web_config_file) ) { 222function url_shorten( $url ) { 223 $short_url = str_replace( 'http://', '', stripslashes( $url )); 224 $short_url = str_replace( 'www.', '', $short_url ); 332 333 $option = str_replace('-', '_', $option); 334 335 $map_option = $option; 336 $type = str_replace('edit_', '', $map_option); 337 $type = str_replace('_per_page', '', $type); 387 /* First we check if the DOMDocument class exists. If it does not exist, 388 * which is the case for PHP 4.X, then we cannot easily update the xml configuration file, 389 * hence we just bail out and tell user that pretty permalinks cannot be used.file.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1039 lines
20 'archive.php' => __( 'Archives' ), 21 'author.php' => __( 'Author Template' ), 22 'tag.php' => __( 'Tag Template' ), 35 'application.php' => __('Application Attachment Template'), 36 'my-hacks.php' => __( 'my-hacks.php (legacy hacks support)' ), 37 '.htaccess' => __( '.htaccess (for rewrite rules )' ), 38 // Deprecated files 39 'wp-layout.css' => __( 'Stylesheet' ), 'wp-comments.php' => __( 'Comments Template' ), 'wp-comments-popup.php' => __( 'Popup Comments Template' )); 40 298 else 299 $error_msg = __( 'File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.' ); 300 return call_user_func($upload_error_handler, $file, $error_msg); 381 382 // Courtesy of php.net, the strings that describe the error indicated in $_FILES[{form field}]['error']. 383 $upload_error_strings = array( false,press-this.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 610 lines
139 <a href="#" class="select"> 140 <img src="<?php echo esc_url($image); ?>" alt="<?php echo esc_attr(__('Click to insert.')); ?>" title="<?php echo esc_attr(__('Click to insert.')); ?>" /> 141 </a> 143 144 <p id="options"><a href="#" class="select button"><?php _e('Insert Image'); ?></a> <a href="#" class="cancel button"><?php _e('Cancel'); ?></a></p> 145 <?php break; 293 } 294 jQuery('#extra-fields').html('<div class="postbox"><h2>Add Photos <small id="photo_directions">(<?php _e("click images to select") ?>)</small></h2><ul class="actions"><li><a href="#" id="photo-add-url" class="thickbox button"><?php _e("Add from URL") ?> +</a></li></ul><div class="inside"><div class="titlewrap"><div id="img_container"></div></div><p id="options"><a href="#" class="close button"><?php _e('Cancel'); ?></a><a href="#" class="refresh button"><?php _e('Refresh'); ?></a></p></div>'); 295 jQuery('#img_container').html(strtoappend); 318addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}; 319var userSettings = {'url':'<?php echo SITECOOKIEPATH; ?>','uid':'<?php if ( ! isset($current_user) ) $current_user = wp_get_current_user(); echo $current_user->ID; ?>','time':'<?php echo time() ?>'}; 320var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>', pagenow = 'press-this'; 361 case 'video' : 362 jQuery('#extra-fields').load('<?php echo esc_url($_SERVER['PHP_SELF']); ?>', { ajax: 'video', s: '<?php echo esc_attr($selection); ?>'}, function() { 363 <?phpplugins.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 785 lines
54 if ( 'unexpected_output' == $result->get_error_code() ) { 55 $redirect = 'plugins.php?error=true&charsout=' . strlen($result->get_error_data()) . '&plugin=' . $plugin; 56 wp_redirect(add_query_arg('_error_nonce', wp_create_nonce('plugin-activation-error_' . $plugin), $redirect)); 68 if ( isset($_GET['from']) && 'import' == $_GET['from'] ) { 69 wp_redirect("import.php?import=" . str_replace('-importer', '', dirname($plugin)) ); // overrides the ?error=true one above and redirects to the Imports page, striping the -importer suffix 70 } else { 97 98 wp_redirect("plugins.php?activate-multi=true&plugin_status=$status&paged=$page"); 99 exit; 211 wp_enqueue_script('jquery'); 212 require_once('./admin-header.php'); 213 ?> 214 <div class="wrap"> 215 <?php 216 $files_to_delete = $plugin_info = array();ms-edit.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 632 lines
1<?php 2/** 9 10require_once( './admin.php' ); 11 15if ( empty( $_GET['action'] ) ) 16 wp_redirect( admin_url( 'ms-admin.php' ) ); 17 31 if ( empty( $_POST ) ) 32 wp_die( sprintf( __( 'You probably need to go back to the <a href="%s">options page</a>.', esc_url( admin_url( 'ms-options.php' ) ) ) ) ); 33 48 if ( $_POST['limited_email_domains'] != '' ) { 49 $limited_email_domains = str_replace( ' ', "\n", $_POST['limited_email_domains'] ); 50 $limited_email_domains = split( "\n", stripslashes( $limited_email_domains ) ); 135 136 wp_redirect( add_query_arg( 'updated', 'true', admin_url( 'ms-options.php' ) ) ); 137 exit();custom-header.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 721 lines
343 <?php if ( $color = get_theme_mod('header_textcolor', HEADER_TEXTCOLOR) ) { ?> 344 pickColor('#<?php echo $color; ?>'); 345 <?php } ?> 351</script> 352<?php 353 } 396 maxHeight: <?php echo HEADER_IMAGE_HEIGHT; ?>, 397 maxWidth: <?php echo HEADER_IMAGE_WIDTH; ?>, 398 onInit: function () { 445 ?> 446 <div id="headimg" style="max-width:<?php echo HEADER_IMAGE_WIDTH; ?>px;height:<?php echo HEADER_IMAGE_HEIGHT; ?>px;background-image:url(<?php esc_url ( header_image() ) ?>);"> 447 <?php 452 ?> 453 <h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php bloginfo('url'); ?>"><?php bloginfo( 'name' ); ?></a></h1> 454 <div id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>wp-app.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1611 lines
1<?php 2/** 15/** Set up WordPress environment */ 16require_once('./wp-load.php'); 17 18/** Atom Publishing Protocol Class */ 19require_once(ABSPATH . WPINC . '/atomlib.php'); 20 21/** Admin Image API for metadata updating */ 22require_once(ABSPATH . '/wp-admin/includes/image.php'); 23 23 24$_SERVER['PATH_INFO'] = preg_replace( '/.*\/wp-app\.php/', '', $_SERVER['REQUEST_URI'] ); 25 72function wa_posts_where_include_drafts_filter($where) { 73 $where = str_replace("post_status = 'publish'","post_status = 'publish' OR post_status = 'future' OR post_status = 'draft' OR post_status = 'inherit'", $where); 74 return $where;PrettyPageHandler.php https://gitlab.com/lighty/whoops | PHP | 559 lines
2/** 3 * Whoops - php errors for cool kids 4 * @author Filipe Dobreira <http://github.com/filp> 75 "macvim" => "mvim://open/?url=file://%file&line=%line", 76 "phpstorm" => "phpstorm://open?file=%file&line=%line", 77 ); 86 $this->editors['xdebug'] = function ($file, $line) { 87 return str_replace(array('%f', '%l'), array($file, $line), ini_get('xdebug.file_link_format')); 88 }; 102 // @todo: Make this more robust 103 if (php_sapi_name() === 'cli') { 104 // Help users who have been relying on an internal test value 135 if ($inspector->getException() instanceof \ErrorException) { 136 // ErrorExceptions wrap the php-error types within the "severity" property 137 $code = Misc::translateErrorCode($inspector->getException()->getSeverity());SMimeSignerTest.php https://gitlab.com/fiesta-framework/Mail | PHP | 511 lines
1<?php 2 2 3class Swift_Signers_SMimeSignerTest extends \PHPUnit_Framework_TestCase 4{ 16 17 $this->samplesDir = str_replace('\\', '/', realpath(__DIR__.'/../../../_samples/')).'/'; 18 } 373 374 $expectedBody = str_replace("\n", "\r\n", $expectedBody); 375 if (!preg_match('%'.$expectedBody.'*%m', $entityString, $entities)) {PrettyPageHandler.php https://gitlab.com/fiesta-framework/Documentation | PHP | 576 lines
1<?php 2/** 2/** 3 * Whoops - php errors for cool kids 4 * @author Filipe Dobreira <http://github.com/filp> 84 $this->editors['xdebug'] = function ($file, $line) { 85 return str_replace(array('%f', '%l'), array($file, $line), ini_get('xdebug.file_link_format')); 86 }; 100 // @todo: Make this more robust 101 if (php_sapi_name() === 'cli') { 102 // Help users who have been relying on an internal test value 117 118 $templateFile = $this->getResource("views/layout.html.php"); 119 $cssFile = $this->getResource("css/whoops.base.css"); 145 // Template paths: 146 "header" => $this->getResource("views/header.html.php"), 147 "frame_list" => $this->getResource("views/frame_list.html.php"),smarty_resource.php https://gitlab.com/fiesta-framework/Documentation | PHP | 913 lines
1<?php 2/** 47 'eval' => true, 48 'php' => true 49 ); 156 157 $compiled->filepath = $_compile_dir . $_filepath . '.' . $compiled->source->type . $_basename . $_cache . '.php'; 158 } 171 // don't we all just love windows? 172 $_path = str_replace('\\', '/', $_path); 173 } 194 195 $_path = substr_replace($_path, '', $_pos, $_parent + 3 - $_pos); 196 } 199 // don't we all just love windows? 200 $_path = str_replace('/', '\\', $_path); 201 }smarty_internal_utility.php https://gitlab.com/fiesta-framework/Documentation | PHP | 837 lines
1<?php 2/** 2/** 3 * Project: Smarty: the PHP compiling template engine 4 * File: smarty_internal_utility.php 215 if ($tpl->source->exists) { 216 $_resource_part_1 = basename(str_replace('^', '/', $tpl->compiled->filepath)); 217 $_resource_part_1_length = strlen($_resource_part_1); 221 222 $_resource_part_2 = str_replace('.php', '.cache.php', $_resource_part_1); 223 $_resource_part_2_length = strlen($_resource_part_2); 229 if (isset($_compile_id)) { 230 $_compile_id_part = str_replace('\\', '/', $_compile_dir . $_compile_id . $_dir_sep); 231 $_compile_id_part_length = strlen($_compile_id_part); 235 $_compileDirs = new RecursiveDirectoryIterator($_dir); 236 // NOTE: UnexpectedValueException thrown for PHP >= 5.3 237 }smarty_internal_templatecompilerbase.php https://gitlab.com/fiesta-framework/Documentation | PHP | 823 lines
1<?php 2 214 { 215 $this->nocache_hash = str_replace(array('.', ','), '-', uniqid(rand(), true)); 216 } 243 if (!$this->suppressHeader) { 244 $template_header .= "<?php /* Smarty version " . Smarty::SMARTY_VERSION . ", created on " . strftime("%Y-%m-%d %H:%M:%S") . "\n"; 245 $template_header .= " compiled from \"" . $this->template->source->filepath . "\" */ ?>\n";smarty_internal_template.php https://gitlab.com/fiesta-framework/Documentation | PHP | 738 lines
1<?php 2/** 235 $this->properties['cache_lifetime'] = $this->cache_lifetime; 236 $this->properties['unifunc'] = 'content_' . str_replace(array('.', ','), '_', uniqid('', true)); 237 $content = $this->createTemplateCodeFrame($content, true); 362 if (!empty($this->required_plugins['compiled'])) { 363 $plugins_string = '<?php '; 364 foreach ($this->required_plugins['compiled'] as $tmp) { 377 $this->has_nocache_code = true; 378 $plugins_string .= "<?php echo '/*%%SmartyNocache:{$this->properties['nocache_hash']}%%*/<?php \$_smarty = \$_smarty_tpl->smarty; "; 379 foreach ($this->required_plugins['nocache'] as $tmp) {smarty_internal_compile_block.php https://gitlab.com/fiesta-framework/Documentation | PHP | 444 lines
1<?php 2 178 if (strpos($compiler->template->block_data[$_name]['source'], self::parent) !== false) { 179 $_output = str_replace(self::parent, $compiler->parser->current_buffer->to_smarty_php(), $_tpl->compiler->compileTemplate($_tpl, $nocache)); 180 } elseif ($compiler->template->block_data[$_name]['mode'] == 'prepend') { 180 } elseif ($compiler->template->block_data[$_name]['mode'] == 'prepend') { 181 $_output = $_tpl->compiler->compileTemplate($_tpl, $nocache) . $compiler->parser->current_buffer->to_smarty_php(); 182 } elseif ($compiler->template->block_data[$_name]['mode'] == 'append') { 182 } elseif ($compiler->template->block_data[$_name]['mode'] == 'append') { 183 $_output = $compiler->parser->current_buffer->to_smarty_php() . $_tpl->compiler->compileTemplate($_tpl, $nocache); 184 } elseif (!empty($compiler->template->block_data[$_name])) { 307 $compiler->template->block_data[$name1]['source'] = 308 str_replace(Smarty_Internal_Compile_Block::parent, Smarty_Internal_Compile_Block::$block_data[$name1]['source'], $compiler->template->block_data[$name1]['source']); 309 } elseif ($compiler->template->block_data[$name1]['mode'] == 'prepend') {Text.php https://gitlab.com/fiesta-framework/Documentation | PHP | 733 lines
1<?php 2 9 $text = parent::realText($maxNbChars, $indexSize); 10 $text = str_replace('„', '', $text); 11 11 12 return str_replace('“', '', $text); 13 }KernelTest.php https://gitlab.com/ealexis.t/trends | PHP | 816 lines
1<?php 2 23 24class KernelTest extends \PHPUnit_Framework_TestCase 25{ 235 $source = <<<'EOF' 236<?php 237 275 $expected = <<<'EOF' 276<?php 277$string = 'string should not be modified'; 307 if ('\\' === DIRECTORY_SEPARATOR) { 308 $expected = str_replace("\r\n", "\n", $expected); 309 $output = str_replace("\r\n", "\n", $output);ExceptionHandler.php https://gitlab.com/ealexis.t/trends | PHP | 414 lines
1<?php 2 19 * 20 * It is mostly useful in debug mode to replace the default PHP/XDebug 21 * output with something prettier and more useful. 107 if (null === $this->handler || $exception instanceof OutOfMemoryException) { 108 $this->sendPhpResponse($exception); 109 120 121 $this->sendPhpResponse($exception); 122 while (null === $this->caughtBuffer && ob_end_flush()) { 127 if ($this->caughtLength) { 128 // use substr_replace() instead of substr() for mbstring overloading resistance 129 $cleanBuffer = substr_replace($buffer, '', 0, $this->caughtLength); 147 if (!$caughtLength) { 148 // All handlers failed. Let PHP handle that now. 149 throw $exception;ApplicationTest.php https://gitlab.com/ealexis.t/trends | PHP | 1093 lines
1<?php 2 39 self::$fixturesPath = realpath(__DIR__.'/Fixtures/'); 40 require_once self::$fixturesPath.'/FooCommand.php'; 41 require_once self::$fixturesPath.'/Foo1Command.php'; 41 require_once self::$fixturesPath.'/Foo1Command.php'; 42 require_once self::$fixturesPath.'/Foo2Command.php'; 43 require_once self::$fixturesPath.'/Foo3Command.php'; 43 require_once self::$fixturesPath.'/Foo3Command.php'; 44 require_once self::$fixturesPath.'/Foo4Command.php'; 45 require_once self::$fixturesPath.'/Foo5Command.php'; 45 require_once self::$fixturesPath.'/Foo5Command.php'; 46 require_once self::$fixturesPath.'/FoobarCommand.php'; 47 require_once self::$fixturesPath.'/BarBucCommand.php'; 53 { 54 return str_replace(PHP_EOL, "\n", $text); 55 }SMimeSignerTest.php https://gitlab.com/ealexis.t/trends | PHP | 554 lines
1<?php 2 2 3class Swift_Signers_SMimeSignerTest extends \PHPUnit_Framework_TestCase 4{ 16 17 $this->samplesDir = str_replace('\\', '/', realpath(__DIR__.'/../../../_samples/')).'/'; 18 }Token.php https://gitlab.com/ealexis.t/trends | PHP | 846 lines
74 75abstract class PHP_TokenWithScope extends PHP_Token 76{ 230 231abstract class PHP_Token_Includes extends PHP_Token 232{ 273 $this->type = strtolower( 274 str_replace('PHP_Token_', '', get_class($tokens[$this->id])) 275 ); 280 281class PHP_Token_FUNCTION extends PHP_TokenWithScopeAndVisibility 282{ 443 444class PHP_Token_INTERFACE extends PHP_TokenWithScopeAndVisibility 445{Container.php https://gitlab.com/ealexis.t/trends | PHP | 524 lines
1<?php 2/** 12 * obtain it through the world-wide-web, please send an email 13 * to padraic@php.net so we can send you a copy immediately. 14 * 123 if (is_string($arg) && strpos($arg, ',') && !strpos($arg, ']')) { 124 $interfaces = explode(',', str_replace(' ', '', $arg)); 125 foreach ($interfaces as $i) { 140 $name = array_shift($args); 141 $name = str_replace('alias:', '', $name); 142 $builder->addTarget('stdClass'); 146 $name = array_shift($args); 147 $name = str_replace('overload:', '', $name); 148 $builder->setInstanceMock(true); 158 $class = $parts[0]; 159 $parts[1] = str_replace(' ', '', $parts[1]); 160 $partialMethods = explode(',', strtolower(rtrim($parts[1], ']')));FormBuilder.php https://gitlab.com/ealexis.t/trends | PHP | 1211 lines
1<?php 2 237 { 238 return $value ?: ucwords(str_replace('_', ' ', $name)); 239 }Factory.php https://gitlab.com/ealexis.t/trends | PHP | 974 lines
1<?php 2 70 */ 71 protected $extensions = ['blade.php' => 'blade', 'php' => 'php']; 72 184 if (strpos($name, $delimiter) === false) { 185 return str_replace('/', '.', $name); 186 } 189 190 return $namespace.$delimiter.str_replace('/', '.', $name); 191 }Validator.php https://gitlab.com/ealexis.t/trends | PHP | 1708 lines
1<?php 2 304 305 $pattern = str_replace('\*', '[^\.]+', preg_quote($attribute)); 306 353 354 $pattern = str_replace('\*', '[^\.]+', preg_quote($attribute)); 355helpers.php https://gitlab.com/ealexis.t/trends | PHP | 893 lines
1<?php 2 344 345 return basename(str_replace('\\', '/', $class)); 346 }UrlGenerator.php https://gitlab.com/ealexis.t/trends | PHP | 754 lines
1<?php 2 208 209 // Once we get the root URL, we will check to see if it contains an index.php 210 // file in the paths. If it does, we will remove it since it is not needed 226 { 227 // Once we get the root URL, we will check to see if it contains an index.php 228 // file in the paths. If it does, we will remove it since it is not needed 235 /** 236 * Remove the index.php file from a path. 237 * 242 { 243 $i = 'index.php'; 244 244 245 return Str::contains($root, $i) ? str_replace('/'.$i, '', $root) : $root; 246 }SQLiteGrammar.php https://gitlab.com/ealexis.t/trends | PHP | 675 lines
1<?php 2 42 { 43 return 'pragma table_info('.str_replace('.', '__', $table).')'; 44 }FontMetrics.php https://gitlab.com/oritadeu/dompdf | PHP | 603 lines
32 * with FontMetrics::saveFontFamilies(). 33 * This is typically done only from command line with load_font.php on converting 34 * ttf fonts to ufm with php-font-lib. 35 */ 36 const CACHE_FILE = "dompdf_font_family_cache.php"; 37 53 * 54 * Usually cached by the {@link load_font.php} script 55 * 94 // replace the path to the DOMPDF font directories with the corresponding constants (allows for more portability) 95 $cacheData = sprintf("<?php return array (%s", PHP_EOL); 96 foreach ($this->fontLookup as $family => $variants) { 100 $path = str_replace('\'' . $this->getOptions()->getFontDir() , '$fontDir . \'' , $path); 101 $path = str_replace('\'' . $this->getOptions()->getRootDir() , '$rootDir . \'' , $path); 102 $cacheData .= sprintf(" '%s' => %s,%s", $variant, $path, PHP_EOL);abstract-wc-order.php https://gitlab.com/JoelSanchez/lampadario | PHP | 1602 lines
1<?php 2/** 263 foreach ( $args['variation'] as $key => $value ) { 264 wc_add_order_item_meta( $item_id, str_replace( 'attribute_', '', $key ), $value ); 265 } 319 foreach ( $args['variation'] as $key => $value ) { 320 wc_update_order_item_meta( $item_id, str_replace( 'attribute_', '', $key ), $value ); 321 }elFinderVolumeLocalFileSystem.class.php https://gitlab.com/rohiri/SIINDI | PHP | 835 lines
1<?php 2 79 if (strpos($this->tmbPath, $this->root) === 0) { 80 $this->tmbURL = $this->URL.str_replace(DIRECTORY_SEPARATOR, '/', substr($this->tmbPath, strlen($this->root)+1)); 81 if (preg_match("|[^/?&=]$|", $this->tmbURL)) {Profiler.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 558 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 138 { 139 $key = ucwords(str_replace(array('_', '-'), ' ', $key)); 140 $output .= "<tr><td style='padding:5px;width:50%;color:#000;font-weight:bold;background-color:#ddd;'>".$key." </td><td style='padding:5px;width:50%;color:#900;font-weight:normal;background-color:#ddd;'>".$val."</td></tr>\n"; 226 { 227 $val = str_replace($bold, '<strong>'.$bold.'</strong>', $val); 228 }postgre_driver.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 703 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 298 { 299 $str = str_replace( array('%', '_', $this->_like_escape_chr), 300 array($this->_like_escape_chr.'%', $this->_like_escape_chr.'_', $this->_like_escape_chr.$this->_like_escape_chr), 494 { 495 $str = $this->_escape_char. str_replace('.', $this->_escape_char.'.', $item); 496 503 { 504 $str = $this->_escape_char.str_replace('.', $this->_escape_char.'.'.$this->_escape_char, $item).$this->_escape_char; 505 }class-wp-rest-request.php https://gitlab.com/VTTE/sitios-vtte | PHP | 1016 lines
1<?php 2/** 26 * 27 * @link https://www.php.net/manual/en/class.arrayaccess.php 28 */ 182 $key = strtolower( $key ); 183 $key = str_replace( '-', '_', $key ); 184 364 * The order affects which parameters are checked when using get_param() and family. 365 * This acts similarly to PHP's `request_order` setting. 366 *module.tag.apetag.php https://gitlab.com/VTTE/sitios-vtte | PHP | 448 lines
1<?php 2 10// // 11// module.tag.apetag.php // 12// module for analyzing APE tags // 37 if (!getid3_lib::intValueSupported($info['filesize'])) { 38 $this->warning('Unable to check for APEtags because file is larger than '.round(PHP_INT_MAX / 1073741824).'GB'); 39 return false; 162 switch (strtolower($item_key)) { 163 // http://wiki.hydrogenaud.io/index.php?title=ReplayGain#MP3Gain 164 case 'replaygain_track_gain': 165 if (preg_match('#^([\\-\\+][0-9\\.,]{8})( dB)?$#', $thisfile_ape_items_current['data'][0], $matches)) { 166 $thisfile_replaygain['track']['adjustment'] = (float) str_replace(',', '.', $matches[1]); // float casting will see "0,95" as zero! 167 $thisfile_replaygain['track']['originator'] = 'unspecified'; 174 if (preg_match('#^([0-9\\.,]{8})$#', $thisfile_ape_items_current['data'][0], $matches)) { 175 $thisfile_replaygain['track']['peak'] = (float) str_replace(',', '.', $matches[1]); // float casting will see "0,95" as zero! 176 $thisfile_replaygain['track']['originator'] = 'unspecified';module.audio.flac.php https://gitlab.com/VTTE/sitios-vtte | PHP | 516 lines
1<?php 2 10// // 11// module.audio.flac.php // 12// module for analyzing FLAC and OggFLAC audio files // 12// module for analyzing FLAC and OggFLAC audio files // 13// dependencies: module.audio.ogg.php // 14// /// 17 18getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'module.audio.ogg.php', __FILE__, true); 19 141 if (!empty($info['flac']['VORBIS_COMMENT']['vendor'])) { 142 $info['audio']['encoder'] = str_replace('reference ', '', $info['flac']['VORBIS_COMMENT']['vendor']); 143 }getid3.php https://gitlab.com/VTTE/sitios-vtte | PHP | 1505 lines
19} 20// Workaround Bug #39923 (https://bugs.php.net/bug.php?id=39923) 21if (!defined('IMG_JPG') && defined('IMAGETYPE_JPEG')) { 23} 24if (!defined('ENT_SUBSTITUTE')) { // PHP5.3 adds ENT_IGNORE, PHP5.4 adds ENT_SUBSTITUTE 25 define('ENT_SUBSTITUTE', (defined('ENT_IGNORE') ? ENT_IGNORE : 8)); 28/* 29https://www.getid3.org/phpBB3/viewtopic.php?t=2114 30If you are running into a the problem where filenames with special characters are being handled 263 if (version_compare(PHP_VERSION, $required_php_version, '<')) { 264 $this->startup_error .= 'getID3() requires PHP v'.$required_php_version.' or higher - you are running v'.PHP_VERSION."\n"; 265 return; 437 // open local file 438 //if (is_readable($filename) && is_file($filename) && ($this->fp = fopen($filename, 'rb'))) { // see https://www.getid3.org/phpBB3/viewtopic.php?t=1720 439 if (($fp != null) && ((get_resource_type($fp) == 'file') || (get_resource_type($fp) == 'stream'))) {getid3.lib.php https://gitlab.com/VTTE/sitios-vtte | PHP | 1743 lines
1<?php 2 8// // 9// getid3.lib.php - part of getID3() // 10// see readme.txt for more details // 112 if (!$hasINT64 && !defined('PHP_INT_MIN')) { 113 define('PHP_INT_MIN', ~PHP_INT_MAX); 114 } 116 // if integers are 64-bit - no other check required 117 if ($hasINT64 || (($num <= PHP_INT_MAX) && ($num >= PHP_INT_MIN))) { 118 return true; 165 $exponent += ($pointpos - 1); 166 $binarypointnumber = str_replace('.', '', $binarypointnumber); 167 $binarypointnumber = $binarypointnumber[0].'.'.substr($binarypointnumber, 1); 509 // written by kcØhireability*com 510 // taken from http://www.php.net/manual/en/function.array-merge-recursive.php 511 if (!is_array($array1) || !is_array($array2)) {theme.php https://gitlab.com/VTTE/sitios-vtte | PHP | 1716 lines
1<?php 2/** 212function get_stylesheet_directory_uri() { 213 $stylesheet = str_replace( '%2F', '/', rawurlencode( get_stylesheet() ) ); 214 $theme_root_uri = get_theme_root_uri( $stylesheet ); 346function get_template_directory_uri() { 347 $template = str_replace( '%2F', '/', rawurlencode( get_template() ) ); 348 $theme_root_uri = get_theme_root_uri( $template ); 455 if ( 0 === strpos( $theme_root, WP_CONTENT_DIR ) ) { 456 $relative_theme_roots[ str_replace( WP_CONTENT_DIR, '', $theme_root ) ] = $theme_root; 457 } else {post-template.php https://gitlab.com/VTTE/sitios-vtte | PHP | 1566 lines
1<?php 2/** 15 */ 16function the_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 17 echo get_the_ID(); 26 */ 27function get_the_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 28 $post = get_post(); 253 $content = apply_filters( 'the_content', $content ); 254 $content = str_replace( ']]>', ']]>', $content ); 255 echo $content;pluggable.php https://gitlab.com/VTTE/sitios-vtte | PHP | 1508 lines
160 * 161 * @global PHPMailer $phpmailer 162 * 213 if ( ! ( $phpmailer instanceof PHPMailer ) ) { 214 require_once ABSPATH . WPINC . '/class-phpmailer.php'; 215 require_once ABSPATH . WPINC . '/class-smtp.php'; 215 require_once ABSPATH . WPINC . '/class-smtp.php'; 216 $phpmailer = new PHPMailer( true ); 217 } 481 * 482 * @param PHPMailer $phpmailer The PHPMailer instance (passed by reference). 483 */ 483 */ 484 do_action_ref_array( 'phpmailer_init', array( &$phpmailer ) ); 485ms-load.php https://gitlab.com/VTTE/sitios-vtte | PHP | 571 lines
48 if ( ! validate_file( $plugin ) // $plugin must validate as file. 49 && '.php' == substr( $plugin, -4 ) // $plugin must end with '.php'. 50 && file_exists( WP_PLUGIN_DIR . '/' . $plugin ) // $plugin must exist. 66 * To change the default message when a blog does not pass the check, 67 * use the wp-content/blog-deleted.php, blog-inactive.php and 68 * blog-suspended.php drop-ins. 95 if ( '1' == $blog->deleted ) { 96 if ( file_exists( WP_CONTENT_DIR . '/blog-deleted.php' ) ) { 97 return WP_CONTENT_DIR . '/blog-deleted.php'; 104 if ( file_exists( WP_CONTENT_DIR . '/blog-inactive.php' ) ) { 105 return WP_CONTENT_DIR . '/blog-inactive.php'; 106 } else { 419 // For a "subdomain" installation, redirect to the signup form specifically. 420 $destination .= 'wp-signup.php?new=' . str_replace( '.' . $current_site->domain, '', $domain ); 421 } elseif ( $subdomain ) {media.php https://gitlab.com/VTTE/sitios-vtte | PHP | 1393 lines
1<?php 2/** 224 if ( ! empty( $meta['sizes']['full'] ) ) { 225 $img_url = str_replace( $img_url_basename, $meta['sizes']['full']['file'], $img_url ); 226 $img_url_basename = $meta['sizes']['full']['file']; 237 if ( $intermediate ) { 238 $img_url = str_replace( $img_url_basename, $intermediate['file'], $img_url ); 239 $width = $intermediate['width']; 251 if ( $thumb_file && $info ) { 252 $img_url = str_replace( $img_url_basename, wp_basename( $thumb_file ), $img_url ); 253 $width = $info[0];link-template.php https://gitlab.com/VTTE/sitios-vtte | PHP | 1676 lines
1<?php 2/** 214 // This is not an API call because the permalink is based on the stored post_date value, 215 // which should be parsed as local time regardless of the default PHP timezone. 216 $date = explode( ' ', str_replace( array( '-', ':' ), ' ', $post->post_date ) ); 231 232 $permalink = home_url( str_replace( $rewritecode, $rewritereplace, $permalink ) ); 233 $permalink = user_trailingslashit( $permalink, 'single' ); 287 if ( ! $leavename ) { 288 $post_link = str_replace( "%$post->post_type%", $slug, $post_link ); 289 } 379 if ( ! $leavename ) { 380 $link = str_replace( '%pagename%', get_page_uri( $post ), $link ); 381 } 441 if ( ! $leavename ) { 442 $link = str_replace( '%postname%', $name, $link ); 443 }feed.php https://gitlab.com/VTTE/sitios-vtte | PHP | 791 lines
1<?php 2/** 189 190 /** This filter is documented in wp-includes/post-template.php */ 191 $content = apply_filters( 'the_content', get_the_content() ); 191 $content = apply_filters( 'the_content', get_the_content() ); 192 $content = str_replace( ']]>', ']]>', $content ); 193 /** 539 * 540 * @link http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.3.1 541 * 552 if ( ! function_exists( 'xml_parser_create' ) ) { 553 trigger_error( __( "PHP's XMLcomment-template.php https://gitlab.com/VTTE/sitios-vtte | PHP | 1459 lines
1<?php 2/** 266 */ 267function get_comment_author_IP( $comment_ID = 0 ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 268 $comment = get_comment( $comment_ID ); 279 */ 280 return apply_filters( 'get_comment_author_IP', $comment->comment_author_IP, $comment->comment_ID, $comment ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase 281} 291 */ 292function comment_author_IP( $comment_ID = 0 ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid 293 echo esc_html( get_comment_author_IP( $comment_ID ) ); 379 $display = ( '' != $linktext ) ? $linktext : $url; 380 $display = str_replace( 'http://www.', '', $display ); 381 $display = str_replace( 'http://', '', $display );class-wp.php https://gitlab.com/VTTE/sitios-vtte | PHP | 754 lines
1<?php 2/** 168 list( $pathinfo ) = explode( '?', $pathinfo ); 169 $pathinfo = str_replace( '%', '%25', $pathinfo ); 170 171 list( $req_uri ) = explode( '?', $_SERVER['REQUEST_URI'] ); 172 $self = $_SERVER['PHP_SELF']; 173 $home_path = trim( parse_url( home_url(), PHP_URL_PATH ), '/' ); 180 */ 181 $req_uri = str_replace( $pathinfo, '', $req_uri ); 182 $req_uri = trim( $req_uri, '/' ); 265 // If req_uri is empty or if it is a request for ourself, unset error. 266 if ( empty( $requested_path ) || $requested_file == $self || strpos( $_SERVER['PHP_SELF'], 'wp-admin/' ) !== false ) { 267 unset( $error, $_GET['error'] ); 268 269 if ( isset( $perma_query_vars ) && strpos( $_SERVER['PHP_SELF'], 'wp-admin/' ) !== false ) { 270 unset( $perma_query_vars );class-wp-widget.php https://gitlab.com/VTTE/sitios-vtte | PHP | 600 lines
1<?php 2/** 17 * @since 2.8.0 18 * @since 4.4.0 Moved to its own file from wp-includes/widgets.php 19 */ 149 /** 150 * PHP5 constructor. 151 * 176 /** 177 * PHP4 constructor. 178 * 213 } else { 214 return 'widget-' . $this->id_base . '[' . $this->number . '][' . substr_replace( $field_name, '][', $pos, strlen( '[' ) ); 215 } 230 public function get_field_id( $field_name ) { 231 return 'widget-' . $this->id_base . '-' . $this->number . '-' . trim( str_replace( array( '[]', '[', ']' ), array( '', '-', '' ), $field_name ), '-' ); 232 }class-wp-customize-setting.php https://gitlab.com/VTTE/sitios-vtte | PHP | 982 lines
1<?php 2/** 96 /** 97 * Callback to convert a Customize PHP setting value to a value that is JSON serializable. 98 * 171 * @type callable $sanitize_callback Callback to filter a Customize setting value in un-slashed form. 172 * @type callable $sanitize_js_callback Callback to convert a Customize PHP setting value to a value that is 173 * JSON serializable. 188 // Parse the ID for array keys. 189 $this->id_data['keys'] = preg_split( '/\[/', str_replace( ']', '', $this->id ) ); 190 $this->id_data['base'] = array_shift( $this->id_data['keys'] );class-simplepie.php https://gitlab.com/VTTE/sitios-vtte | PHP | 1796 lines
6require ABSPATH . WPINC . '/SimplePie/Cache.php'; 7require ABSPATH . WPINC . '/SimplePie/File.php'; 8require ABSPATH . WPINC . '/SimplePie/Sanitize.php'; 8require ABSPATH . WPINC . '/SimplePie/Sanitize.php'; 9require ABSPATH . WPINC . '/SimplePie/Registry.php'; 10require ABSPATH . WPINC . '/SimplePie/IRI.php'; 11require ABSPATH . WPINC . '/SimplePie/Locator.php'; 12require ABSPATH . WPINC . '/SimplePie/Content/Type/Sniffer.php'; 13require ABSPATH . WPINC . '/SimplePie/XML/Declaration/Parser.php'; 13require ABSPATH . WPINC . '/SimplePie/XML/Declaration/Parser.php'; 14require ABSPATH . WPINC . '/SimplePie/Parser.php'; 15require ABSPATH . WPINC . '/SimplePie/Item.php'; 27 28 $file = ABSPATH . WPINC . '/' . str_replace( '_', '/', $class ) . '.php'; 29 include $file;class-requests.php https://gitlab.com/VTTE/sitios-vtte | PHP | 980 lines
1<?php 2/** 2/** 3 * Requests for PHP 4 * 12/** 13 * Requests for PHP 14 * 143 144 $file = str_replace('_', '/', $class); 145 if (file_exists(dirname(__FILE__) . '/' . $file . '.php')) { 145 if (file_exists(dirname(__FILE__) . '/' . $file . '.php')) { 146 require_once(dirname(__FILE__) . '/' . $file . '.php'); 147 } 312 * - `useragent`: Useragent to send to the server 313 * (string, default: php-requests/$version) 314 * - `follow_redirects`: Should we follow 3xx redirects?author-template.php https://gitlab.com/VTTE/sitios-vtte | PHP | 571 lines
1<?php 2/** 357 } 358 $link = str_replace( '%author%', $author_nicename, $link ); 359 $link = home_url( user_trailingslashit( $link ) );template-tags.php https://gitlab.com/VTTE/sitios-vtte | PHP | 790 lines
320 321 <ul class="post-meta<?php echo esc_attr( $post_meta_classes ); ?>"> 322 322 323 <?php 324 374 <span class="meta-text"> 375 <a href="<?php the_permalink(); ?>"><?php the_time( get_option( 'date_format' ) ); ?></a> 376 </span> 388 <span class="meta-icon"> 389 <span class="screen-reader-text"><?php _e( 'Categories', 'twentytwenty' ); ?></span> 390 <?php twentytwenty_the_theme_svg( 'folder' ); ?> 392 <span class="meta-text"> 393 <?php _ex( 'In', 'A string that is output before one or more categories', 'twentytwenty' ); ?> <?php the_category( ', ' ); ?> 394 </span>class-twentytwenty-svg-icons.php https://gitlab.com/VTTE/sitios-vtte | PHP | 233 lines
1<?php 2/** 34 $svg = preg_replace( '/^<svg /', $repl, trim( $arr[ $icon ] ) ); // Add extra attributes to SVG code. 35 $svg = str_replace( '#1A1A1B', $color, $svg ); // Replace the color. 36 $svg = str_replace( '#', '%23', $svg ); // Urlencode hashes.intialise_conversation.php https://gitlab.com/tutaalexandr/bot_local | PHP | 690 lines
1<?php 2 6 * Version: 2.4.8 7 * FILE: chatbot/core/conversation/intialise_conversation.php 8 * AUTHOR: Elizabeth Perreau and Dave Morton 369 $usersay = $convoArr['aiml']['user_raw']; 370 $usersay = str_replace("'", "\'", $usersay); 371 $botsay = $convoArr['aiml']['parsed_template']; 371 $botsay = $convoArr['aiml']['parsed_template']; 372 $botsay = str_replace("'", "\'", $botsay); 373 $user_id = $convoArr['conversation']['user_id'];parse_aiml_as_XML.php https://gitlab.com/tutaalexandr/bot_local | PHP | 1106 lines
1<?php 2 6 * Version: 2.4.8 7 * FILE: parse_aiml_as_xml.php 8 * AUTHOR: Elizabeth Perreau and Dave Morton 34 $botsay = trim(implode_recursive(' ', $responseArray, __FILE__, __FUNCTION__, __LINE__)); 35 $botsay = str_replace(' .', '.', $botsay); 36 $botsay = str_replace(' ', ' ', $botsay); 36 $botsay = str_replace(' ', ' ', $botsay); 37 $botsay = str_replace(' ?', '?', $botsay); 38 $botsay = str_replace(' ,', ',', $botsay); 38 $botsay = str_replace(' ,', ',', $botsay); 39 $botsay = str_replace(' s ', 's ', $botsay); 40 $convoArr['aiml']['parsed_template'] = $botsay; 45 /** 46 * Wraps mixed content XML with <text></text> tags, allowing full use of PHP's SimpleXML functions 47 *parse_aiml.php https://gitlab.com/tutaalexandr/bot_local | PHP | 656 lines
80 { 81 $words = str_replace('~ ', '', $line); 82 $first = $words; 90 // build first patterns to second (both keyed and non) patterns and replacements, and first patterns to third replacements 91 $firstPersonPatterns[] = str_replace('[word]', $first, $firstPersonSearchTemplate); 92 $secondPersonKeyedPatterns[] = str_replace('[word]', $second, $secondPersonKeyedSearchTemplate); 258 $ap = str_replace("_ ", "(\S*) ", $ap); 259 $ap = str_replace(" *", " (.*)", $ap); 260 $ap = str_replace(" _", " (.*)", $ap); 265 // Set pattern wildcards 266 $pattern_wildcards = str_replace("_", "(.*)?", str_replace("*", "(.*)?", $aiml_pattern)); 267 if ($pattern_wildcards != $aiml_pattern) 309 $tp = str_replace("_", "(.*)", $tp); 310 $thatpattern_wildcards = str_replace("_", "(.*)?", str_replace("*", "(.*)?", $aiml_thatpattern)); 311 if ($thatpattern_wildcards != $aiml_thatpattern)upload.php https://gitlab.com/tutaalexandr/bot_local | PHP | 460 lines
1<?php 2 6 * Version: 2.4.8 7 * FILE: upload.php 8 * AUTHOR: Elizabeth Perreau and Dave Morton 104 #$msg = (empty($msg)) ? 'Test' : $msg; 105 $mainContent = str_replace('[bot_name]', $bot_name, $mainContent); 106 $mainContent = str_replace('[mainTitle]', $mainTitle, $mainContent); 106 $mainContent = str_replace('[mainTitle]', $mainTitle, $mainContent); 107 $mainContent = str_replace('[upload_content]', $uploadContent, $mainContent); 108 $mainContent = str_replace('[showHelp]', $showHelp, $mainContent); 108 $mainContent = str_replace('[showHelp]', $showHelp, $mainContent); 109 $mainContent = str_replace('[AIML_List]', $AIML_List, $mainContent); 110 $mainContent = str_replace('[all_bots]', $all_bots, $mainContent); 110 $mainContent = str_replace('[all_bots]', $all_bots, $mainContent); 111 $mainTitle = str_replace('[helpLink]', $template->getSection('HelpLink'), $mainTitle); 112 $mainTitle = str_replace('[errMsg]', $msg, $mainTitle);select_bots.php https://gitlab.com/tutaalexandr/bot_local | PHP | 498 lines
1<?php 2 /*************************************** 5 * Version: 2.4.8 6 * FILE: select_bots.php 7 * AUTHOR: Elizabeth Perreau and Dave Morton 69 foreach ($result as $row) { 70 if ($row['bot_id'] == 0) $options = str_replace('[noBot]', 'selected="selected"', $options); 71 if($current_parent==$row['bot_id']) { 78 } 79 $options = str_replace('[noBot]', 'selected="selected"', $options); 80 175 } 176 /** @noinspection PhpUndefinedVariableInspection */ 177 if($bot_debugmode=="0") { 219 foreach ($searches as $search) { 220 $replace = str_replace('[', '', $search); 221 $replace = str_replace(']', '', $replace);general.php https://gitlab.com/x33n/ProjectPier-Core | PHP | 587 lines
1<?php 2 73 $str = preg_replace('/&(?!#[0-9]+;)/s', '&', $str); 74 $str = str_replace(array('<', '>', '"'), array('<', '>', '"'), $str); 75 return $str; 86 $replace = array('&', '<', '>'); 87 return str_replace($search, $replace, $escaped_string); 88 } // undo_htmlspecialchars 222 */ 223 function str_replace_first($search_for, $replace_with, $in) { 224 $pos = strpos($in, $search_for); 229 } // if 230 } // str_replace_first 231 328 if (strpos($to, '&') !== false) { 329 $to = str_replace('&', '&', $to); 330 } // iffiles.php https://gitlab.com/x33n/ProjectPier-Core | PHP | 650 lines
1<?php 2 283 } // if 284 $real_path = str_replace('\\', '/', $path); 285 $parts = explode('/', $real_path); 367 function insert_before_file_extension($filename, $insert) { 368 return str_replace_first('.', '.' . $insert, $filename); 369 } // insert_before_file_extensionContact.class.php https://gitlab.com/x33n/ProjectPier-Core | PHP | 843 lines
1<?php 2 523 if (trim($redirect_to) <> '') { 524 $attributes['redirect_to'] = str_replace('&', '&', trim($redirect_to)); 525 } // if 539 if (trim($redirect_to) <> '') { 540 $attributes['redirect_to'] = str_replace('&', '&', trim($redirect_to)); 541 } // ifCompany.class.php https://gitlab.com/x33n/ProjectPier-Core | PHP | 766 lines
1<?php 2 548 if (trim($redirect_to) <> '') { 549 $attributes['redirect_to'] = str_replace('&', '&', trim($redirect_to)); 550 } // ifProjectController.class.php https://gitlab.com/x33n/ProjectPier-Core | PHP | 1273 lines
1<?php 2 270 if (plugin_active('files')) { 271 $default_folders_config = str_replace(array("\r\n", "\r"), array("\n", "\n"), config_option('default_project_folders', '')); 272 if (trim($default_folders_config) == '') { 280 if (plugin_active('tickets')) { 281 $default_ticket_categories_config = str_replace(array("\r\n", "\r"), array("\n", "\n"), config_option('tickets_default_categories', '')); 282 if (trim($default_ticket_categories_config) == '') {xml.php https://gitlab.com/x33n/platform | PHP | 647 lines
1<?php 2/** 5 * @subpackage UnitTester 6 * @version $Id: xml.php 1787 2008-04-26 20:35:39Z pp11 $ 7 */ 11 */ 12require_once(dirname(__FILE__) . '/scorer.php'); 13/**#@-*/ 57 function toParsedXml($text) { 58 return str_replace( 59 array('&', '<', '>', '"', '\''),url.php https://gitlab.com/x33n/platform | PHP | 550 lines
1<?php 2/** 5 * @subpackage WebTester 6 * @version $Id: url.php 2011 2011-04-29 08:22:48Z pp11 $ 7 */ 11 */ 12require_once(dirname(__FILE__) . '/encoding.php'); 13/**#@-*/ 15/** 16 * URL parser to replace parse_url() PHP function which 17 * got broken in PHP 4.3.0. Adds some browser specific 53 // the scheme is file. 54 $url = str_replace('\\', '/', $url); 55 }php_parser.php https://gitlab.com/x33n/platform | PHP | 1054 lines
1<?php 2/** 5 * @subpackage WebTester 6 * @version $Id: php_parser.php 1927 2009-07-31 12:45:36Z dgheath $ 7 */ 98 for ($i = 0, $count = count($this->patterns); $i < $count; $i++) { 99 $this->patterns[$i] = '(' . str_replace( 100 array('/', '(', ')'), 173 * Some optimisation to make the sure the 174 * content is only scanned by the PHP regex 175 * parser once. Lexer modes must not startupdate.php https://gitlab.com/x33n/platform | PHP | 461 lines
1<?php 2/** 19 20include_once('./admin/constants.php'); 21include_once(CASH_PLATFORM_PATH); 22 23$cash_root_location = str_replace('/cashmusic.php','',CASH_PLATFORM_PATH); 24 99 $file = file_get_contents($filename); 100 $file = str_replace($find, $replace, $file); 101 if (file_put_contents($filename, $file)) { 298 </html> 299 <?php 300} else {cashmusic_web_installer.php https://gitlab.com/x33n/platform | PHP | 678 lines
1<?php 2/** 114 $file = file_get_contents($filename); 115 $file = str_replace($find, $replace, $file); 116 if (file_put_contents($filename, $file)) { 315 </html> 316 <?php 317} else { 370 $test_error_number = 4; 371 $test_error_message = "Couldn't find PDO. This is a required component of PHP that " 372 . 'is included by default in most builds of PHP — apparently it 'AdminHelper.php https://gitlab.com/x33n/platform | PHP | 1217 lines
1<?php 2/** 79 // find the right page title 80 $endpoint = str_replace('_','/',BASE_PAGENAME); 81 $endpoint_parts = explode('/',$endpoint);markdown.php https://gitlab.com/x33n/platform | PHP | 1732 lines
1<?php 2# 4# 5# PHP Markdown 6# Copyright (c) 2004-2009 Michel Fortin 6# Copyright (c) 2004-2009 Michel Fortin 7# <http://michelf.com/projects/php-markdown/> 8# 62Plugin Name: Markdown 63Plugin URI: http://michelf.com/projects/php-markdown/ 64Description: <a href="http://daringfireball.net/projects/markdown/syntax">Markdown syntax</a> allows you to write using an easy-to-read, easy-to-write plain text format. Based on the original Perl version by <a href="http://daringfireball.net/">John Gruber</a>. <a href="http://michelf.com/projects/php-markdown/">More...</a> 129 global $mdwp_hidden_tags, $mdwp_placeholders; 130 return str_replace($mdwp_hidden_tags, $mdwp_placeholders, $text); 131 } 133 global $mdwp_hidden_tags, $mdwp_placeholders; 134 return str_replace($mdwp_placeholders, $mdwp_hidden_tags, $text); 135 }ElementPlant.php https://gitlab.com/x33n/platform | PHP | 784 lines
1<?php 2/** 66 foreach ($all_element_files as $file) { 67 if (substr($file,0,1) != "." && substr($file,-4) == '.php') { 68 $tmpKey = strtolower(substr_replace($file, '', -4)); 77 if (substr($file,0,1) != "." && !is_dir($file)) { 78 $element_object_type = substr_replace($file, '', -4); 79 $tmpKey = strtolower($element_object_type); 223 if ($element['template_id'] == '-1') { 224 $template = str_replace(array('!--light','light--'), '', $template); 225 $template = str_replace('<body', '<body class="light"', $template); 226 } else if ($element['template_id'] == '-2') { 227 $template = str_replace(array('!--dark','dark--'), '', $template); 228 $template = str_replace('<body', '<body class="dark"', $template); 446 include_once($for_include); 447 $element_object_type = substr_replace($this->elements_array[$element_type], '', -4); 448 $element_object = new $element_object_type($id,$element,$status_uid,$original_request,$original_response);CASHSystem.php https://gitlab.com/x33n/platform | PHP | 718 lines
1<?php 2/** 38 define('CASH_API_URL', trim($cash_settings['apilocation'],'/')); 39 define('CASH_ADMIN_URL', str_replace('/api','/admin',CASH_API_URL)); 40 define('CASH_PUBLIC_URL',str_replace('admin','public',CASH_ADMIN_URL)); 209 foreach (array('/classes/core/','/classes/seeds/') as $location) { 210 $file = CASH_PLATFORM_ROOT.$location.$classname.'.php'; 211 if (file_exists($file)) { 259 $file = file_get_contents($filename); 260 $file = str_replace($find, $replace, $file); 261 if (file_put_contents($filename, $file)) { 273 if (!$cash_settings) { 274 $cash_settings = parse_ini_file(CASH_PLATFORM_ROOT.'/settings/cashmusic.ini.php'); 275 // check for system connections in environment and on file 315 $success = CASHSystem::findReplaceInFile( 316 CASH_PLATFORM_ROOT.'/settings/cashmusic.ini.php', 317 $setting_name . ' = "' . $cash_settings[$setting_name],TaskFilter.php https://gitlab.com/x33n/kanboard | PHP | 949 lines
1<?php 2 214 $this->query->beginOr(); 215 $this->query->eq(Task::TABLE.'.id', str_replace('#', '', $title)); 216 $this->query->ilike(Task::TABLE.'.title', '%'.$title.'%');Pages.php https://gitlab.com/x33n/grav | PHP | 727 lines
1<?php 2namespace Grav\Common\Page; 281 if (strpos($alias, '*') !== false && strpos($url, $match) !== false) { 282 $wildcard_url = str_replace('*', str_replace($match, '', $url), $route); 283 $page = isset($this->routes[$wildcard_url]) ? $this->get($this->routes[$wildcard_url]) : null;header.inc.php https://gitlab.com/x33n/ampache | PHP | 430 lines
31<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 32<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $htmllang; ?>" lang="<?php echo $htmllang; ?>" dir="<?php echo is_rtl(AmpConfig::get('lang')) ? 'rtl' : 'ltr';?>"> 33 <head> 34 <link rel="shortcut icon" href="<?php echo $web_path; ?>/favicon.ico" /> 35 <link rel="search" type="application/opensearchdescription+xml" title="<?php echo scrub_out(AmpConfig::get('site_title')); ?>" href="<?php echo $web_path; ?>/search.php?action=descriptor" /> 36 <?php if (AmpConfig::get('use_rss')) { ?> 36 <?php if (AmpConfig::get('use_rss')) { ?> 37 <link rel="alternate" type="application/rss+xml" title="<?php echo T_('Now Playing'); ?>" href="<?php echo $web_path; ?>/rss.php" /> 38 <link rel="alternate" type="application/rss+xml" title="<?php echo T_('Recently Played'); ?>" href="<?php echo $web_path; ?>/rss.php?type=recently_played" /> 38 <link rel="alternate" type="application/rss+xml" title="<?php echo T_('Recently Played'); ?>" href="<?php echo $web_path; ?>/rss.php?type=recently_played" /> 39 <link rel="alternate" type="application/rss+xml" title="<?php echo T_('Newest Albums'); ?>" href="<?php echo $web_path; ?>/rss.php?type=latest_album" /> 40 <?php } ?> 41 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=<?php echo AmpConfig::get('site_charset'); ?>" /> 42 <title><?php echo AmpConfig::get('site_title'); ?> - <?php echo $location['title']; ?></title> 43 <?php require_once AmpConfig::get('prefix') . '/templates/stylesheets.inc.php'; ?>module.tag.apetag.php https://gitlab.com/x33n/ampache | PHP | 416 lines
1<?php 2///////////////////////////////////////////////////////////////// 10// // 11// module.tag.apetag.php // 12// module for analyzing APE tags // 25 if (!getid3_lib::intValueSupported($info['filesize'])) { 26 $info['warning'][] = 'Unable to check for APEtags because file is larger than '.round(PHP_INT_MAX / 1073741824).'GB'; 27 return false; 150 switch (strtolower($item_key)) { 151 // http://wiki.hydrogenaud.io/index.php?title=ReplayGain#MP3Gain 152 case 'replaygain_track_gain': 153 if (preg_match('#^[\\-\\+][0-9\\.,]{8}$#', $thisfile_ape_items_current['data'][0])) { 154 $thisfile_replaygain['track']['adjustment'] = (float) str_replace(',', '.', $thisfile_ape_items_current['data'][0]); // float casting will see "0,95" as zero! 155 $thisfile_replaygain['track']['originator'] = 'unspecified'; 162 if (preg_match('#^[0-9\\.,]{8}$#', $thisfile_ape_items_current['data'][0])) { 163 $thisfile_replaygain['track']['peak'] = (float) str_replace(',', '.', $thisfile_ape_items_current['data'][0]); // float casting will see "0,95" as zero! 164 $thisfile_replaygain['track']['originator'] = 'unspecified';module.audio.flac.php https://gitlab.com/x33n/ampache | PHP | 453 lines
1<?php 2///////////////////////////////////////////////////////////////// 10// // 11// module.audio.flac.php // 12// module for analyzing FLAC and OggFLAC audio files // 12// module for analyzing FLAC and OggFLAC audio files // 13// dependencies: module.audio.ogg.php // 14// /// 17 18getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'module.audio.ogg.php', __FILE__, true); 19 130 if (!empty($info['flac']['VORBIS_COMMENT']['vendor'])) { 131 $info['audio']['encoder'] = str_replace('reference ', '', $info['flac']['VORBIS_COMMENT']['vendor']); 132 } 371 $picture['data'] = $this->saveAttachment( 372 str_replace('/', '_', $picture['picturetype']).'_'.$this->ftell(), 373 $this->ftell(),getid3.php https://gitlab.com/x33n/ampache | PHP | 1393 lines
123 if (version_compare(PHP_VERSION, $required_php_version, '<')) { 124 $this->startup_error .= 'getID3() requires PHP v'.$required_php_version.' or higher - you are running v'.PHP_VERSION; 125 return false; 139 } elseif ($this->memory_limit <= 4194304) { 140 $this->startup_error .= 'PHP has less than 4MB available memory and will very likely run out. Increase memory_limit in php.ini'; 141 } elseif ($this->memory_limit <= 12582912) { 141 } elseif ($this->memory_limit <= 12582912) { 142 $this->startup_warning .= 'PHP has less than 12MB available memory and might run out if all modules are loaded. Increase memory_limit in php.ini'; 143 } 316 fclose($this->fp); 317 throw new getid3_exception('PHP seems to think the file is larger than '.round(PHP_INT_MAX / 1073741824).'GB, but filesystem reports it as '.number_format($real_filesize, 3).'GB, please report to info@getid3.org'); 318 } 319 $this->info['filesize'] = $real_filesize; 320 $this->warning('File is larger than '.round(PHP_INT_MAX / 1073741824).'GB (filesystem reports it as '.number_format($real_filesize, 3).'GB) and is not properly supported by PHP.'); 321 }Request.php https://gitlab.com/x33n/ampache | PHP | 638 lines
1<?php 2 166 return trim($this->method . ' ' . $this->getResource()) . ' ' 167 . strtoupper(str_replace('https', 'http', $this->url->getScheme())) 168 . '/' . $protocolVersion . "\r\n" . implode("\r\n", $this->getHeaderLines());vainfo.class.php https://gitlab.com/x33n/ampache | PHP | 1249 lines
1<?php 2/* vim:set softtabstop=4 shiftwidth=4 expandtab: */ 56 * 57 * @SuppressWarnings(PHPMD.UnusedFormalParameter) 58 */ 70 // FIXME: This looks ugly and probably wrong 71 if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { 72 $this->_pathinfo = str_replace('%3A', ':', urlencode($this->filename)); 72 $this->_pathinfo = str_replace('%3A', ':', urlencode($this->filename)); 73 $this->_pathinfo = pathinfo(str_replace('%5C', '\\', $this->_pathinfo)); 74 } else { 74 } else { 75 $this->_pathinfo = pathinfo(str_replace('%2F', '/', urlencode($this->filename))); 76 } 237 if (isset($this->_raw['tags']['id3v2'])) { 238 getid3_lib::IncludeDependency(GETID3_INCLUDEPATH . 'write.php', __FILE__, true); 239 $tagWriter = new getid3_writetags();ui.lib.php https://gitlab.com/x33n/ampache | PHP | 728 lines
1<?php 2/* vim:set softtabstop=4 shiftwidth=4 expandtab: */ 45 46 require AmpConfig::get('prefix') . '/templates/show_confirmation.inc.php'; 47} // show_confirmation 65 if (substr($referer, -1)=='/') { 66 $file = 'index.php'; 67 } else { 95 96 if (strlen($_SERVER['PHP_SELF'])) { 97 $source = $_SERVER['PHP_SELF']; 101 102 /* Sanatize the $_SERVER['PHP_SELF'] variable */ 103 $source = str_replace(AmpConfig::get('raw_web_path'), "", $source); 103 $source = str_replace(AmpConfig::get('raw_web_path'), "", $source); 104 $location['page'] = preg_replace("/^\/(.+\.php)\/?.*/","$1",$source); 105XmlVisitorTest.php https://gitlab.com/x33n/respond | PHP | 558 lines
1<?php 2 307 ->getMockForAbstractClass(); 308 $command->setClient(new Client('http://www.test.com/some/path.php')); 309 $request = $command->prepare(); 314 } 315 $body = str_replace(array("\n", "<?xml version=\"1.0\"?>"), '', (string) $request->getBody()); 316 $this->assertEquals($xml, $body);request.rst https://gitlab.com/x33n/respond | ReStructuredText | 667 lines
88 89.. code-block:: php 90 107request options. To send files in the POST request, prepend the ``@`` symbol to the array value (just like you would if 108you were using the PHP ``curl_setopt`` function). 109 156 157.. code-block:: php 158 182 183.. code-block:: php 184 278 2791. ``Guzzle\Http\QueryAggregator\PhpAggregator``: Aggregates using PHP style brackets (e.g. ``foo[0]=baz&foo[1]=bar``) 2802. ``Guzzle\Http\QueryAggregator\DuplicateAggregator``: Performs no aggregation and allows for key value pairs to beuser.php https://gitlab.com/x33n/respond | PHP | 668 lines
1<?php 2/** 133 $bucket = $site['Bucket']; 134 $imagesURL = str_replace('{{bucket}}', $bucket, S3_URL); 135 $imagesURL = str_replace('{{site}}', $site['FriendlyId'], $imagesURL); 371 $subject = SITE_WELCOME_EMAIL_SUBJECT; 372 $subject = str_replace('{{site}}', $site['Name'], $subject); 373 453 $bucket = $site['Bucket']; 454 $imagesURL = str_replace('{{bucket}}', $bucket, S3_URL); 455 $imagesURL = str_replace('{{site}}', $site['FriendlyId'], $imagesURL);site.php https://gitlab.com/x33n/respond | PHP | 1103 lines
1<?php 2 165 166 $domain = str_replace('{{friendlyId}}', $friendlyId, $domain); 167 208 // create the bucket name 209 $bucket = str_replace('{{site}}', $friendlyId, BUCKET_NAME); 210 324 $bucket = $site['Bucket']; 325 $imagesURL = str_replace('{{bucket}}', $bucket, S3_URL); 326 $imagesURL = str_replace('{{site}}', $site['FriendlyId'], $imagesURL); 544 545 // encyrpt password, #ref: http://stackoverflow.com/questions/10916284/how-to-encrypt-decrypt-data-in-php 546 if($SMTPPassword != '' && $SMTPPassword != 'temppassword'){page.php https://gitlab.com/x33n/respond | PHP | 1684 lines
1<?php 2 118 $bucket = $site['Bucket']; 119 $imagesURL = str_replace('{{bucket}}', $bucket, S3_URL); 120 $imagesURL = str_replace('{{site}}', $site['FriendlyId'], $imagesURL); 431 // remove file 432 $filename = $filename.$page['FriendlyId'].'.php'; 433file.php https://gitlab.com/x33n/respond | PHP | 591 lines
1<?php 2 71 if(FILES_ON_S3 == true){ 72 $url = str_replace('{{bucket}}', $site['Bucket'], S3_URL); 73 $url = str_replace('{{site}}', $site['FriendlyId'], $url); 108 109 $url = str_replace('{{bucket}}', $site['Bucket'], S3_URL); 110 $url = str_replace('{{site}}', $site['FriendlyId'], $url);Publish.php https://gitlab.com/x33n/respond | PHP | 1561 lines
1<?php 2 104 105 $contents = 'Options -Indexes'.PHP_EOL. 106 'RewriteEngine On'.PHP_EOL. 106 'RewriteEngine On'.PHP_EOL. 107 'RewriteCond %{REQUEST_FILENAME} !-f'.PHP_EOL. 108 'RewriteCond %{REQUEST_FILENAME} !-d'.PHP_EOL. 108 'RewriteCond %{REQUEST_FILENAME} !-d'.PHP_EOL. 109 'RewriteCond %{REQUEST_URI} !.*\.(css¦js|html|png)'.PHP_EOL. 110 'RewriteRule (.*) index.html [L]'; 116 117 $contents = 'Options -Indexes'.PHP_EOL. 118 '<IfModule mod_rewrite.c>'.PHP_EOL. 118 '<IfModule mod_rewrite.c>'.PHP_EOL. 119 'RewriteEngine On'.PHP_EOL. 120 'RewriteCond %{REQUEST_FILENAME} !-f'.PHP_EOL.Page.php https://gitlab.com/x33n/respond | PHP | 788 lines
1<?php 2 16 $friendlyId = trim($friendlyId); 17 $friendlyId = str_replace(' ', '', $friendlyId); 18 $friendlyId = strtolower($friendlyId); 83 $friendlyId = trim($friendlyId); 84 $friendlyId = str_replace(' ', '', $friendlyId); 85 $friendlyId = strtolower($friendlyId);JSMin.php https://gitlab.com/x33n/ImpressPages | PHP | 437 lines
1<?php 2/** 2/** 3 * JSMin.php - modified PHP implementation of Douglas Crockford's JSMin. 4 * 17 * 18 * PHP 5 or higher is required. 19 * 47 * @package JSMin 48 * @author Ryan Grove <ryan@wonko.com> (PHP port) 49 * @author Steve Clay <steve@mrclay.org> (modifications + cleanup) 51 * @copyright 2002 Douglas Crockford <douglas@crockford.com> (jsmin.c) 52 * @copyright 2008 Ryan Grove <ryan@wonko.com> (PHP port) 53 * @license http://opensource.org/licenses/mit-license.php MIT License 53 * @license http://opensource.org/licenses/mit-license.php MIT License 54 * @link http://code.google.com/p/jsmin-php/ 55 */AdminController.php https://gitlab.com/x33n/ImpressPages | PHP | 510 lines
1<?php 2/** 37 38 $html = ipView('view/popup/logo.php', $popupData)->render(); 39 97 $pageName = ''; 98 $scopeParentPageTitle = str_replace('[[page]]', $pageName, $scopeParentPageTitle); 99 $types[Scope::SCOPE_PARENT_PAGE] = array( 104 105 $scopeLanguageTitle = str_replace( 106 '[[language]]', 125 126 $html = ipView('view/popup/image.php', $popupData)->render(); 127Config.php https://gitlab.com/x33n/ImpressPages | PHP | 673 lines
1<?php 2/** 280 { 281 return ipTable(str_replace("`", "", $this->config['table'])); 282 } 289 } 290 return ipTable(str_replace("`", "", $tableName)); 291 } 482 if (empty($this->config['layout'])) { 483 return 'Ip/Internal/Grid/view/layout.php'; 484 }Db.php https://gitlab.com/x33n/ImpressPages | PHP | 642 lines
1<?php 2/** 56 } else { 57 $dsn = 'mysql:host=' . str_replace(':', ';port=', $dbConfig['hostname']); 58 if (!empty($dbConfig['database'])) { 70 throw new \Ip\Exception\Db("Can't connect to database. Stack trace hidden for security reasons"); 71 //PHP traces all details of error including DB password. This could be a disaster on live server. So we hide that data. 72 }Application.php https://gitlab.com/x33n/ImpressPages | PHP | 484 lines
1<?php 2/** 57 58 require_once __DIR__ . '/Config.php'; 59 60 $config = new \Ip\Config($config); 61 require_once __DIR__ . '/ServiceLocator.php'; 62 \Ip\ServiceLocator::setConfig($config); 63 64 require_once __DIR__ . '/Internal/Autoloader.php'; 65 68 69 require_once __DIR__ . '/Functions.php'; 70 } 175 $locale .= '.utf8'; 176 if($locale == "tr_TR.utf8" && (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION < 5)) { //Overcoming this bug https://bugs.php.net/bug.php?id=18556 177 setlocale(LC_COLLATE, $locale);