Changeset 957
- Timestamp:
- 03/01/2004 07:55:45 PM (21 years ago)
- Location:
- trunk
- Files:
-
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/categories.php
r862 r957 135 135 require_once ('admin-header.php'); 136 136 if ($user_level < 3) { 137 die("You have no right to edit the categories for this blog.<br />Ask for a promotion to your <a href='mailto: $admin_email'>blog admin</a>. :)");137 die("You have no right to edit the categories for this blog.<br />Ask for a promotion to your <a href='mailto:" . get_settings('admin_email'). "'>blog admin</a>. :)"); 138 138 } 139 139 ?> -
trunk/wp-admin/import-greymatter.php
r883 r957 102 102 $result = mysql_query($query); 103 103 if ($result==false) { 104 die ("< b>ERROR</b>: couldn't register an user... please contact the <a href=\"mailto:$admin_email\">webmaster</a>!");104 die ("<strong>ERROR</strong>: couldn't register an user!"); 105 105 } 106 106 echo "<li>user <i>$user_login</i>... <b>Done</b></li>"; … … 161 161 $result = mysql_query($query); 162 162 if ($result==false) { 163 die ("< b>ERROR</b>: couldn't register an user... please contact the <a href=\"mailto:$admin_email\">webmaster</a>!");163 die ("<strong>ERROR</strong>: couldn't register an user!"); 164 164 } 165 165 echo ": registered deleted user <i>$user_login</i> at level 0 "; … … 197 197 198 198 if (!$result) 199 die ("Error in posting... contact the <a href=\"mailto:$admin_email\">webmaster</a>");199 die ("Error in posting..."); 200 200 201 201 $sql2 = "SELECT * FROM $tableposts WHERE 1=1 ORDER BY ID DESC LIMIT 1"; … … 245 245 $result3 = mysql_query($sql3); 246 246 if (!$result3) 247 die ("There is an error with the database, it can't store your comment.. .<br>Contact the <a href=\"mailto:$admin_email\">webmaster</a>");247 die ("There is an error with the database, it can't store your comment.."); 248 248 } 249 249 $comments=$c-4; -
trunk/wp-admin/install.php
r956 r957 438 438 "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(43,'subjectprefix', 3, 'blog:', 'subject prefix', 8, 20)", 439 439 "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(44,'bodyterminator', 3, '___', 'body terminator string (starting from this string, everything will be ignored, including this string)', 8, 20)", 440 "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(45,'emailtestonly', 2, '0', 'set this to true to run in test mode', 8, 20)",441 440 "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(46,'use_phoneemail', 2, '0', 'some mobile phone email services will send identical subject & content on the same line if you use such a service, set use_phoneemail to true, and indicate a separator string', 8, 20)", 442 441 "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(47,'phoneemail_separator', 3, ':::', 'when you compose your message, you\'ll type your subject then the separator string then you type your login:password, then the separator, then content', 8, 20)", -
trunk/wp-admin/link-categories.php
r654 r957 281 281 include_once ("./admin-header.php"); 282 282 if ($user_level < get_settings('links_minadminlevel')) { 283 die("You have no right to edit the link categories for this blog.<br>Ask for a promotion to your <a href=\"mailto:$admin_email\">blog admin</a>:)");283 die("You have do not have sufficient permissions to edit the link categories for this blog. :)"); 284 284 } 285 285 ?> -
trunk/wp-admin/link-manager.php
r745 r957 291 291 include_once ('admin-header.php'); 292 292 if ($user_level < get_settings('links_minadminlevel')) { 293 die( "You have no right to edit the links for this blog.<br />Ask for a promotion to your <a href='mailto:$admin_email'>blog admin</a>. :)");293 die('You have do not have sufficent permissions to edit the links for this blog.'); 294 294 } 295 295 … … 538 538 include_once ("./admin-header.php"); 539 539 if ($user_level < get_settings('links_minadminlevel')) { 540 die("You have no right to edit the links for this blog.<br>Ask for a promotion to your <a href=\"mailto:$admin_email\">blog admin</a> :)");540 die("You have do not have sufficient permissions to edit the links for this blog."); 541 541 } 542 542 -
trunk/wp-admin/moderation.php
r887 r957 52 52 53 53 if ($user_level < 3) { 54 die('<p>Your level is not high enough to moderate comments. Ask for a promotion from your <a href="mailto:$admin_email">blog admin</a>. :)</p>');54 die('<p>Your level is not high enough to moderate comments.</p>'); 55 55 } 56 56 … … 93 93 94 94 if ($user_level <= 3) { 95 die('<p>Your level is not high enough to moderate comments. Ask for a promotion from your <a href="mailto:$admin_email">blog admin</a>. :)</p>');95 die('<p>Your level is not high enough to moderate comments.</p>'); 96 96 } 97 97 ?> -
trunk/wp-admin/options-discussion.php
r954 r957 41 41 include_once('admin-header.php'); 42 42 if ($user_level <= 3) { 43 die("You have no right to edit the options for this blog.<br />Ask for a promotion to your <a href=\"mailto:$admin_email\">blog admin</a> :)");43 die("You have do not have sufficient permissions to edit the options for this blog."); 44 44 } 45 45 ?> -
trunk/wp-admin/options-general.php
r954 r957 41 41 include_once('admin-header.php'); 42 42 if ($user_level <= 3) { 43 die("You have no right to edit the options for this blog.<br />Ask for a promotion to your <a href=\"mailto:$admin_email\">blog admin</a> :)");43 die("You have do not have sufficient permissions to edit the options for this blog."); 44 44 } 45 45 ?> -
trunk/wp-admin/options-permalink.php
r945 r957 52 52 include_once('admin-header.php'); 53 53 if ($user_level <= 3) { 54 die("You have no right to edit the options for this blog.<br>Ask for a promotion to your <a href=\"mailto:$admin_email\">blog admin</a> :)");54 die("You have do not have sufficient permissions to edit the options for this blog."); 55 55 } 56 56 ?> -
trunk/wp-admin/options-writing.php
r954 r957 41 41 include_once('admin-header.php'); 42 42 if ($user_level <= 3) { 43 die("You have no right to edit the options for this blog.<br />Ask for a promotion to your <a href=\"mailto:$admin_email\">blog admin</a> :)");43 die("You have do not have sufficient permissions to edit the options for this blog."); 44 44 } 45 45 ?> -
trunk/wp-admin/options.php
r939 r957 111 111 include_once("./admin-header.php"); 112 112 if ($user_level <= 3) { 113 die("You have no right to edit the options for this blog.<br>Ask for a promotion from your <a href=\"mailto:$admin_email\">blog admin</a> :)");113 die("You have do not have sufficient permissions to edit the options for this blog."); 114 114 } 115 115 ?> -
trunk/wp-admin/post.php
r956 r957 243 243 <p>Since you’re a newcomer, you’ll have to wait for an admin to raise your level to 1, 244 244 in order to be authorized to post.<br /> 245 You can also <a href="mailto:<?php echo $admin_email?>?subject=Promotion?">e-mail the admin</a>245 You can also <a href="mailto:<?php echo get_settings('admin_email'); ?>?subject=Promotion?">e-mail the admin</a> 246 246 to ask for a promotion.<br /> 247 247 When you’re promoted, just reload this page and you’ll be able to blog. :) … … 414 414 $result = $wpdb->query("DELETE FROM $tableposts WHERE ID=$post_id"); 415 415 if (!$result) 416 die('Error in deleting... contact the <a href="mailto:$admin_email">webmaster</a>.');416 die('Error in deleting...'); 417 417 418 418 $result = $wpdb->query("DELETE FROM $tablecomments WHERE comment_post_ID=$post_id"); … … 752 752 <div class="wrap"> 753 753 <p>Since you’re a newcomer, you’ll have to wait for an admin to raise your level to 1, in order to be authorized to post blog items.<br /> 754 You can also <a href="mailto:<?php echo $admin_email?>?subject=Blog posting permission">e-mail the admin</a> to ask for a promotion.<br />754 You can also <a href="mailto:<?php echo get_settings('admin_email'); ?>?subject=Blog posting permission">e-mail the admin</a> to ask for a promotion.<br /> 755 755 When you’re promoted, just reload this page and you’ll be able to blog. :)</p> 756 756 </div> -
trunk/wp-admin/profile.php
r956 r957 95 95 $result = $wpdb->query($query); 96 96 if (!$result) { 97 die ("<strong>ERROR</strong>: couldn't update your profile... please contact the <a href=\"mailto:$admin_email\">webmaster</a> !<br /><br />$query<br /><br />");97 die ("<strong>ERROR</strong>: couldn't update your profile..."); 98 98 } 99 99 header('Location: profile.php?updated=true'); -
trunk/wp-admin/templates.php
r945 r957 43 43 44 44 if ($user_level < 3) { 45 die('<p>You have no right to edit the template for this blog.<br />Ask for a promotion to your <a href="mailto:$admin_email">blog admin</a>. :)</p>');45 die('<p>You have do not have sufficient permissions to edit templates for this blog.</p>'); 46 46 } 47 47 … … 63 63 64 64 if ($user_level <= 3) { 65 die('<p>You have no right to edit the template for this blog.<br>Ask for a promotion to your <a href="mailto:$admin_email">blog admin</a>. :)</p>');65 die('<p>You have do not have sufficient permissions to edit templates for this blog.</p>'); 66 66 } 67 67 -
trunk/wp-admin/upgrade-functions.php
r956 r957 215 215 "43" => "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES (43,'subjectprefix', 3, 'blog:', 'subject prefix', 8, 20)", 216 216 "44" => "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES (44,'bodyterminator', 3, '___', 'body terminator string (starting from this string, everything will be ignored, including this string)', 8, 20)", 217 "45" => "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES (45,'emailtestonly', 2, '0', 'set this to true to run in test mode', 8, 20)",218 217 "46" => "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES (46,'use_phoneemail', 2, '0', 'some mobile phone email services will send identical subject & content on the same line if you use such a service, set use_phoneemail to true, and indicate a separator string', 8, 20)", 219 218 "47" => "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES (47,'phoneemail_separator', 3, ':::', 'when you compose your message, you\'ll type your subject then the separator string then you type your login:password, then the separator, then content', 8, 20)", -
trunk/wp-admin/users.php
r956 r957 79 79 80 80 if ($result == false) { 81 die ('<strong>ERROR</strong>: Couldn’t register you ... please contact the <a href="mailto:'.$admin_email.'">webmaster</a>!');81 die ('<strong>ERROR</strong>: Couldn’t register you!'); 82 82 } 83 83 … … 90 90 $message .= "Login: $user_login\r\n\r\nE-mail: $user_email"; 91 91 92 @mail( $admin_email, '[' . get_settings('blogname') . '] New User Registration', $message);92 @mail(get_settings('admin_email'), '[' . get_settings('blogname') . '] New User Registration', $message); 93 93 header('Location: users.php'); 94 94 break; -
trunk/wp-includes/functions-formatting.php
r956 r957 318 318 319 319 function convert_smilies($text) { 320 global $smilies_directory, $use_smilies;321 320 global $wp_smiliessearch, $wp_smiliesreplace; 322 321 $output = ''; 323 if ( $use_smilies) {322 if (get_settings('use_smilies')) { 324 323 // HTML loop taken from texturize function, could possible be consolidated 325 324 $textarr = preg_split("/(<.*>)/U", $text, -1, PREG_SPLIT_DELIM_CAPTURE); // capture the tags as well as in between -
trunk/wp-includes/functions.php
r956 r957 933 933 934 934 function doGeoUrlHeader($posts) { 935 global $use_default_geourl,$default_geourl_lat,$default_geourl_lon;936 935 if (count($posts) == 1) { 937 936 // there's only one result see if it has a geo code … … 947 946 } 948 947 } else { 949 if( $use_default_geourl) {948 if(get_settings('use_default_geourl')) { 950 949 // send the default here 951 echo "<meta name=\"ICBM\" content=\"". $default_geourl_lat.", ".$default_geourl_lon."\" />\n";950 echo "<meta name=\"ICBM\" content=\"". get_settings('default_geourl_lat') .", ". get_settings('default_geourl_lon') ."\" />\n"; 952 951 echo "<meta name=\"DC.title\" content=\"".convert_chars(strip_tags(get_bloginfo("name")),"unicode")."\" />\n"; 953 echo "<meta name=\"geo.position\" content=\"". $default_geourl_lat.";".$default_geourl_lon."\" />\n";952 echo "<meta name=\"geo.position\" content=\"". get_settings('default_geourl_lat') .";". get_settings('default_geourl_lon') ."\" />\n"; 954 953 } 955 954 } -
trunk/wp-includes/template-functions-general.php
r956 r957 23 23 24 24 function get_bloginfo($show='') { 25 global $admin_email;26 25 27 26 $do_perma = 0; … … 76 75 break; 77 76 case 'admin_email': 78 $output = $admin_email;77 $output = get_settings('admin_email'); 79 78 break; 80 79 case 'name': -
trunk/wp-includes/vars.php
r945 r957 263 263 $wp_smiliessearch[] = $smiley; 264 264 $smiley_masked = str_replace(' ', '', $smiley); 265 $wp_smiliesreplace[] = " <img src=' $smilies_directory/$img' alt='$smiley_masked' />";265 $wp_smiliesreplace[] = " <img src='" . get_settings('smilies_directory') . "/$img' alt='$smiley_masked' />"; 266 266 } 267 267 -
trunk/wp-login.php
r956 r957 224 224 <a href='wp-login.php' title='Check your email first, of course'>Click here to login!</a></p>"; 225 225 // send a copy of password change notification to the admin 226 mail( $admin_email, '[' . get_settings('blogname') . "] Password Lost/Change", "Password Lost and Changed for user: $user_login");226 mail(get_settings('admin_email'), '[' . get_settings('blogname') . "] Password Lost/Change", "Password Lost and Changed for user: $user_login"); 227 227 die(); 228 228 } -
trunk/wp-mail.php
r914 r957 11 11 $time_difference = get_settings('time_difference'); 12 12 13 if ( $use_phoneemail) {13 if (get_settings('use_phoneemail')) { 14 14 // if you're using phone email, the email will already be in your timezone 15 15 $time_difference = 0; … … 22 22 $pop3 = new POP3(); 23 23 24 if(!$pop3->connect( $mailserver_url, $mailserver_port)) {24 if(!$pop3->connect(get_settings('mailserver_url'), get_settings('mailserver_port'))) { 25 25 echo "Ooops $pop3->ERROR <br />\n"; 26 26 exit; 27 27 } 28 28 29 $Count = $pop3->login( $mailserver_login, $mailserver_pass);29 $Count = $pop3->login(get_settings('mailserver_login'), get_settings('mailserver_pass')); 30 30 if((!$Count) || ($Count == -1)) { 31 31 echo "<h1>Login Failed: $pop3->ERROR</h1>\n"; … … 77 77 $subject = wp_iso_descrambler($subject); 78 78 } 79 if ( $use_phoneemail) {80 $subject = explode( $phoneemail_separator, $subject);79 if (get_settings('use_phoneemail')) { 80 $subject = explode(get_settings('phoneemail_separator'), $subject); 81 81 $subject = trim($subject[0]); 82 82 } 83 if (!ereg( $subjectprefix, $subject)) {83 if (!ereg(get_settings('subjectprefix'), $subject)) { 84 84 continue; 85 85 } … … 125 125 } 126 126 127 if (preg_match('/'. $subjectprefix.'/', $subject)) {127 if (preg_match('/'.get_settings('subjectprefix').'/', $subject)) { 128 128 129 129 $userpassstring = ''; … … 132 132 echo "<p><b>$iCount</b></p><p><b>Subject: </b>$subject</p>\n"; 133 133 134 $subject = trim(str_replace( $subjectprefix, '', $subject));134 $subject = trim(str_replace(get_settings('subjectprefix'), '', $subject)); 135 135 136 136 if ($content_type == 'multipart/alternative') { … … 145 145 echo "<p><b>Raw content:</b><br /><pre>".$content.'</pre></p>'; 146 146 147 $btpos = strpos($content, $bodyterminator);147 $btpos = strpos($content, get_settings('bodyterminator')); 148 148 if ($btpos) { 149 149 $content = substr($content, 0, $btpos); … … 155 155 $secondline = $blah[1]; 156 156 157 if ( $use_phoneemail) {158 $btpos = strpos($firstline, $phoneemail_separator);157 if (get_settings('use_phoneemail')) { 158 $btpos = strpos($firstline, get_settings('phoneemail_separator')); 159 159 if ($btpos) { 160 160 $userpassstring = trim(substr($firstline, 0, $btpos)); 161 $content = trim(substr($content, $btpos+strlen( $phoneemail_separator), strlen($content)));162 $btpos = strpos($content, $phoneemail_separator);161 $content = trim(substr($content, $btpos+strlen(get_settings('phoneemail_separator')), strlen($content))); 162 $btpos = strpos($content, get_settings('phoneemail_separator')); 163 163 if ($btpos) { 164 164 $userpassstring = trim(substr($content, 0, $btpos)); 165 $content = trim(substr($content, $btpos+strlen( $phoneemail_separator), strlen($content)));165 $content = trim(substr($content, $btpos+strlen(get_settings('phoneemail_separator')), strlen($content))); 166 166 } 167 167 } … … 219 219 } 220 220 if (empty($post_categories)) { 221 $post_categories[] = $default_category;221 $post_categories[] = get_settings('default_category'); 222 222 } 223 223 -
trunk/wp-rdf.php
r956 r957 40 40 <dc:language><?php echo get_settings('rss_language'); ?></dc:language> 41 41 <dc:date><?php echo gmdate('Y-m-d\TH:i:s'); ?></dc:date> 42 <dc:creator><?php echo antispambot( $admin_email) ?></dc:creator>42 <dc:creator><?php echo antispambot(get_settings('admin_email')) ?></dc:creator> 43 43 <admin:generatorAgent rdf:resource="http://wordpress.org/?v=<?php echo $wp_version ?>"/> 44 <admin:errorReportsTo rdf:resource="mailto:<?php echo antispambot( $admin_email) ?>"/>44 <admin:errorReportsTo rdf:resource="mailto:<?php echo antispambot(get_settings('admin_email')) ?>"/> 45 45 <sy:updatePeriod>hourly</sy:updatePeriod> 46 46 <sy:updateFrequency>1</sy:updateFrequency> -
trunk/wp-register.php
r956 r957 97 97 98 98 if ($result == false) { 99 die ('<strong>ERROR</strong>: Couldn’t register you... please contact the <a href="mailto:'. $admin_email.'">webmaster</a> !');99 die ('<strong>ERROR</strong>: Couldn’t register you... please contact the <a href="mailto:'.get_settings('admin_email').'">webmaster</a> !'); 100 100 } 101 101 … … 108 108 $message .= "Login: $user_login\r\n\r\nE-mail: $user_email"; 109 109 110 @mail( $admin_email, '[' . get_settings('blogname') . '] New User Registration', $message);110 @mail(get_settings('admin_email'), '[' . get_settings('blogname') . '] New User Registration', $message); 111 111 112 112 ?> -
trunk/wp-rss.php
r956 r957 33 33 <lastBuildDate><?php echo gmdate("D, d M Y H:i:s"); ?> GMT</lastBuildDate> 34 34 <docs>http://backend.userland.com/rss092</docs> 35 <managingEditor><?php echo antispambot( $admin_email) ?></managingEditor>35 <managingEditor><?php echo antispambot(get_settings('admin_email')) ?></managingEditor> 36 36 <webMaster><?php echo antispambot($admin_email) ?></webMaster> 37 37 <language><?php echo get_settings('rss_language'); ?></language> -
trunk/wp-settings.php
r956 r957 50 50 // accessing a single global $all_settings var 51 51 if (!strstr($_SERVER['REQUEST_URI'], 'install.php') && !strstr($_SERVER['REQUEST_URI'], 'wp-admin/import')) { 52 $admin_email = get_settings('admin_email');53 $use_smilies = get_settings('use_smilies');54 $smilies_directory = get_settings('smilies_directory');55 $mailserver_url = get_settings('mailserver_url');56 $mailserver_login = get_settings('mailserver_login');57 $mailserver_pass = get_settings('mailserver_pass');58 $mailserver_port = get_settings('mailserver_port');59 $default_category = get_settings('default_category');60 $subjectprefix = get_settings('subjectprefix');61 $bodyterminator = get_settings('bodyterminator');62 $emailtestonly = get_settings('emailtestonly');63 $use_phoneemail = get_settings('use_phoneemail');64 $phoneemail_separator = get_settings('phoneemail_separator');65 $use_default_geourl = get_settings('use_default_geourl');66 $default_geourl_lat = get_settings('default_geourl_lat');67 $default_geourl_lon = get_settings('default_geourl_lon');68 52 69 53 $querystring_start = '?'; -
trunk/wp-trackback.php
r956 r957 82 82 83 83 if (!$result) { 84 die ("There is an error with the database, it can't store your comment...<br />Please contact the <a href='mailto:$admin_email'>webmaster</a>.");84 die ("There is an error with the database, it can't store your comment...<br />Please contact the webmaster."); 85 85 } else { 86 86 $comment_ID = $wpdb->get_var('SELECT last_insert_id()');
Note: See TracChangeset
for help on using the changeset viewer.