mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-15 04:57:02 +02:00
rewrote php session variables
This commit is contained in:
@ -66,7 +66,7 @@
|
||||
<div class="controls">
|
||||
<select name="theme">
|
||||
<?php foreach(Registry::get('themes') as $t) { ?>
|
||||
<option value="<?php print $t; ?>"<?php if(isset($_SESSION['theme']) && $_SESSION['theme'] == $t) { ?> selected="selected"<?php } ?>><?php print $t; ?></option>
|
||||
<option value="<?php print $t; ?>"<?php if($theme == $t) { ?> selected="selected"<?php } ?>><?php print $t; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
@ -77,7 +77,7 @@
|
||||
<select name="lang">
|
||||
<option value=""><?php print $text_use_browser_settings; ?></option>
|
||||
<?php foreach(Registry::get('langs') as $t) { ?>
|
||||
<option value="<?php print $t; ?>"<?php if(isset($_SESSION['lang']) && $_SESSION['lang'] == $t) { ?> selected="selected"<?php } ?>><?php print $t; ?></option>
|
||||
<option value="<?php print $t; ?>"<?php if($lang == $t) { ?> selected="selected"<?php } ?>><?php print $t; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user