install/includes/stages/website.php
changeset 1227 bdac73ed481e
parent 1081 745200a9cc2a
equal deleted inserted replaced
1226:de56132c008d 1227:bdac73ed481e
    12  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
    12  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
    13  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
    13  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
    14  */
    14  */
    15 
    15 
    16 if ( !defined('IN_ENANO_INSTALL') )
    16 if ( !defined('IN_ENANO_INSTALL') )
    17   die();
    17 	die();
    18 
    18 
    19 // Note: this is called from database_*.php, not directly from install.php
    19 // Note: this is called from database_*.php, not directly from install.php
    20 
    20 
    21 $ui->add_header('<script type="text/javascript" src="includes/js/formutils.js"></script>');
    21 $ui->add_header('<script type="text/javascript" src="includes/js/formutils.js"></script>');
    22 $ui->show_header();
    22 $ui->show_header();
    23 
    23 
    24 ?>
    24 ?>
    25 
    25 
    26 <script type="text/javascript">
    26 <script type="text/javascript">
    27   // <![CDATA[
    27 	// <![CDATA[
    28   function ajaxMrwTest()
    28 	function ajaxMrwTest()
    29   {
    29 	{
    30     install_set_ajax_loading();
    30 		install_set_ajax_loading();
    31     // Send a series of tests to the server, and if we get an "expected" response
    31 		// Send a series of tests to the server, and if we get an "expected" response
    32     setTimeout("ajaxGet(scriptPath + '/install/rewrite', __ajaxMrwTest_chain_rewrite);", 750);
    32 		setTimeout("ajaxGet(scriptPath + '/install/rewrite', __ajaxMrwTest_chain_rewrite);", 750);
    33   }
    33 	}
    34   var __ajaxMrwTest_chain_rewrite = function()
    34 	var __ajaxMrwTest_chain_rewrite = function()
    35   {
    35 	{
    36     if ( ajax.readyState == 4 )
    36 		if ( ajax.readyState == 4 )
    37     {
    37 		{
    38       if ( ajax.responseText == 'good_rewrite' )
    38 			if ( ajax.responseText == 'good_rewrite' )
    39       {
    39 			{
    40         ajaxMrwSet('rewrite');
    40 				ajaxMrwSet('rewrite');
    41       }
    41 			}
    42       else
    42 			else
    43       {
    43 			{
    44         ajaxGet(scriptPath + '/install/install.php/shortened?do=modrewrite_test', __ajaxMrwTest_chain_shortened);
    44 				ajaxGet(scriptPath + '/install/install.php/shortened?do=modrewrite_test', __ajaxMrwTest_chain_shortened);
    45       }
    45 			}
    46     }
    46 		}
    47   }
    47 	}
    48   var __ajaxMrwTest_chain_shortened = function()
    48 	var __ajaxMrwTest_chain_shortened = function()
    49   {
    49 	{
    50     if ( ajax.readyState == 4 )
    50 		if ( ajax.readyState == 4 )
    51     {
    51 		{
    52       if ( ajax.responseText == 'good_shortened' )
    52 			if ( ajax.responseText == 'good_shortened' )
    53       {
    53 			{
    54         ajaxMrwSet('shortened');
    54 				ajaxMrwSet('shortened');
    55       }
    55 			}
    56       else
    56 			else
    57       {
    57 			{
    58         ajaxGet(scriptPath + '/install/install.php?/tiny&do=modrewrite_test', __ajaxMrwTest_chain_tiny);
    58 				ajaxGet(scriptPath + '/install/install.php?/tiny&do=modrewrite_test', __ajaxMrwTest_chain_tiny);
    59       }
    59 			}
    60     }
    60 		}
    61   }
    61 	}
    62   var __ajaxMrwTest_chain_tiny = function()
    62 	var __ajaxMrwTest_chain_tiny = function()
    63   {
    63 	{
    64     if ( ajax.readyState == 4 )
    64 		if ( ajax.readyState == 4 )
    65     {
    65 		{
    66       if ( ajax.responseText == 'good_tiny' )
    66 			if ( ajax.responseText == 'good_tiny' )
    67       {
    67 			{
    68         ajaxMrwSet('tiny');
    68 				ajaxMrwSet('tiny');
    69       }
    69 			}
    70       else
    70 			else
    71       {
    71 			{
    72         ajaxGet(scriptPath + '/install/install.php?do=modrewrite_test&str=standard', __ajaxMrwTest_chain_standard);
    72 				ajaxGet(scriptPath + '/install/install.php?do=modrewrite_test&str=standard', __ajaxMrwTest_chain_standard);
    73       }
    73 			}
    74     }
    74 		}
    75   }
    75 	}
    76   var __ajaxMrwTest_chain_standard = function()
    76 	var __ajaxMrwTest_chain_standard = function()
    77   {
    77 	{
    78     if ( ajax.readyState == 4 )
    78 		if ( ajax.readyState == 4 )
    79     {
    79 		{
    80       if ( ajax.responseText == 'good_standard' )
    80 			if ( ajax.responseText == 'good_standard' )
    81       {
    81 			{
    82         ajaxMrwSet('standard');
    82 				ajaxMrwSet('standard');
    83       }
    83 			}
    84       else
    84 			else
    85       {
    85 			{
    86         install_unset_ajax_loading();
    86 				install_unset_ajax_loading();
    87         new messagebox(MB_OK | MB_ICONSTOP, $lang.get('website_msg_ajax_test_fail_title'), $lang.get('website_msg_ajax_test_fail_body'));
    87 				new messagebox(MB_OK | MB_ICONSTOP, $lang.get('website_msg_ajax_test_fail_title'), $lang.get('website_msg_ajax_test_fail_body'));
    88       }
    88 			}
    89     }
    89 		}
    90   }
    90 	}
    91   function ajaxMrwSet(level)
    91 	function ajaxMrwSet(level)
    92   {
    92 	{
    93     install_unset_ajax_loading();
    93 		install_unset_ajax_loading();
    94     if ( !in_array(level, ['rewrite', 'shortened', 'standard', 'tiny']) )
    94 		if ( !in_array(level, ['rewrite', 'shortened', 'standard', 'tiny']) )
    95       return false;
    95 			return false;
    96     
    96 		
    97     document.getElementById('url_radio_rewrite').checked = false;
    97 		document.getElementById('url_radio_rewrite').checked = false;
    98     document.getElementById('url_radio_shortened').checked = false;
    98 		document.getElementById('url_radio_shortened').checked = false;
    99     document.getElementById('url_radio_standard').checked = false;
    99 		document.getElementById('url_radio_standard').checked = false;
   100     document.getElementById('url_radio_tiny').checked = false;
   100 		document.getElementById('url_radio_tiny').checked = false;
   101     document.getElementById('url_radio_' + level).checked = true;
   101 		document.getElementById('url_radio_' + level).checked = true;
   102     document.getElementById('url_radio_' + level).focus();
   102 		document.getElementById('url_radio_' + level).focus();
   103     
   103 		
   104     switch ( level )
   104 		switch ( level )
   105     {
   105 		{
   106       case 'rewrite':
   106 			case 'rewrite':
   107         var str = $lang.get('website_msg_bestmethod_rewrite');
   107 				var str = $lang.get('website_msg_bestmethod_rewrite');
   108         break;
   108 				break;
   109       case 'shortened':
   109 			case 'shortened':
   110         var str = $lang.get('website_msg_bestmethod_shortened');
   110 				var str = $lang.get('website_msg_bestmethod_shortened');
   111         break;
   111 				break;
   112       case 'tiny':
   112 			case 'tiny':
   113         var str = $lang.get('website_msg_bestmethod_tiny');
   113 				var str = $lang.get('website_msg_bestmethod_tiny');
   114         break;
   114 				break;
   115       case 'standard':
   115 			case 'standard':
   116         var str = $lang.get('website_msg_bestmethod_standard');
   116 				var str = $lang.get('website_msg_bestmethod_standard');
   117         break;
   117 				break;
   118     }
   118 		}
   119     document.getElementById('mrw_report').className = 'info-box-mini';
   119 		document.getElementById('mrw_report').className = 'info-box-mini';
   120     document.getElementById('mrw_report').innerHTML = str;
   120 		document.getElementById('mrw_report').innerHTML = str;
   121   }
   121 	}
   122   
   122 	
   123   function verify()
   123 	function verify()
   124   {
   124 	{
   125     var frm = document.forms['install_website'];
   125 		var frm = document.forms['install_website'];
   126     var fail = false;
   126 		var fail = false;
   127     if ( frm.site_name.value == '' )
   127 		if ( frm.site_name.value == '' )
   128     {
   128 		{
   129       fail = true;
   129 			fail = true;
   130       $(frm.site_name).effect("shake", {}, 750);
   130 			$(frm.site_name).effect("shake", {}, 750);
   131       frm.site_name.focus();
   131 			frm.site_name.focus();
   132     }
   132 		}
   133     if ( frm.site_desc.value == '' )
   133 		if ( frm.site_desc.value == '' )
   134     {
   134 		{
   135       $(frm.site_desc).effect("shake", {}, 750);
   135 			$(frm.site_desc).effect("shake", {}, 750);
   136       if ( !fail )
   136 			if ( !fail )
   137         frm.site_desc.focus();
   137 				frm.site_desc.focus();
   138       fail = true;
   138 			fail = true;
   139     }
   139 		}
   140     if ( frm.copyright.value == '' )
   140 		if ( frm.copyright.value == '' )
   141     {
   141 		{
   142       $(frm.copyright).effect("shake", {}, 750);
   142 			$(frm.copyright).effect("shake", {}, 750);
   143       if ( !fail )
   143 			if ( !fail )
   144         frm.copyright.focus();
   144 				frm.copyright.focus();
   145       fail = true;
   145 			fail = true;
   146     }
   146 		}
   147     return ( !fail );
   147 		return ( !fail );
   148   }
   148 	}
   149   // ]]>
   149 	// ]]>
   150 </script>
   150 </script>
   151 
   151 
   152 <form action="install.php?stage=login" method="post" name="install_website" onsubmit="return verify();"><?php
   152 <form action="install.php?stage=login" method="post" name="install_website" onsubmit="return verify();"><?php
   153   foreach ( $_POST as $key => &$value )
   153 	foreach ( $_POST as $key => &$value )
   154   {
   154 	{
   155     if ( !preg_match('/^[a-z0-9_]+$/', $key) )
   155 		if ( !preg_match('/^[a-z0-9_]+$/', $key) )
   156       die('You idiot hacker...');
   156 			die('You idiot hacker...');
   157     if ( $key == '_cont' )
   157 		if ( $key == '_cont' )
   158       continue;
   158 			continue;
   159     $value_clean = str_replace(array('\\', '"', '<', '>'), array('\\\\', '\\"', '&lt;', '&gt;'), $value);
   159 		$value_clean = str_replace(array('\\', '"', '<', '>'), array('\\\\', '\\"', '&lt;', '&gt;'), $value);
   160     echo "\n  <input type=\"hidden\" name=\"$key\" value=\"$value_clean\" />";
   160 		echo "\n  <input type=\"hidden\" name=\"$key\" value=\"$value_clean\" />";
   161   }
   161 	}
   162   
   162 	
   163   $https = ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' );
   163 	$https = ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' );
   164   $scriptpath_full = 'http' . ( $https ? 's' : '' ) . '://' . $_SERVER['HTTP_HOST'] . scriptPath . '/';
   164 	$scriptpath_full = 'http' . ( $https ? 's' : '' ) . '://' . $_SERVER['HTTP_HOST'] . scriptPath . '/';
   165   ?>
   165 	?>
   166   
   166 	
   167   <?php
   167 	<?php
   168   $patch_necessary = ( ( strtolower(PHP_OS) == 'win32' || strtolower(PHP_OS) == 'winnt' ) && strstr(@$_SERVER['SERVER_SOFTWARE'], 'Apache/2.2') );
   168 	$patch_necessary = ( ( strtolower(PHP_OS) == 'win32' || strtolower(PHP_OS) == 'winnt' ) && strstr(@$_SERVER['SERVER_SOFTWARE'], 'Apache/2.2') );
   169   if ( defined('WINDOWS_MOD_REWRITE_WORKAROUNDS') )
   169 	if ( defined('WINDOWS_MOD_REWRITE_WORKAROUNDS') )
   170   {
   170 	{
   171     ?>
   171 		?>
   172       <div class="usermessage">
   172 			<div class="usermessage">
   173         <b><?php echo $lang->get('website_msg_modrewrite_enabled'); ?></b><br />
   173 				<b><?php echo $lang->get('website_msg_modrewrite_enabled'); ?></b><br />
   174         <?php if ( $patch_necessary ): ?>
   174 				<?php if ( $patch_necessary ): ?>
   175           <?php echo $lang->get('website_msg_modrewrite_necessary'); ?>
   175 					<?php echo $lang->get('website_msg_modrewrite_necessary'); ?>
   176         <?php else: ?>
   176 				<?php else: ?>
   177           <?php echo $lang->get('website_msg_modrewrite_unnecessary'); ?>
   177 					<?php echo $lang->get('website_msg_modrewrite_unnecessary'); ?>
   178         <?php endif; ?>
   178 				<?php endif; ?>
   179       </div>
   179 			</div>
   180     <?php
   180 		<?php
   181   }
   181 	}
   182   else
   182 	else
   183   {
   183 	{
   184     if ( $patch_necessary ):
   184 		if ( $patch_necessary ):
   185     ?>
   185 		?>
   186       <div class="usermessage">
   186 			<div class="usermessage">
   187         <b><?php echo $lang->get('website_msg_modrewrite_disabled'); ?></b><br />
   187 				<b><?php echo $lang->get('website_msg_modrewrite_disabled'); ?></b><br />
   188         <?php echo $lang->get('website_msg_modrewrite_maybeneeded'); ?>
   188 				<?php echo $lang->get('website_msg_modrewrite_maybeneeded'); ?>
   189       </div>
   189 			</div>
   190     <?php
   190 		<?php
   191     endif;
   191 		endif;
   192   }
   192 	}
   193   ?>
   193 	?>
   194   
   194 	
   195   <table border="0" cellspacing="0" cellpadding="10">
   195 	<table border="0" cellspacing="0" cellpadding="10">
   196     <tr>
   196 		<tr>
   197       <td>
   197 			<td>
   198         <b><?php echo $lang->get('website_field_name'); ?></b><br />
   198 				<b><?php echo $lang->get('website_field_name'); ?></b><br />
   199         <span id="hint_site_name" class="fieldtip"><?php echo $lang->get('website_field_name_hint'); ?></span>
   199 				<span id="hint_site_name" class="fieldtip"><?php echo $lang->get('website_field_name_hint'); ?></span>
   200       </td>
   200 			</td>
   201       <td style="width: 50%;">
   201 			<td style="width: 50%;">
   202         <input type="text" name="site_name" size="50" tabindex="1" />
   202 				<input type="text" name="site_name" size="50" tabindex="1" />
   203       </td>
   203 			</td>
   204     </tr>
   204 		</tr>
   205     
   205 		
   206     <tr>
   206 		<tr>
   207       <td>
   207 			<td>
   208         <b><?php echo $lang->get('website_field_desc'); ?></b><br />
   208 				<b><?php echo $lang->get('website_field_desc'); ?></b><br />
   209         <span id="hint_site_desc" class="fieldtip"><?php echo $lang->get('website_field_desc_hint'); ?></span>
   209 				<span id="hint_site_desc" class="fieldtip"><?php echo $lang->get('website_field_desc_hint'); ?></span>
   210       </td>
   210 			</td>
   211       <td>
   211 			<td>
   212         <input type="text" name="site_desc" size="50" tabindex="2" />
   212 				<input type="text" name="site_desc" size="50" tabindex="2" />
   213       </td>
   213 			</td>
   214     </tr>
   214 		</tr>
   215     
   215 		
   216     <tr>
   216 		<tr>
   217       <td>
   217 			<td>
   218         <b><?php echo $lang->get('website_field_copyright'); ?></b><br />
   218 				<b><?php echo $lang->get('website_field_copyright'); ?></b><br />
   219         <span id="hint_copyright" class="fieldtip"><?php echo $lang->get('website_field_copyright_hint'); ?></span>
   219 				<span id="hint_copyright" class="fieldtip"><?php echo $lang->get('website_field_copyright_hint'); ?></span>
   220       </td>
   220 			</td>
   221       <td>
   221 			<td>
   222         <input type="text" name="copyright" size="50" tabindex="3" />
   222 				<input type="text" name="copyright" size="50" tabindex="3" />
   223       </td>
   223 			</td>
   224     </tr>
   224 		</tr>
   225     
   225 		
   226     <tr>
   226 		<tr>
   227       <td>
   227 			<td>
   228         <b><?php echo $lang->get('website_field_startwith'); ?></b>
   228 				<b><?php echo $lang->get('website_field_startwith'); ?></b>
   229       </td>
   229 			</td>
   230       <td>
   230 			<td>
   231       
   231 			
   232         <table border="0">
   232 				<table border="0">
   233           <tr>
   233 					<tr>
   234             <td>
   234 						<td>
   235       
   235 			
   236               <label>
   236 							<label>
   237                 <input type="radio" name="default_content_type" value="blank" checked="checked" tabindex="4" />
   237 								<input type="radio" name="default_content_type" value="blank" checked="checked" tabindex="4" />
   238                 <?php echo $lang->get('website_field_startwith_blank'); ?>
   238 								<?php echo $lang->get('website_field_startwith_blank'); ?>
   239               </label>
   239 							</label>
   240               <span class="fieldtip" id="hint_default_content_type_blank">
   240 							<span class="fieldtip" id="hint_default_content_type_blank">
   241                 <p><?php echo $lang->get('website_field_startwith_blank_hint'); ?></p>
   241 								<p><?php echo $lang->get('website_field_startwith_blank_hint'); ?></p>
   242               </span>
   242 							</span>
   243               
   243 							
   244               <br />
   244 							<br />
   245               
   245 							
   246               <label>
   246 							<label>
   247                 <input type="radio" name="default_content_type" value="tutorial" tabindex="4" />
   247 								<input type="radio" name="default_content_type" value="tutorial" tabindex="4" />
   248                 <?php echo $lang->get('website_field_startwith_tutorial'); ?>
   248 								<?php echo $lang->get('website_field_startwith_tutorial'); ?>
   249               </label>
   249 							</label>
   250               <span class="fieldtip" id="hint_default_content_type_tutorial">
   250 							<span class="fieldtip" id="hint_default_content_type_tutorial">
   251                 <p><?php echo $lang->get('website_field_startwith_tutorial_hint'); ?></p>
   251 								<p><?php echo $lang->get('website_field_startwith_tutorial_hint'); ?></p>
   252               </span>
   252 							</span>
   253               
   253 							
   254             </td>
   254 						</td>
   255           </tr>
   255 					</tr>
   256         </table>
   256 				</table>
   257         
   257 				
   258       </td>
   258 			</td>
   259     </tr>
   259 		</tr>
   260     
   260 		
   261     <tr>
   261 		<tr>
   262       <td valign="top">
   262 			<td valign="top">
   263         <b><?php echo $lang->get('website_field_urlscheme'); ?></b><br />
   263 				<b><?php echo $lang->get('website_field_urlscheme'); ?></b><br />
   264         <?php echo $lang->get('website_field_urlscheme_hint'); ?>
   264 				<?php echo $lang->get('website_field_urlscheme_hint'); ?>
   265       </td>
   265 			</td>
   266       <td>
   266 			<td>
   267       
   267 			
   268         <table border="0" cellpadding="10" cellspacing="0">
   268 				<table border="0" cellpadding="10" cellspacing="0">
   269           <tr>
   269 					<tr>
   270             <td valign="top">
   270 						<td valign="top">
   271               <input type="radio" name="url_scheme" value="standard" id="url_radio_standard" tabindex="6" />
   271 							<input type="radio" name="url_scheme" value="standard" id="url_radio_standard" tabindex="6" />
   272             </td>
   272 						</td>
   273             <td>
   273 						<td>
   274               <label for="url_radio_standard">
   274 							<label for="url_radio_standard">
   275                 <b><?php echo $lang->get('website_field_urlscheme_opt_standard'); ?></b>
   275 								<b><?php echo $lang->get('website_field_urlscheme_opt_standard'); ?></b>
   276               </label>
   276 							</label>
   277               <span class="fieldtip" id="hint_url_scheme_standard">
   277 							<span class="fieldtip" id="hint_url_scheme_standard">
   278                 <p><?php echo $lang->get('website_field_urlscheme_opt_standard_hint'); ?></p>
   278 								<p><?php echo $lang->get('website_field_urlscheme_opt_standard_hint'); ?></p>
   279                 <p><small><b><?php echo $lang->get('website_field_urlscheme_lbl_example'); ?></b> <tt><?php echo $scriptpath_full . 'index.php?title=Page'; ?></tt></small></p>
   279 								<p><small><b><?php echo $lang->get('website_field_urlscheme_lbl_example'); ?></b> <tt><?php echo $scriptpath_full . 'index.php?title=Page'; ?></tt></small></p>
   280               </span>
   280 							</span>
   281             </td>
   281 						</td>
   282           </tr>
   282 					</tr>
   283         </table>
   283 				</table>
   284         
   284 				
   285         <table border="0" cellpadding="10" cellspacing="0">
   285 				<table border="0" cellpadding="10" cellspacing="0">
   286           <tr>
   286 					<tr>
   287             <td valign="top">
   287 						<td valign="top">
   288               <input type="radio" checked="checked" name="url_scheme" value="shortened" id="url_radio_shortened" tabindex="6" />
   288 							<input type="radio" checked="checked" name="url_scheme" value="shortened" id="url_radio_shortened" tabindex="6" />
   289             </td>
   289 						</td>
   290             <td>
   290 						<td>
   291               <label for="url_radio_shortened">
   291 							<label for="url_radio_shortened">
   292                 <b><?php echo $lang->get('website_field_urlscheme_opt_shortened'); ?></b>
   292 								<b><?php echo $lang->get('website_field_urlscheme_opt_shortened'); ?></b>
   293               </label>
   293 							</label>
   294               <span class="fieldtip" id="hint_url_scheme_shortened">
   294 							<span class="fieldtip" id="hint_url_scheme_shortened">
   295                 <p><?php echo $lang->get('website_field_urlscheme_opt_shortened_hint'); ?></p>
   295 								<p><?php echo $lang->get('website_field_urlscheme_opt_shortened_hint'); ?></p>
   296                 <p><small><b><?php echo $lang->get('website_field_urlscheme_lbl_example'); ?></b> <tt><?php echo $scriptpath_full . 'index.php/Page'; ?></tt></small></p>
   296 								<p><small><b><?php echo $lang->get('website_field_urlscheme_lbl_example'); ?></b> <tt><?php echo $scriptpath_full . 'index.php/Page'; ?></tt></small></p>
   297               </span>
   297 							</span>
   298             </td>
   298 						</td>
   299           </tr>
   299 					</tr>
   300         </table>
   300 				</table>
   301         
   301 				
   302         <table border="0" cellpadding="10" cellspacing="0">
   302 				<table border="0" cellpadding="10" cellspacing="0">
   303           <tr>
   303 					<tr>
   304             <td valign="top">
   304 						<td valign="top">
   305               <input type="radio" name="url_scheme" value="rewrite" id="url_radio_rewrite" tabindex="6" />
   305 							<input type="radio" name="url_scheme" value="rewrite" id="url_radio_rewrite" tabindex="6" />
   306             </td>
   306 						</td>
   307             <td>
   307 						<td>
   308               <label for="url_radio_rewrite">
   308 							<label for="url_radio_rewrite">
   309                 <b><?php echo $lang->get('website_field_urlscheme_opt_rewrite'); ?></b>
   309 								<b><?php echo $lang->get('website_field_urlscheme_opt_rewrite'); ?></b>
   310               </label>
   310 							</label>
   311               <span id="hint_url_scheme_rewrite" class="fieldtip">
   311 							<span id="hint_url_scheme_rewrite" class="fieldtip">
   312                 <p><?php echo $lang->get('website_field_urlscheme_opt_rewrite_hint'); ?></p>
   312 								<p><?php echo $lang->get('website_field_urlscheme_opt_rewrite_hint'); ?></p>
   313                 <p><small><b><?php echo $lang->get('website_field_urlscheme_lbl_example'); ?></b> <tt><?php echo $scriptpath_full . 'Page'; ?></tt></small></p>
   313 								<p><small><b><?php echo $lang->get('website_field_urlscheme_lbl_example'); ?></b> <tt><?php echo $scriptpath_full . 'Page'; ?></tt></small></p>
   314               </span>
   314 							</span>
   315             </td>
   315 						</td>
   316           </tr>
   316 					</tr>
   317         </table>
   317 				</table>
   318         
   318 				
   319         <table border="0" cellpadding="10" cellspacing="0">
   319 				<table border="0" cellpadding="10" cellspacing="0">
   320           <tr>
   320 					<tr>
   321             <td valign="top">
   321 						<td valign="top">
   322               <input type="radio" name="url_scheme" value="tiny" id="url_radio_tiny" tabindex="6" />
   322 							<input type="radio" name="url_scheme" value="tiny" id="url_radio_tiny" tabindex="6" />
   323             </td>
   323 						</td>
   324             <td>
   324 						<td>
   325               <label for="url_radio_tiny">
   325 							<label for="url_radio_tiny">
   326                 <b><?php echo $lang->get('website_field_urlscheme_opt_tiny'); ?></b>
   326 								<b><?php echo $lang->get('website_field_urlscheme_opt_tiny'); ?></b>
   327               </label>
   327 							</label>
   328               <span id="hint_url_scheme_tiny" class="fieldtip">
   328 							<span id="hint_url_scheme_tiny" class="fieldtip">
   329                 <p><?php echo $lang->get('website_field_urlscheme_opt_tiny_hint'); ?></p>
   329 								<p><?php echo $lang->get('website_field_urlscheme_opt_tiny_hint'); ?></p>
   330                 <p><small><b><?php echo $lang->get('website_field_urlscheme_lbl_example'); ?></b> <tt><?php echo $scriptpath_full . '?/Page'; ?></tt></small></p>
   330 								<p><small><b><?php echo $lang->get('website_field_urlscheme_lbl_example'); ?></b> <tt><?php echo $scriptpath_full . '?/Page'; ?></tt></small></p>
   331               </span>
   331 							</span>
   332             </td>
   332 						</td>
   333           </tr>
   333 					</tr>
   334         </table>
   334 				</table>
   335         
   335 				
   336         <p>
   336 				<p>
   337           <a href="#mrw_scan" onclick="ajaxMrwTest(); return false;" tabindex="5"><?php echo $lang->get('website_btn_urlscheme_detect'); ?></a>
   337 					<a href="#mrw_scan" onclick="ajaxMrwTest(); return false;" tabindex="5"><?php echo $lang->get('website_btn_urlscheme_detect'); ?></a>
   338         </p>
   338 				</p>
   339         
   339 				
   340         <div id="mrw_report"></div>
   340 				<div id="mrw_report"></div>
   341         
   341 				
   342       </td>
   342 			</td>
   343     </tr>
   343 		</tr>
   344     
   344 		
   345   </table>
   345 	</table>
   346   
   346 	
   347   <div style="text-align: center;">
   347 	<div style="text-align: center;">
   348     <input type="submit" name="_cont" value="<?php echo $lang->get('meta_btn_continue'); ?>" tabindex="7" />
   348 		<input type="submit" name="_cont" value="<?php echo $lang->get('meta_btn_continue'); ?>" tabindex="7" />
   349   </div>
   349 	</div>
   350   
   350 	
   351 </form>
   351 </form>
   352 
   352