"> <$mt:setvar name="position_actions_bottom" value="1"$> <$mtapp:PageActions$> <__trans phrase="Your blog configuration has been saved.">
"> " /> " /> " /> " />
" hint="<__trans phrase="Select the theme you wish to use for this blog.">" show_hint="1" help_page="blog_settings_general" help_section="blog_theme"> " hint="<__trans phrase="Name your blog. The blog name can be changed at any time.">" show_hint="1" help_page="blog_settings_general" help_section="blog_name"> " onkeyup="dirify_blog_name(this)"/> " hint="<__trans phrase="Enter the URL of your Blog. Exclude the filename (i.e. index.html). Example: http://www.example.com/blog/">" show_hint="1" help_page="blog_settings_publishing" help_section="site_url">
://" />." />
" help_page="blog_settings_publishing" help_section="site_root">
" />
" class="blog-path-text text hide-input required" />
checked="checked" class="cb" />
<__trans phrase="The path where your index files will be located. An absolute path (starting with '/' for Linux or 'C:\' for Windows) is preferred. Do not end with '/' or '\'. Example: /home/mt/public_html or C:\www\public_html">
<__trans phrase="The path where your index files will be located. Do not end with '/' or '\'. Example: /home/mt/public_html/blog or C:\www\public_html\blog">
" hint="<__trans phrase="Select your timezone from the pulldown menu.">" show_hint="1" help_page="blog_settings_general" help_section="blog_timezone"> " hint="<__trans phrase="If you choose a different language than the default language defined at the system level, you may need to change module names in certain templates to include different global modules.">" show_hint="1" show_warning="1">
init(); jQuery.mtUseSubdomain(); jQuery.mtUseAbsolute(); jQuery('.blog-subdomain-text').bind('keyup focusin focusout', function($e) { var $orig = jQuery(this).parents('.url-field:first').find('.blog-url-text'); var ns = jQuery.data( $orig.get(0), 'mtValidator' ); if ( ns ) { $orig.mtValid({ focus: false }); } $e.stopPropagation(); return false; }); function is_valid_url(url_){ if (url_.indexOf(' ') != -1) { return false; } return url_.match(/^https?:\/\/[a-z0-9-\.]+\/?([^\s<>\#%"\,\{\}\\|\\\^\[\]`]+)?$/); } function is_valid_path(path_){ var str = path_.replace(/[ "%<>\[\\\]\^`{\|}~]/g, ""); //" str = encodeURI(str); if (str.indexOf('%') != -1) { return false; } if (str.match(/\.\./)) { return false; } if ( path_.match(/^\//) || path_.match(/^[a-zA-Z]:\\/) || path_.match(/^\\\\[a-zA-Z0-9\.]+/ ) ) { return false; } return true; } function is_valid_absolute_path(path_) { if ( path_.match(/^\//) || path_.match(/^[a-zA-Z]:\\/) || path_.match(/^\\\\[a-zA-Z0-9\.]+/ ) ) { return true; } return false; } jQuery.mtValidateAddRules({ '#site_url_path': function ($e) { var base = '://'; var $chk = $e.parents().find('.url-field:first').find(':checkbox:checked'); var $subdomain = $e.parents().find('.url-field:first').find('.blog-subdomain-text'); if ( $chk.length && $subdomain.val().length) { base = '://' + $subdomain.val() + '.'; } var ret = is_valid_url(base + $e.val()); if (ret) { $subdomain.addClass('valid').removeClass('error'); } else { $subdomain.removeClass('valid').addClass('error'); } return ret; }, '#site_path': function ($e) { return is_valid_path($e.val()); }, '#site_path_absolute': function ($e) { if ( jQuery('#use_absolute:checked').length <= 0 ) { return true; } return is_valid_absolute_path($e.val()); }, '#server_offset': function ($e) { return $e.val() !== ''; } }); jQuery.mtValidateAddMessages({ '#name': '<__trans phrase="You must set your Blog Name." escape="singlequotes">', '#server_offset': '<__trans phrase="You did not select a time zone." escape="singlequotes">', '#site_url_path': '<__trans phrase="You must set a valid Site URL." escape="singlequotes">', '#site_path.required': '<__trans phrase="You must set your Local Site Path." escape="singlequotes">', '#site_path': '<__trans phrase="You must set a valid local site path." escape="singlequotes">', '#site_path_absolute.required': '<__trans phrase="You must set your Local Site Path." escape="singlequotes">', '#site_path_absolute': '<__trans phrase="You must set a valid local site path." escape="singlequotes">' }); jQuery('#cfg_form').submit( function () { if ( !jQuery(this).find('input:visible, select:visible').mtValidate('simple') ) return false; });