<div style="text-align:center;"> <form action="admin.php?freiload=theme_maker&do=create_theme" method="POST" id="myform" > <input id="theme_name" type="text" name="theme_name" value="ThemeName" onclick="this.value=''" onblur="if(this.value=='')this.value='ThemeName'"/> <input type="text" id="author_name" name="author_name" value="Author Name" onclick="this.value=''" onblur="if(this.value=='')this.value='Author Name'"/> <input id='ctb' type="button" value="Create Theme" onclick="submitform()" /> </form> </div> <div style="text-align:center"> <div id="theme_list" style="text-align:center"> <?php $thm = new theme_maker('../'); $themes = $thm->list_themes(); $a = ''; foreach ($themes as $theme) { echo '<div class="theme_element"> <span id="theme_name_' . $theme . '" class="elem_theme_name">' . $theme . '</span> <span class="elem_edit"><input onclick="rename(\'' . $theme . '\')" type="button" value="Rename" /></span> <span id="design_theme_' . $theme . '" class="elem_edit"><input onclick="document.location = \'admin.php?freiload=theme_maker&load=theme_editor&theme_name=' . $theme . '\'" type="button" value="Design" /></span> <span onclick="delete_theme(\'' . $theme . '\')" class="elem_delete"><img src="admin_files/theme_maker/delete.jpg" height="33px" width="40px" alt="delete"/></span> </div>'; } ?> </div> </div> <script type="text/javascript">
$filename = $this->path . '/' . strip_tags($_POST['file']); preg_match_all('/<\\?php(.*?)\\?>/s', $format, $matches); foreach ($matches[0] as $match) { $new = str_replace("^", ";", $match); $format = str_replace($match, $new, $format); } $preformat = ''; if ($file == 'css.php') { $preformat = "<?php\n// Note: argument.php and css.php are connected\nheader('Content-Type: text/css');\n\ninclude RDIR . '/client/jquery/freichat_themes/' . \$freichat_theme . '/argument.php';\n\ninclude 'chatroom_css.php';\ninclude 'speech_css.php';\n?>\n\n/*-------------------------------------------------------------------------------------------------------------------------------------*\n/*Start of Main css style for the complete chatbox */\n\n/*X_CSS_PARSE*/\n"; } $format = $preformat . $format; file_put_contents($filename, rtrim($format)); } } if (isset($_REQUEST['action'])) { $theme = new theme_maker('../../../'); if ($_REQUEST['action'] == 'restore') { $theme->reset_argfile(); } else { if ($_REQUEST['action'] == 'save') { $theme->save(); } else { if ($_REQUEST['action'] == 'list_themes') { $theme->list_themes(); } else { if ($_REQUEST['action'] == 'change_theme') { $theme->change_theme(); } else { if ($_REQUEST['action'] == 'delete_theme') { $theme->delete_theme(); } else {