Okay, so I have this script I'm trying to write. I'm a little stuck. What I'm trying to write is a theme script. When the user loads the theme page, they are presented with a text box and a submit button. When the user types in the address to the theme they want to be activated, it calls upon the theme-updater.php file which then updates the variable data in the theme-loader.php file. This file will then redirect the user to the selected theme.
What I have so far is provided below:
themes-updater.php
<form method="post" action="themes-updater.php">
<br><span class="style41"><span class="style43">*</span> </span>
<input class="style41" name="$update_theme_url" style="width: 309px" type="text" value="../content/themes/">
<strong>
<input class="style42" name="Submit1" type="submit" value="Apply">
themes-updater.php
<?php
$update_theme_url = "$url";
$fh = fopen("../theme-loader.php","r");
fwrite($fh,'$update_theme_url');
?>
theme-loader.php
<?php
$url = "content/themes/default/index.php";
header ("location: $url");
?>
Any help would be greatly appreciated.
Thanks in Advance!
- Michael