Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Block for to change theme in PHP-NUKE
Anonymous
post Jan 21 2005, 11:07 AM
Post #1





Guests






The visitor of your web site PHP-NUKE can change to the design or theme quickly with this block biggrin.gif

<?php

if (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>";

?>
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. [request] Runescape Theme Web Template(2)
  2. Telemarketing Block List - Canada(1)
  3. How To: Change Your Website's Index File(24)
  4. This Is A Help Question On How To(2)
  5. How Do I Change The Default Windows Font Size?(4)
  6. Sentences In Certain Books Which Change Your Life(9)
  7. Chage Ip Adress(3)
  8. Text Size In "fill-in" Form Blanks(2)
  9. Unable To Change Cpanel Password(5)
  10. Read-only Folders In Xp(13)
  11. How To Hack Windows Pinball!(24)
  12. How To Change Windows Xp Language ?(23)
  13. What Is Phase Change Cooling?(14)
  14. My Minimalist Wordpress Theme(7)
  15. How To Change The Gradient Type And Make A Gradient On Adobe Photoshop Cs3(1)
  1. Background Image Swap Script(15)
  2. Myspace Theme(11)
  3. What Would You Rather Change In Windows(5)
  4. Php Nuke(2)
  5. Change Your Computer Password(6)
  6. Whow to change template on php nuke(4)
  7. Change Font Size On Taskbar Buttons(4)
  8. Change Domain Name On Account Creation?(2)
  9. free nuke themes(33)
  10. need a good and simple php-nuke tutorial(17)
  11. Power Distribution Change Reboot After 8pm Pst On Saturday May 31, 2008(5)
  12. Is Religious Fundamental A Stumbling Block?(2)
  13. What Is Theme Of Your Current Desktop Image(19)
  14. Span "display: _____" Problems(2)
  15. Review My Wordpress Theme(7)


 



- Lo-Fi Version Time is now: 7th October 2008 - 01:47 AM