Changeset 2566:9bf417837888 for admin/blog.php
- Timestamp:
- 11/17/13 20:25:53 (12 years ago)
- Branch:
- 2.6
- Children:
- 2567:6c11245cbf04, 2568:61c67a7d17fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/blog.php
r2314 r2566 28 28 $blog_name = $cur->blog_name = $_POST['blog_name']; 29 29 $blog_desc = $cur->blog_desc = $_POST['blog_desc']; 30 30 31 31 try 32 32 { 33 33 # --BEHAVIOR-- adminBeforeBlogCreate 34 34 $core->callBehavior('adminBeforeBlogCreate',$cur,$blog_id); 35 35 36 36 $core->addBlog($cur); 37 37 38 38 # Default settings and override some 39 39 $core->blogDefaults($cur->blog_id); … … 42 42 $blog_settings->system->put('lang',$core->auth->getInfo('user_lang')); 43 43 $blog_settings->system->put('blog_timezone',$core->auth->getInfo('user_tz')); 44 44 45 45 if (substr($blog_url,-1) == '?') { 46 46 $blog_settings->system->put('url_scan','query_string'); … … 48 48 $blog_settings->system->put('url_scan','path_info'); 49 49 } 50 50 51 51 # --BEHAVIOR-- adminAfterBlogCreate 52 52 $core->callBehavior('adminAfterBlogCreate',$cur,$blog_id,$blog_settings); … … 75 75 )) 76 76 ); 77 77 78 78 echo 79 79 '<form action="blog.php" method="post" id="blog-form">'. 80 80 81 81 '<div>'.$core->formNonce().'</div>'. 82 82 '<p><label class="required" for="blog_id"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog ID:').'</label> '. … … 88 88 '<p class="form-note warn">'.__('Please note that changing your blog ID may require changes in your public index.php file.').'</p>'; 89 89 } 90 90 91 91 echo 92 92 '<p><label class="required" for="blog_name"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog name:').'</label> '. 93 93 form::field('blog_name',30,255,html::escapeHTML($blog_name)).'</p>'. 94 94 95 95 '<p><label class="required" for="blog_url"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog URL:').'</label> '. 96 96 form::field('blog_url',30,255,html::escapeHTML($blog_url)).'</p>'. 97 97 98 98 '<p class="area"><label for="blog_desc">'.__('Blog description:').'</label> '. 99 99 form::textarea('blog_desc',60,5,html::escapeHTML($blog_desc)).'</p>'. 100 100 101 101 '<p><input type="submit" accesskey="s" value="'.__('Create').'" /></p>'. 102 102 '</form>'; … … 105 105 dcPage::close(); 106 106 } 107 ?>
Note: See TracChangeset
for help on using the changeset viewer.