Jump to content
xisto Community
Sign in to follow this  
iGuest

Block for to change theme in PHP-NUKE

Recommended Posts

The visitor of your web site PHP-NUKE can change to the design or theme quickly with this block :P <?phpif (eregi("block-Themes.php", $PHP_SELF)) { Header("Location: index.php"); die(); } global $user, $userinfo, $Default_Theme, $cookie; getusrinfo($user); $content .="<center>"; $content .= "<form action="modules.php?name=Your_Account" method="post">"; $content .= "<p></p>"; $content .= "<BR>"; $content .= "<select name="theme" onchange=submit();>"; $handle=opendir('themes'); while ($file = readdir($handle)) { if ( (!ereg("[.]",$file)) ) { $themelist .= "$file "; } } closedir($handle); $themelist = explode(" ", $themelist); sort($themelist); for ($i=0; $i < sizeof($themelist); $i++) { if($themelist[$i]!="") { $content .= "<option value="$themelist[$i]" "; if((($userinfo[theme]=="") && ($themelist[$i]=="$Default_Theme")) || ($userinfo[theme]==$themelist[$i])) $content .= "selected"; $content .= ">$themelist[$i]n"; } } $content .= "</select>"; $content .= "<input type="hidden" name="storynum" value="$userinfo[storynum]">"; $content .= "<input type="hidden" name="ublockon" value="$userinfo[ublockon]">"; $content .= "<input type="hidden" name="ublock" value="$userinfo[ublock]">"; $content .= "<input type="hidden" name="uname" value="$userinfo[uname]">"; $content .= "<input type="hidden" name="user_id" value="$userinfo[user_id]">"; $content .= "<input type="hidden" name="op" value="savetheme">"; $content .= "</form>"; $content .= "</center>"; ?>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.