Changeset 40
- Timestamp:
- 05/22/2003 10:51:40 PM (22 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 33 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2-include/b2vars.php
r15 r40 131 131 $tabletop = "\t<table cellspacing=\"0\" cellpadding=\"1\" width=\"85%\" border=\"0\" bgcolor=\"#cccccc\" align=\"center\">\n\t<td align=\"left\">\n\t\t<table cellspacing=\"0\" cellpadding=\"15\" width=\"100%\" border=\"0\"bgcolor=\"#ffffff\" align=\"center\">\n\t\t<td align=\"left\">\n"; 132 132 $tablebottom = "\t\t</td>\n\t</table>\n\t</td>\n\t</table>\n"; 133 $blankline = '<img src=" b2-img/blank.gif" width="10" height="5" border="0" /><br />';133 $blankline = '<img src="../b2-img/blank.gif" width="10" height="5" border="0" /><br />'; 134 134 135 135 # on which page are we ? -
trunk/b2config.php
r39 r40 6 6 7 7 8 #Reminder: everything that starts with #, /* or // is a comment8 // Reminder: everything that starts with #, /* or // is a comment 9 9 10 10 /* Start editing */ 11 11 12 #$siteurl is your blog's URL: for example, 'http://mydomain.com' (no trailing slash !)13 #$blogfilename is the name of the default file for your blog14 #$blogname is the name of your blog12 // $siteurl is your blog's URL: for example, 'http://mydomain.com' (no trailing slash !) 13 // $blogfilename is the name of the default file for your blog 14 // $blogname is the name of your blog 15 15 16 16 $siteurl = 'http://example.com'; … … 21 21 22 22 23 #$pathserver is where you have uploaded b2: for example, 'http://mydomain.com' (no ending slash !)24 #by default b2 is set to run in the folder your blog resides, same as $siteurl23 // $pathserver is where you have uploaded b2: for example, 'http://mydomain.com' (no ending slash !) 24 // by default b2 is set to run in the folder your blog resides, same as $siteurl 25 25 26 26 $pathserver = 'http://example.com'; 27 27 28 28 29 #your email (obvious eh ?)29 // your email (obvious eh ?) 30 30 $admin_email = 'you@example.com'; 31 31 32 32 33 #set this to 0 or 1, whether you want new users to be able to post entries once they registered33 // set this to 0 or 1, whether you want new users to be able to post entries once they registered 34 34 $new_users_can_blog = 0; 35 35 36 36 37 #set this to 0 or 1, whether you want to allow users to register on your blog.37 // set this to 0 or 1, whether you want to allow users to register on your blog. 38 38 $users_can_register = 1; 39 39 40 40 41 #day at the start of the week: 0 for Sunday, 1 for Monday, 2 for Tuesday, etc41 // day at the start of the week: 0 for Sunday, 1 for Monday, 2 for Tuesday, etc 42 42 $start_of_week = 1; 43 43 … … 46 46 // ** MySQL settings ** 47 47 48 #fill with your database details48 // fill with your database details 49 49 $dbname = 'b2'; // the name of the database 50 50 $dbusername = 'user'; // your MySQL username … … 52 52 $dbhost = 'localhost'; // 99% chances you won't need to change this value 53 53 54 #database tables' names (change them if you want to have multiple b2's in a single database)54 // database tables' names (change them if you want to have multiple b2's in a single database) 55 55 $tableposts = 'b2posts'; 56 56 $tableusers = 'b2users'; … … 62 62 // ** Post preview function ** 63 63 64 #set this to 1 if you want to use the 'preview' function64 // set this to 1 if you want to use the 'preview' function 65 65 $use_preview = 1; 66 66 … … 70 70 71 71 72 #set this to 0 to disable the spell checker, or 1 to enable it72 // set this to 0 to disable the spell checker, or 1 to enable it 73 73 $use_spellchecker = 0; 74 74 … … 77 77 // ** Text formatting options ** 78 78 79 #these options can help you format your text without using too much html79 // these options can help you format your text without using too much html 80 80 $use_bbcode = 0; // use BBCode, like [b]bold[/b] 81 81 $use_gmcode = 0; // use GreyMatter-styles: **bold** \italic\ __underline__ 82 82 $use_quicktags = 1; // buttons for HTML tags (they won't work on IE Mac yet) 83 83 84 #IMPORTANT! set this to 0 if you are using Chinese, Japanese, Korean,85 #or other double-bytes languages84 // IMPORTANT! set this to 0 if you are using Chinese, Japanese, Korean, 85 // or other double-bytes languages 86 86 $use_htmltrans = 1; 87 87 88 #this could help balance your HTML code. if it gives bad results, set it to 088 // this could help balance your HTML code. if it gives bad results, set it to 0 89 89 $use_balanceTags = 1; 90 90 … … 93 93 94 94 95 #set this to 0 to disable file upload, or 1 to enable it96 $use_fileupload = 0;97 98 #enter the real path of the directory where you'll upload the pictures99 #if you're unsure about what your real path is, please ask your host's support staff100 #note that the directory must be writable by the webserver (ChMod 766)101 #note for windows-servers users: use forwardslashes instead of backslashes102 #$fileupload_realpath = '/home/your/site/b2/images';95 // set this to 0 to disable file upload, or 1 to enable it 96 $use_fileupload = 1; 97 98 // enter the real path of the directory where you'll upload the pictures 99 // if you're unsure about what your real path is, please ask your host's support staff 100 // note that the directory must be writable by the webserver (ChMod 766) 101 // note for windows-servers users: use forwardslashes instead of backslashes 102 //$fileupload_realpath = '/home/your/site/b2/images'; 103 103 $fileupload_realpath = '/home/example/public_html/images'; 104 104 105 #enter the URL of that directory (it's used to generate the links to the pictures)105 // enter the URL of that directory (it's used to generate the links to the pictures) 106 106 $fileupload_url = 'http://example.com/images'; 107 107 108 #accepted file types, you can add to that list if you want109 #note: add a space before and after each file type110 #example: $fileupload_allowedtypes = ' jpg gif png ';108 // accepted file types, you can add to that list if you want 109 // note: add a space before and after each file type 110 // example: $fileupload_allowedtypes = ' jpg gif png '; 111 111 $fileupload_allowedtypes = ' jpg gif png '; 112 112 113 #by default, most servers limit the size of uploads to 2048 KB114 #if you want to set it to a lower value, here it is (you cannot set a higher value)113 // by default, most servers limit the size of uploads to 2048 KB 114 // if you want to set it to a lower value, here it is (you cannot set a higher value) 115 115 $fileupload_maxk = '96'; 116 116 117 #you may not want all users to upload pictures/files, so you can set a minimum level for this117 // you may not want all users to upload pictures/files, so you can set a minimum level for this 118 118 $fileupload_minlevel = '1'; 119 119 120 #...or you may authorize only some users. enter their logins here, separated by spaces121 #if you leave that variable blank, all users who have the minimum level are authorized to upload122 #note: add a space before and after each login name123 #example: $fileupload_allowedusers = ' barbara anne ';120 // ...or you may authorize only some users. enter their logins here, separated by spaces 121 // if you leave that variable blank, all users who have the minimum level are authorized to upload 122 // note: add a space before and after each login name 123 // example: $fileupload_allowedusers = ' barbara anne '; 124 124 $fileupload_allowedusers = ''; 125 125 … … 128 128 // ** RSS syndication options ** 129 129 130 #these options are used by b2rdf.php (1.0), b2rss.php (0.92), and b2rss2.php (2.0)131 #note: if you don't want to syndicate your news, you can delete these files132 133 #number of last posts to syndicate130 // these options are used by b2rdf.php (1.0), b2rss.php (0.92), and b2rss2.php (2.0) 131 // note: if you don't want to syndicate your news, you can delete these files 132 133 // number of last posts to syndicate 134 134 $posts_per_rss = 10; 135 135 136 #the language of your blog ( see this: http://backend.userland.com/stories/storyReader$16 )136 // the language of your blog ( see this: http://backend.userland.com/stories/storyReader$16 ) 137 137 $rss_language = 'en'; 138 138 139 #for b2rss.php: allow encoded HTML in <description> tag? 1=yes, 0=no139 // for b2rss.php: allow encoded HTML in <description> tag? 1=yes, 0=no 140 140 $rss_encoded_html = 0; 141 141 142 #length (in words) of excerpts in the RSS feed? 0=unlimited143 #note: in b2rss.php, this will be set to 0 if you use encoded HTML142 // length (in words) of excerpts in the RSS feed? 0=unlimited 143 // note: in b2rss.php, this will be set to 0 if you use encoded HTML 144 144 $rss_excerpt_length = 50; 145 #use the excerpt field for rss feed.145 //use the excerpt field for rss feed. 146 146 $rss_use_excerpt = 1; 147 147 … … 149 149 // ** Weblogs.com ping ** 150 150 151 #set this to 1 if you want your site to be listed on http://weblogs.com when you add a new post151 // set this to 1 if you want your site to be listed on http://weblogs.com when you add a new post 152 152 $use_weblogsping = 0; 153 153 … … 155 155 // ** Blo.gs ping ** 156 156 157 #set this to 1 if you want your site to be listed on http://blo.gs when you add a new post157 // set this to 1 if you want your site to be listed on http://blo.gs when you add a new post 158 158 $use_blodotgsping = 0; 159 159 160 #if you ping blo.gs, this is the URL that will be sent to it (enter your blog's URL):160 // if you ping blo.gs, this is the URL that will be sent to it (enter your blog's URL): 161 161 $blodotgsping_url = 'http://example.com'; 162 162 … … 165 165 // ** Trackback / PingBack ** 166 166 167 #set this to 0 or 1, whether you want to allow your posts to be trackback'able or not168 #note: setting it to zero would also disable sending trackbacks167 // set this to 0 or 1, whether you want to allow your posts to be trackback'able or not 168 // note: setting it to zero would also disable sending trackbacks 169 169 $use_trackback = 1; 170 170 171 #set this to 0 or 1, whether you want to allow your posts to be pingback'able or not172 #note: setting it to zero would also disable sending pingbacks171 // set this to 0 or 1, whether you want to allow your posts to be pingback'able or not 172 // note: setting it to zero would also disable sending pingbacks 173 173 $use_pingback = 1; 174 174 … … 177 177 // ** Comments options ** 178 178 179 #set this to 1 to require e-mail and name, or 0 to allow comments without e-mail/name179 // set this to 1 to require e-mail and name, or 0 to allow comments without e-mail/name 180 180 $require_name_email = 0; 181 181 182 #here is a list of the tags that are allowed in the comments.183 #you can add tags to the list, just add them in the string,184 #add only the opening tag: for example, only '<a>' instead of '<a href=""></a>'182 // here is a list of the tags that are allowed in the comments. 183 // you can add tags to the list, just add them in the string, 184 // add only the opening tag: for example, only '<a>' instead of '<a href=""></a>' 185 185 186 186 $comment_allowed_tags = '<b><i><u><strong><em><code><blockquote><p><br><strike><a>'; 187 187 188 #set this to 1 to let every author be notified about comments on their posts188 // set this to 1 to let every author be notified about comments on their posts 189 189 $comments_notify = 1; 190 190 … … 193 193 // ** Smilies options ** 194 194 195 #set this to 1 to enable smiley conversion in posts196 #(note: this makes smiley conversion in ALL posts)195 // set this to 1 to enable smiley conversion in posts 196 // (note: this makes smiley conversion in ALL posts) 197 197 $use_smilies = 0; 198 198 199 #the directory where your smilies are (no trailing slash)199 // the directory where your smilies are (no trailing slash) 200 200 $smilies_directory = 'http://example.com/b2-img/smilies'; 201 201 202 #here's the conversion table, you can modify it if you know what you're doing202 // here's the conversion table, you can modify it if you know what you're doing 203 203 $b2smiliestrans = array( 204 204 ':)' => 'icon_smile.gif', … … 250 250 251 251 252 #the weekdays and the months.. translate them if necessary252 // the weekdays and the months.. translate them if necessary 253 253 254 254 $weekday[0]='Sunday'; … … 261 261 262 262 263 #the months, translate them if necessary - note: this isn't active everywhere yet263 // the months, translate them if necessary - note: this isn't active everywhere yet 264 264 $month['01']='January'; 265 265 $month['02']='February'; … … 277 277 278 278 279 #$b2inc is where the included b2 files are: that's generally the directory b2-include,280 #so you shouldn't have to change that setting279 // $b2inc is where the included b2 files are: that's generally the directory b2-include, 280 // so you shouldn't have to change that setting 281 281 $b2inc = 'b2-include'; 282 282 … … 293 293 // ** Configuration for b2mail.php ** (skip this if you don't intend to blog via email) 294 294 295 #mailserver settings295 // mailserver settings 296 296 $mailserver_url = 'mail.example.com'; 297 297 $mailserver_login = 'login@example.com'; … … 299 299 $mailserver_port = 110; 300 300 301 #by default posts will have this category301 // by default posts will have this category 302 302 $default_category = 1; 303 303 304 #subject prefix304 // subject prefix 305 305 $subjectprefix = 'blog:'; 306 306 307 #body terminator string (starting from this string, everything will be ignored, including this string)307 // body terminator string (starting from this string, everything will be ignored, including this string) 308 308 $bodyterminator = "___"; 309 309 310 #set this to 1 to run in test mode310 // set this to 1 to run in test mode 311 311 $thisisforfunonly = 0; 312 312 313 313 314 ###Special Configuration for some phone email services315 316 #some mobile phone email services will send identical subject & content on the same line317 #if you use such a service, set $use_phoneemail to 1, and indicate a separator string318 #when you compose your message, you'll type your subject then the separator string319 #then you type your login:password, then the separator, then content314 ////// Special Configuration for some phone email services 315 316 // some mobile phone email services will send identical subject & content on the same line 317 // if you use such a service, set $use_phoneemail to 1, and indicate a separator string 318 // when you compose your message, you'll type your subject then the separator string 319 // then you type your login:password, then the separator, then content 320 320 321 321 $use_phoneemail = 0; … … 340 340 341 341 // This is so the new admin location works 342 ini_set('include_path', ".:../:../$b2inc"); 342 // Set this path separator appropriately for your OS: semi-colon on windows, colon on unix 343 //$path_sep=';'; 344 $path_sep=':'; 345 ini_set('include_path', '.'.$path_sep.'..'.$path_sep."../$b2inc".$path_sep."./$b2inc"); 343 346 344 347 ?> -
trunk/b2login.php
r3 r40 296 296 header("Cache-Control: no-cache, must-revalidate"); /* to cope with HTTP/1.1 */ 297 297 header("Pragma: no-cache"); 298 header("Location: b2edit.php");298 header("Location: wp-admin/b2edit.php"); 299 299 exit(); 300 300 } … … 353 353 <input type="hidden" name="popuptitle" value="<?php echo $popuptitle ?>" /> 354 354 <?php } ?> 355 <input type="hidden" name="redirect_to" value=" b2edit.php" />355 <input type="hidden" name="redirect_to" value="wp-admin/b2edit.php" /> 356 356 <input type="hidden" name="action" value="login" /> 357 357 <table width="100" style="background-color: #ffffff"> -
trunk/wp-admin/b2header.php
r38 r40 3 3 require_once("../b2config.php"); 4 4 require_once($b2inc."/b2template.functions.php"); 5 require_once( $b2inc."/b2verifauth.php");5 require_once("b2verifauth.php"); 6 6 require_once($b2inc."/b2vars.php"); 7 7 require_once($b2inc."/b2functions.php"); -
trunk/wp-admin/b2menutop.php
r38 r40 8 8 if ($pagenow != "b2profile.php") { 9 9 10 $menu = file(" b2menutop.txt");10 $menu = file("./b2menutop.txt"); 11 11 $i=0; 12 12 $j=$menu[0]; -
trunk/wp-admin/b2profile.php
r38 r40 44 44 case "update": 45 45 46 require_once(" $b2inc/b2verifauth.php");46 require_once("b2verifauth.php"); 47 47 48 48 get_currentuserinfo(); … … 115 115 case "viewprofile": 116 116 117 require_once(" $b2inc/b2verifauth.php");117 require_once("b2verifauth.php"); 118 118 /* $profile=1; 119 119 -
trunk/wp-admin/b2template.php
r38 r40 1 1 <?php 2 $title = "Template(s) & file editing";2 $title = "Template(s) & file editing"; 3 3 /* <Template> */ 4 4 -
trunk/wp-admin/linkcategories.php
r38 r40 74 74 $standalone = 1; 75 75 include_once("./b2header.php"); 76 include_once("./links.php");77 76 78 77 $cat_id = $HTTP_POST_VARS["cat_id"]; … … 98 97 { 99 98 include_once ("./b2header.php"); 100 include_once("./links.php");101 99 $cat_id = $HTTP_POST_VARS["cat_id"]; 102 100 $cat_name=get_linkcatname($cat_id);
Note: See TracChangeset
for help on using the changeset viewer.