Theme editer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Theme editer

    hey there i got this code of mobilezonez wona add it to methos that members can edit their own themes but it dnt work what must i change in the script
    Code:
    genproc.php
    ////////////////edit theme//////////////
    else if($action=="theme")
    {
        addonline(getuid_sid($sid),"Editing Theme","");
    $tid=$_POST['tid'];
    $blah = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM themes WHERE uid=$uid AND id=$tid"));
    if($blah[0]>0){
    $res = mysql_query("UPDATE themes SET titlebg='".$_POST['titlebg']."', titleshade='".$_POST['titleshade']."', footershade='".$_POST['footershade']."', titlecolor='".$_POST['titlecolor']."', divbg='".$_POST['divbg']."', alink='".$_POST['alink']."', vlink='".$_POST['vlink']."', timebarbg='".$_POST['timebarbg']."', timebarshade='".$_POST['timebarshade']."', pagebg='".$_POST['pagebg']."', pagetext='".$_POST['pagetext']."', logoshade='".$_POST['logoshade']."', inputboxbg='".$_POST['inputboxbg']."', inputboxtext='".$_POST['inputboxtext']."', inputboxborder='".$_POST['inputboxborder']."', buttonbg='".$_POST['buttonbg']."', buttontext='".$_POST['buttontext']."', buttonborder='".$_POST['buttonborder']."', name='".$_POST['nm']."' WHERE uid=$uid AND id=$tid");
    }
    else
    $res=mysql_query("INSERT INTO themes SET name='".$_POST['nm']."', uid = '".$uid."', footershade='".$_POST['footershade']."', titlebg='".$_POST['titlebg']."', titleshade='".$_POST['titleshade']."', titlecolor='".$_POST['titlecolor']."', divbg='".$_POST['divbg']."', alink='".$_POST['alink']."', vlink='".$_POST['vlink']."', timebarbg='".$_POST['timebarbg']."', timebarshade='".$_POST['timebarshade']."', pagebg='".$_POST['pagebg']."', pagetext='".$_POST['pagetext']."', logoshade='".$_POST['logoshade']."', inputboxbg='".$_POST['inputboxbg']."', inputboxtext='".$_POST['inputboxtext']."', inputboxborder='".$_POST['inputboxborder']."', buttonbg='".$_POST['buttonbg']."', buttontext='".$_POST['buttontext']."', buttonborder='".$_POST['buttonborder']."', applied=1");
         if($res)
      {
        echo "<img src=\"images/ok.gif\" alt=\"o\"/>Your theme was successfully edited!!<br/>";
      }else{
        echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error editing theme. Try again later!<br/>";
      }
      echo "</p>";
      echo "<br/>Not satisfied? <a href=\"index.php?sid=$sid&amp;action=theme&amp;tid=$tid\">Customise again</a> or choose from <a href=\"index.php?action=presetthm&amp;sid=$sid\">preset themes</a>.";
    }
    ///////////Set Theme/////////////////////////
    
    else if($action=="setthm")
    {
    addonline(getuid_sid($sid),"Setting Preset Theme","");
    $uid = getuid_sid($sid);
        $sql = "SELECT COUNT(*) FROM themes WHERE uid='".$uid."'";
       $res = mysql_query($sql);
        while($blah=mysql_fetch_array($res))
    {
        $cur=$blah[0];
    }
    if($cur>=10)
    {
    	echo "You have reached your limit of total allowed themes.<br/> Delete a theme if you want to set another.<br/><a href=\"index.php?action=mainthm&amp;sid=$sid\">Themes Menu</a>";
    }
    else {
    	$blah=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM themes WHERE uid=$uid AND name='".$_POST['nm']."'"));
    	if($blah[0]==0){
    $res1 = mysql_query("UPDATE themes SET applied='0' WHERE uid=$uid");
    $res=mysql_query("INSERT INTO themes SET uid='".$uid."', titlebg='".$_POST['titlebg']."', footershade='".$_POST['footershade']."', titleshade='".$_POST['titleshade']."', titlecolor='".$_POST['titlecolor']."', divbg='".$_POST['divbg']."', alink='".$_POST['alink']."', vlink='".$_POST['vlink']."', timebarbg='".$_POST['timebarbg']."', timebarshade='".$_POST['timebarshade']."', pagebg='".$_POST['pagebg']."', pagetext='".$_POST['pagetext']."', logoshade='".$_POST['logoshade']."', inputboxbg='".$_POST['inputboxbg']."', inputboxtext='".$_POST['inputboxtext']."', inputboxborder='".$_POST['inputboxborder']."', buttonbg='".$_POST['buttonbg']."', buttontext='".$_POST['buttontext']."', buttonborder='".$_POST['buttonborder']."', name='".$_POST['nm']."', applied='1'");
    	}
    	else{
    $res1 = mysql_query("UPDATE themes SET applied='0' WHERE uid=$uid");
    $res=mysql_query("UPDATE themes SET applied='1' WHERE name='".$_POST['nm']."' AND uid=$uid");
    	}
    }
    if($res)
     {
       echo "<img src=\"images/ok.gif\" alt=\"o\"/>Your theme was successfully set!<br/><a href=\"index.php?action=mainthm&amp;sid=$sid\">Themes Menu</a>";
      }else{
       echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error saving theme. Try again later!<br/><a href=\"index.php?action=mainthm&amp;sid=$sid\">Themes Menu</a>";
      }
    }
    ////////////////Delete Theme////////////////////
    
    else if($action=="delthm"){
    addonline(getuid_sid($sid),"Deleting Theme","index.php?action=$action");
    $tid = $_GET["tid"];
    $who = getuid_sid($sid);
    $oid = mysql_fetch_array(mysql_query("SELECT uid,applied FROM themes WHERE id='".$tid."'"));
    if($oid[1]==1){
    echo "You can't delete a theme which is already applied!!!<br/><br/><a href=\"index.php?action=mainthm&amp;sid=$sid\">Themes Menu</a>";
    echo "</center></div></div></font></body></html>";
    exit();
    }
    if($who==$oid[0])
    { $res = mysql_query("DELETE FROM themes WHERE id=$tid");
       if($res)
       {echo "<img src=\"images/ok.gif\" alt=\"O\"/>Theme Deleted Sucessfully!<br/><br/><a href=\"index.php?action=mainthm&amp;sid=$sid\">Themes Menu</a>";
       }else
       {echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error! Try Again Later.<br/><br/><a href=\"index.php?action=mainthm&amp;sid=$sid\">Themes Menu</a>";
       }
    }
    else { echo "This theme aint yours. Trying to be nosy? eh?<br/><br/><a href=\"index.php?action=mainthm&amp;sid=$sid\">Themes Menu</a>"; }
    }
    /////////////////////Apply Theme/////////////////
    else if($action=="appthm"){
    addonline(getuid_sid($sid),"Applying Theme","index.php?action=$action");
    $tid = $_GET["tid"];
    $who = $uid;
    		$res = mysql_query("UPDATE themes SET applied=0 WHERE uid=$uid");
    	$res = mysql_query("UPDATE themes SET applied=1 WHERE uid=$uid AND id=$tid");
    if($res)
       {echo "<img src=\"images/ok.gif\" alt=\"O\"/>Theme Applied Sucessfully!<br/><br/><a href=\"index.php?action=mainthm&amp;sid=$sid\">Themes Menu</a>";
       }else
       {echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error! Try Again Later.<br/><br/><a href=\"index.php?action=mainthm&amp;sid=$sid\">Themes Menu</a>";
      }
    }
    ////////////////updating font size///////////////
    
    else if($action=="font")
    {
        addonline(getuid_sid($sid),"Updating font size","");
        $size = $_POST["size"];
        $res = mysql_query("UPDATE ibwf_users SET fontsize='".$size."' WHERE id='".$uid."'");
        if($res)
      {
        echo "<img src=\"images/ok.gif\" alt=\"o\"/>Your font size was updated successfully<br/>";
      }else{
        echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error updating font size. Try again later!<br/>";
      }
     }
    index.php?action=cpanel
    Code:
    echo "<a href=\"index.php?action=mainthm&amp;sid=$sid\">&#187;Manage Themes</a><br/>";

    any place on index.php
    Code:
    /////////////////set font size/////////////
    else if($action=="font"){
    addonline($uid,"Setting font size","index.php?action=$action");
    $ppp = mysql_fetch_array(mysql_query("SELECT ppp FROM ibwf_users WHERE id = $uid"));
    gettimebar();
    getnewmsg($sid);
    getshouts($sid);
    boxstart("Font Size");
    echo "
    <p>Please choose the size of text to be displayed:<br/>
    <form action=\"genproc.php?action=font&amp;sid=$sid\" method=\"post\">
    <select id=\"iputText\" name=\"size\">
    <option value=\"1\">Small</option>
    <option value=\"2\">Medium</option>
    <option value=\"3\">Large</option>
    </select>
    <br/><input id=\"inputButton\" type=\"submit\" value=\"Set\"/>
    </form>
    </p>";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
    boxend();
    }
    /////////////Themes Main Menu/////////////
    else if($action=="mainthm"){
    addonline($uid,"Themes Menu","index.php?action=$action");
    gettimebar();
    getnewmsg($sid);
    getalert($sid);
    getshouts($sid);
    boxstart("Themes Menu");
    echo "Here you can fiddle with your theme.<br/>
    <a href=\"index.php?action=font&amp;sid=$sid\">Set Font Size</a><br/>
    <a href=\"index.php?action=presetthm&amp;sid=$sid\">Select Preset Theme</a><br/>";
    $blah=mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM themes WHERE uid=$uid"));
    if($blah[0]>0){
    $tid = mysql_fetch_array(mysql_query("SELECT id FROM themes WHERE uid='".$uid."' AND applied=1"));
    }
    else $tid = mysql_fetch_array(mysql_query("SELECT id FROM themes WHERE uid=4 AND applied=1"));
    echo "<a href=\"index.php?action=theme&amp;sid=$sid&amp;tid=$tid[0]\">Edit Current Theme</a><br/>";
    echo "<a href=\"index.php?action=svdthm&amp;sid=$sid\">View/Edit Saved Themes</a><br/>";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
    boxend();
    }
    /////////////Themes Main Menu/////////////
    else if($action=="presetthm"){
    addonline($uid,"Choosing preset theme","index.php?action=$action");
    gettimebar();
    getnewmsg($sid);
    getalert($sid);
    getshouts($sid);
    boxstart("Preset Themes");
    echo "Here you can choose from several preset themes. This is easy for the newbies. Experts can edit the theme themselves.<br/>";
    echo "
    <form action=\"genproc.php?action=setthm&amp;sid=$sid\" method=\"post\">
    <input type=\"hidden\" name=\"titlebg\" value=\"#78b1b8\"/>
    <input type=\"hidden\" name=\"titleshade\" value=\"tbg_vista.gif\"/>
    <input type=\"hidden\" name=\"titlecolor\" value=\"#ffffff\"/>
    <input type=\"hidden\" name=\"divbg\" value=\"#ffffff\" />
    <input type=\"hidden\" name=\"alink\" value=\"black\"/>
    <input type=\"hidden\" name=\"vlink\" value=\"black\"/>
    <input type=\"hidden\" name=\"timebarbg\" value=\"#78b1b8\"/>
    <input type=\"hidden\" name=\"timebarshade\" value=\"lbg_vista.gif\"/>
    <input type=\"hidden\" name=\"pagebg\" value=\"white\"/>
    <input type=\"hidden\" name=\"pagetext\" value=\"black\"/>
    <input type=\"hidden\" name=\"logoshade\" value=\"lbg_vista.gif\"/>
    <input type=\"hidden\" name=\"inputboxbg\" value=\"white\"/>
    <input type=\"hidden\" name=\"inputboxtext\" value=\"#494a4b\"/>
    <input type=\"hidden\" name=\"inputboxborder\" value=\"#78b1b8\"/>
    <input type=\"hidden\" name=\"buttonbg\" value=\"white\"/>
    <input type=\"hidden\" name=\"buttontext\" value=\"#78b1b8\"/>
    <input type=\"hidden\" name=\"buttonborder\" value=\"#494a4b\"/>
    <input type=\"hidden\" name=\"footershade\" value=\"f_vista.gif\"/>
    <input type=\"hidden\" name=\"nm\" value=\"Vista\"/>
    <input id=\"inputButton\" type=\"submit\" value=\"Vista\"/></form><br/>
    <form action=\"genproc.php?action=setthm&amp;sid=$sid\" method=\"post\">
    <input type=\"hidden\" name=\"titlebg\" value=\"#2c6fff\"/>
    <input type=\"hidden\" name=\"titleshade\" value=\"tbg_xp.gif\"/>
    <input type=\"hidden\" name=\"titlecolor\" value=\"#ffffff\"/>
    <input type=\"hidden\" name=\"divbg\" value=\"#ffffff\" />
    <input type=\"hidden\" name=\"alink\" value=\"#215dc6\"/>
    <input type=\"hidden\" name=\"vlink\" value=\"#215dc6\"/>
    <input type=\"hidden\" name=\"timebarbg\" value=\"#ffde9a\"/>
    <input type=\"hidden\" name=\"timebarshade\" value=\"lbg_vista.gif\"/>
    <input type=\"hidden\" name=\"pagebg\" value=\"white\"/>
    <input type=\"hidden\" name=\"pagetext\" value=\"black\"/>
    <input type=\"hidden\" name=\"logoshade\" value=\"lbg_vista.gif\"/>
    <input type=\"hidden\" name=\"inputboxbg\" value=\"white\"/>
    <input type=\"hidden\" name=\"inputboxtext\" value=\"black\"/>
    <input type=\"hidden\" name=\"inputboxborder\" value=\"#0058ee\"/>
    <input type=\"hidden\" name=\"buttonbg\" value=\"white\"/>
    <input type=\"hidden\" name=\"buttontext\" value=\"#0058ee\"/>
    <input type=\"hidden\" name=\"buttonborder\" value=\"black\"/>
    <input type=\"hidden\" name=\"footershade\" value=\"f_vista.gif\"/>
    <input type=\"hidden\" name=\"nm\" value=\"XP\"/>
    <input id=\"inputButton\" type=\"submit\" value=\"XP\"/></form><br/>
    <form action=\"genproc.php?action=setthm&amp;sid=$sid\" method=\"post\">
    <input type=\"hidden\" name=\"titlebg\" value=\"#4e515b\"/>
    <input type=\"hidden\" name=\"titleshade\" value=\"tbg_black.gif\"/>
    <input type=\"hidden\" name=\"titlecolor\" value=\"#cfd1d6\"/>
    <input type=\"hidden\" name=\"divbg\" value=\"#08090a\" />
    <input type=\"hidden\" name=\"alink\" value=\"#93afb9\"/>
    <input type=\"hidden\" name=\"vlink\" value=\"#93afb9\"/>
    <input type=\"hidden\" name=\"timebarbg\" value=\"#4e515b\"/>
    <input type=\"hidden\" name=\"timebarshade\" value=\"lbg_black.gif\"/>
    <input type=\"hidden\" name=\"pagebg\" value=\"#2e343b\"/>
    <input type=\"hidden\" name=\"pagetext\" value=\"#fafafa\"/>
    <input type=\"hidden\" name=\"logoshade\" value=\"lbg_black.gif\"/>
    <input type=\"hidden\" name=\"inputboxbg\" value=\"#08090a\"/>
    <input type=\"hidden\" name=\"inputboxtext\" value=\"#cdced4\"/>
    <input type=\"hidden\" name=\"inputboxborder\" value=\"#93afb9\"/>
    <input type=\"hidden\" name=\"buttonbg\" value=\"#08090a\"/>
    <input type=\"hidden\" name=\"buttontext\" value=\"#cdced4\"/>
    <input type=\"hidden\" name=\"buttonborder\" value=\"#93afb9\"/>
    <input type=\"hidden\" name=\"footershade\" value=\"f_black.gif\"/>
    <input type=\"hidden\" name=\"nm\" value=\"Royal Black\"/>
    <input id=\"inputButton\" type=\"submit\" value=\"Royale Black\"/></form><br/>
    <form action=\"genproc.php?action=setthm&amp;sid=$sid\" method=\"post\">
    <input type=\"hidden\" name=\"titlebg\" value=\"#ff9bfd\"/>
    <input type=\"hidden\" name=\"titleshade\" value=\"tbg_pink.gif\"/>
    <input type=\"hidden\" name=\"titlecolor\" value=\"#3600c0\"/>
    <input type=\"hidden\" name=\"divbg\" value=\"white\" />
    <input type=\"hidden\" name=\"alink\" value=\"#58aa60\"/>
    <input type=\"hidden\" name=\"vlink\" value=\"#58aa60\"/>
    <input type=\"hidden\" name=\"timebarbg\" value=\"#ff9bfd\"/>
    <input type=\"hidden\" name=\"timebarshade\" value=\"lbg_brown.gif\"/>
    <input type=\"hidden\" name=\"pagebg\" value=\"white\"/>
    <input type=\"hidden\" name=\"pagetext\" value=\"#006600\"/>
    <input type=\"hidden\" name=\"logoshade\" value=\"lbg_brown.gif\"/>
    <input type=\"hidden\" name=\"inputboxbg\" value=\"white\"/>
    <input type=\"hidden\" name=\"inputboxtext\" value=\"#58aa60\"/>
    <input type=\"hidden\" name=\"inputboxborder\" value=\"#ff66fe\"/>
    <input type=\"hidden\" name=\"buttonbg\" value=\"white\"/>
    <input type=\"hidden\" name=\"buttontext\" value=\"#ff66fe\"/>
    <input type=\"hidden\" name=\"buttonborder\" value=\"#58aa60\"/>
    <input type=\"hidden\" name=\"footershade\" value=\"f_vista.gif\"/>
    <input type=\"hidden\" name=\"nm\" value=\"Green Pink\"/>
    <input id=\"inputButton\" type=\"submit\" value=\"Green Pink\"/></form><br/>
    <form action=\"genproc.php?action=setthm&amp;sid=$sid\" method=\"post\">
    <input type=\"hidden\" name=\"titlebg\" value=\"#FF6B6B\"/>
    <input type=\"hidden\" name=\"titleshade\" value=\"tbg_red.gif\"/>
    <input type=\"hidden\" name=\"titlecolor\" value=\"white\"/>
    <input type=\"hidden\" name=\"divbg\" value=\"white\" />
    <input type=\"hidden\" name=\"alink\" value=\"#000000\"/>
    <input type=\"hidden\" name=\"vlink\" value=\"#000000\"/>
    <input type=\"hidden\" name=\"timebarbg\" value=\"#FF6B6B\"/>
    <input type=\"hidden\" name=\"timebarshade\" value=\"lbg_brown.gif\"/>
    <input type=\"hidden\" name=\"pagebg\" value=\"white\"/>
    <input type=\"hidden\" name=\"pagetext\" value=\"#767676\"/>
    <input type=\"hidden\" name=\"logoshade\" value=\"lbg_brown.gif\"/>
    <input type=\"hidden\" name=\"inputboxbg\" value=\"white\"/>
    <input type=\"hidden\" name=\"inputboxtext\" value=\"#767676\"/>
    <input type=\"hidden\" name=\"inputboxborder\" value=\"red\"/>
    <input type=\"hidden\" name=\"buttonbg\" value=\"white\"/>
    <input type=\"hidden\" name=\"buttontext\" value=\"red\"/>
    <input type=\"hidden\" name=\"buttonborder\" value=\"#d6d6d6\"/>
    <input type=\"hidden\" name=\"footershade\" value=\"lbg_red.gif\"/>
    <input type=\"hidden\" name=\"nm\" value=\"Red\"/>
    <input id=\"inputButton\" type=\"submit\" value=\"Red\"/></form><br/>
    <form action=\"genproc.php?action=setthm&amp;sid=$sid\" method=\"post\">
    <input type=\"hidden\" name=\"titlebg\" value=\"#ffcb59\"/>
    <input type=\"hidden\" name=\"titleshade\" value=\"tbg_yellow.gif\"/>
    <input type=\"hidden\" name=\"titlecolor\" value=\"white\"/>
    <input type=\"hidden\" name=\"divbg\" value=\"white\" />
    <input type=\"hidden\" name=\"alink\" value=\"#aa9758\"/>
    <input type=\"hidden\" name=\"vlink\" value=\"#aa9758\"/>
    <input type=\"hidden\" name=\"timebarbg\" value=\"#9bbbff\"/>
    <input type=\"hidden\" name=\"timebarshade\" value=\"lbg_brown.gif\"/>
    <input type=\"hidden\" name=\"pagebg\" value=\"white\"/>
    <input type=\"hidden\" name=\"pagetext\" value=\"#e16400\"/>
    <input type=\"hidden\" name=\"logoshade\" value=\"lbg_brown.gif\"/>
    <input type=\"hidden\" name=\"inputboxbg\" value=\"white\"/>
    <input type=\"hidden\" name=\"inputboxtext\" value=\"#c67347\"/>
    <input type=\"hidden\" name=\"inputboxborder\" value=\"#6699ff\"/>
    <input type=\"hidden\" name=\"buttonbg\" value=\"white\"/>
    <input type=\"hidden\" name=\"buttontext\" value=\"#6699ff\"/>
    <input type=\"hidden\" name=\"buttonborder\" value=\"#c67347\"/>
    <input type=\"hidden\" name=\"footershade\" value=\"f_vista.gif\"/>
    <input type=\"hidden\" name=\"nm\" value=\"Yellow\"/>
    <input id=\"inputButton\" type=\"submit\" value=\"Yellow\"/></form><br/>
    <form action=\"genproc.php?action=setthm&amp;sid=$sid\" method=\"post\">
    <input type=\"hidden\" name=\"titlebg\" value=\"#012e60\"/>
    <input type=\"hidden\" name=\"titleshade\" value=\"tbg_aero.gif\"/>
    <input type=\"hidden\" name=\"titlecolor\" value=\"white\"/>
    <input type=\"hidden\" name=\"divbg\" value=\"#f1f4f8\" />
    <input type=\"hidden\" name=\"alink\" value=\"black\"/>
    <input type=\"hidden\" name=\"vlink\" value=\"black\"/>
    <input type=\"hidden\" name=\"timebarbg\" value=\"#ffde9a\"/>
    <input type=\"hidden\" name=\"timebarshade\" value=\"lbg_aero.gif\"/>
    <input type=\"hidden\" name=\"pagebg\" value=\"#022045\"/>
    <input type=\"hidden\" name=\"pagetext\" value=\"#002b77\"/>
    <input type=\"hidden\" name=\"logoshade\" value=\"lbg_aero.gif\"/>
    <input type=\"hidden\" name=\"inputboxbg\" value=\"#f1f4f8\"/>
    <input type=\"hidden\" name=\"inputboxtext\" value=\"#479AC6\"/>
    <input type=\"hidden\" name=\"inputboxborder\" value=\"#718292\"/>
    <input type=\"hidden\" name=\"buttonbg\" value=\"#f1f4f8\"/>
    <input type=\"hidden\" name=\"buttontext\" value=\"#718292\"/>
    <input type=\"hidden\" name=\"buttonborder\" value=\"#479AC6\"/>
    <input type=\"hidden\" name=\"footershade\" value=\"f_aero.gif\"/>
    <input type=\"hidden\" name=\"nm\" value=\"Aero\"/>
    <input id=\"inputButton\" type=\"submit\" value=\"Aero\"/></form><br/>
    <form action=\"genproc.php?action=setthm&amp;sid=$sid\" method=\"post\">
    <input type=\"hidden\" name=\"titlebg\" value=\"#222222\"/>
    <input type=\"hidden\" name=\"titleshade\" value=\"\"/>
    <input type=\"hidden\" name=\"titlecolor\" value=\"#00FF00\"/>
    <input type=\"hidden\" name=\"divbg\" value=\"#333333\" />
    <input type=\"hidden\" name=\"alink\" value=\"#00FF00\"/>
    <input type=\"hidden\" name=\"vlink\" value=\"#00FF00\"/>
    <input type=\"hidden\" name=\"timebarbg\" value=\"#222222\"/>
    <input type=\"hidden\" name=\"timebarshade\" value=\"\"/>
    <input type=\"hidden\" name=\"pagebg\" value=\"black\"/>
    <input type=\"hidden\" name=\"pagetext\" value=\"#009900\"/>
    <input type=\"hidden\" name=\"logoshade\" value=\"\"/>
    <input type=\"hidden\" name=\"inputboxbg\" value=\"#333333\"/>
    <input type=\"hidden\" name=\"inputboxtext\" value=\"black\"/>
    <input type=\"hidden\" name=\"inputboxborder\" value=\"#009900\"/>
    <input type=\"hidden\" name=\"buttonbg\" value=\"#333333\"/>
    <input type=\"hidden\" name=\"buttontext\" value=\"#009900\"/>
    <input type=\"hidden\" name=\"buttonborder\" value=\"black\"/>
    <input type=\"hidden\" name=\"footershade\" value=\"f_matrix.gif\"/>
    <input type=\"hidden\" name=\"nm\" value=\"Matrix\"/>
    <input id=\"inputButton\" type=\"submit\" value=\"Matrix\"/></form><br/>
    <form action=\"genproc.php?action=setthm&amp;sid=$sid\" method=\"post\">
    <input type=\"hidden\" name=\"titlebg\" value=\"#333333\"/>
    <input type=\"hidden\" name=\"titleshade\" value=\"\"/>
    <input type=\"hidden\" name=\"titlecolor\" value=\"white\"/>
    <input type=\"hidden\" name=\"divbg\" value=\"#eeeeee\" />
    <input type=\"hidden\" name=\"alink\" value=\"#0066ff\"/>
    <input type=\"hidden\" name=\"vlink\" value=\"#0066ff\"/>
    <input type=\"hidden\" name=\"timebarbg\" value=\"#333333\"/>
    <input type=\"hidden\" name=\"timebarshade\" value=\"\"/>
    <input type=\"hidden\" name=\"pagebg\" value=\"white\"/>
    <input type=\"hidden\" name=\"pagetext\" value=\"black\"/>
    <input type=\"hidden\" name=\"logoshade\" value=\"\"/>
    <input type=\"hidden\" name=\"inputboxbg\" value=\"white\"/>
    <input type=\"hidden\" name=\"inputboxtext\" value=\"black\"/>
    <input type=\"hidden\" name=\"inputboxborder\" value=\"#333333\"/>
    <input type=\"hidden\" name=\"buttonbg\" value=\"white\"/>
    <input type=\"hidden\" name=\"buttontext\" value=\"black\"/>
    <input type=\"hidden\" name=\"buttonborder\" value=\"#333333\"/>
    <input type=\"hidden\" name=\"footershade\" value=\"f_opera.gif\"/>
    <input type=\"hidden\" name=\"nm\" value=\"Opera - WML\"/>
    <input id=\"inputButton\" type=\"submit\" value=\"Opera - WML\"/></form><br/>
    ";
    echo "<a href=\"index.php?action=mainthm&amp;sid=$sid\">Themes Menu</a>";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
    boxend();
    }
    /////////////////customise theme/////////////
    else if($action=="theme"){
    addonline($uid,"Editing a theme","index.php?action=$action");
    gettimebar();
    getnewmsg($sid);
    getalert($sid);
    getshouts($sid);
    $tid = $_GET["tid"];
    $quer = mysql_fetch_array(mysql_query("SELECT * FROM themes WHERE id='".$tid."'"));
    boxstart("Edit Theme - $quer[20]");
    echo "Here you can edit a theme. You can enter hex values of colours(like #FFD6AA) in the text boxes below or write individual colour names from this list:<br/><br/> aliceblue, antiquewhite, aqua, aquamarine, azure, beige, bisque, black, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan, darkblue, darkcyan, darkgoldenrod, darkgray, darkgreen, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darksalmon, darkseagreen, darkslateblue, darkslategray, darkturquise, darkviolet, deeppink, deepskyblue, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen, fuchsia, gainsboro, ghostwhite, gold, goldenrod, green, greenyellow, gray, hotpink, indianred, indigo, khaki, lavender, lavenderblush, lawngreen, lemonchiffon, lightblue, lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgreen, lightpink, lightsalmon, lightseagreen, lightskyblue, lightslategray, lightsteelblue, lightyellow, lime, limegreen, linen, magenta, maroon, mediumaqamarine, mediumblue, mediumorchid, mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen, mediumturquise, mediumvioletred, midnightblue, mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive, olivedrab, orange, orangered, orchid, palegoldenrod, palegreen, paleturquise, palevioletred, papayawhip, peachpuff, peru, pink, plum, powderblue, purple, red, rosybrown, royalblue, saddlebrown, salmon, sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue, slategray, snow, springgreen, steelblue, tan, teal, thistle, tomato, turquoise, violet, wheat, white, whitesmoke, yellow, yellowgreen<br/>
    <br/>";
    echo "<form action=\"genproc.php?action=theme&amp;sid=$sid\" method=\"post\">
    Theme name: <br/><input id=\"inputText\" type=\"text\" name=\"nm\" value=\"$quer[20]\"/><br/>
    Title background:<br/> <input id=\"inputText\" type=\"text\" name=\"titlebg\" value=\"$quer[2]\"/><br/>
    Title shade:<br/> <select id=\"inputText\" type=\"text\" name=\"titleshade\" value=\"$quer[3]\">
    <option value=\"tbg_black.gif\">Black</option>
    <option value=\"tbg_aero.gif\">Aero</option>
    <option value=\"tbg_pink.gif\">Pink</option>
    <option value=\"tbg_red.gif\">Red</option>
    <option value=\"tbg_xp.gif\">XP</option>
    <option value=\"tbg_vista.gif\">Vista</option>
    <option value=\"tbg_yellow.gif\">Yellow</option>
    </select><br/>
    Title text:<br/> <input id=\"inputText\" type=\"text\" name=\"titlecolor\" value=\"$quer[4]\"/><br/>
    Content background:<br/> <input id=\"inputText\" type=\"text\" name=\"divbg\" value=\"$quer[5]\" /><br/>
    Active link : <br/><input id=\"inputText\" type=\"text\" name=\"alink\" value=\"$quer[6]\"/><br/>
    Visited link : <br/><input id=\"inputText\" type=\"text\" name=\"vlink\" value=\"$quer[7]\"/><br/>
    Timebar background: <br/><input id=\"inputText\" type=\"text\" name=\"timebarbg\" value=\"$quer[8]\"/><br/>
    Timebar shade:<br/> <select id=\"inputText\" type=\"text\" name=\"timebarshade\" value=\"$quer[9]\">
    <option value=\"lbg_black.gif\">Black</option>
    <option value=\"lbg_aero.gif\">Aero</option>
    <option value=\"lbg_brown.gif\">Brown</option>
    <option value=\"lbg_vista.gif\">Vista</option>
    </select><br/>
    Page background: <br/><input id=\"inputText\" type=\"text\" name=\"pagebg\" value=\"$quer[10]\"/><br/>
    Text: <br/><input id=\"inputText\" type=\"text\" name=\"pagetext\" value=\"$quer[11]\"/><br/>
    Logo shade:<br/> <select id=\"inputText\" type=\"text\" name=\"logoshade\" value=\"$quer[12]\">
    <option value=\"lbg_black.gif\">Black</option>
    <option value=\"lbg_aero.gif\">Aero</option>
    <option value=\"lbg_brown.gif\">Brown</option>
    <option value=\"lbg_vista.gif\">Vista</option>
    <option value=\"lbg_red.gif\">Red</option>
    </select><br/>
    Inputbox background: <br/><input id=\"inputText\" type=\"text\" name=\"inputboxbg\" value=\"$quer[13]\"/><br/>
    Inputbox text: <br/><input id=\"inputText\" type=\"text\" name=\"inputboxtext\" value=\"$quer[14]\"/><br/>
    Inputbox border: <br/><input id=\"inputText\" type=\"text\" name=\"inputboxborder\" value=\"$quer[15]\"/><br/>
    Inputbutton background: <br/><input id=\"inputText\" type=\"text\" name=\"buttonbg\" value=\"$quer[16]\"/><br/>
    Inputbutton text: <br/><input id=\"inputText\" type=\"text\" name=\"buttontext\" value=\"$quer[17]\"/><br/>
    Inputbutton border: <br/><input id=\"inputText\" type=\"text\" name=\"buttonborder\" value=\"$quer[18]\"/><br/>
    Footer shade:<br/> <select id=\"inputText\" type=\"text\" name=\"footershade\" value=\"$quer[19]\">
    <option value=\"f_black.gif\">Black</option>
    <option value=\"f_aero.gif\">Aero</option>
    <option value=\"f_vista.gif\">Vista</option>
    <option value=\"f_opera.gif\">Opera</option>
    <option value=\"f_matrix.gif\">Matrix</option>
    <option value=\"lbg_red.gif\">Red</option>
    </select><br/>
    <input type=\"hidden\" name=\"tid\" value=\"$tid\"/>
    <input id=\"inputButton\" type=\"submit\" value=\"Edit Theme\"/>
    </form><br/>";
    echo "<br/><a href=\"index.php?action=mainthm&amp;sid=$sid\">Themes Menu</a>";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
    boxend();
    }
    //////////////////Stored Themes//////////////////////
    else if($action=="svdthm"){
    addonline($uid,"Stored Themes","index.php?action=$action");
    gettimebar();
    getnewmsg($sid);
    getalert($sid);
    getshouts($sid);
    $limit = 10;
    $noi = "SELECT COUNT(*) FROM themes WHERE uid = '".$uid."'";
    $noiq = mysql_query($noi);
    while($noinum=mysql_fetch_array($noiq))
    { $total=$noinum[0]; }
    $bal=$limit-$total;
    boxstart("Saved Themes");
    echo "Following are your stored Themes. You can delete or apply them.<br/>Click on the Theme name to edit it.<br/>";
    echo "You can store $bal more themes, out of a total of $limit allowed.<br/><br/>";
    $sql = "SELECT id,name FROM themes WHERE uid=$uid";
    $items = mysql_query($sql);
    while($item=mysql_fetch_array($items))
    {
                   $tlink = "<a href=\"index.php?action=theme&amp;sid=$sid&amp;tid=$item[0]\">".$item[1]."</a>";
                   echo "<b>$tlink</b> [<a href=\"genproc.php?action=appthm&amp;sid=$sid&amp;tid=$item[0]\">Apply</a>] | [<a href=\"genproc.php?action=delthm&amp;sid=$sid&amp;tid=$item[0]\">Delete</a>]<br/>";
    }     echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
    boxend();
    }

    core.php
    Code:
    ////////////////////////////////////////////////
    function gettheme($sid){
    $uid=getuid_sid($sid);
    if(!$uid){
    $uid=1;
    }
    $blah=mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM themes WHERE uid=$uid"));
    if($blah[0]>0){
    $thm = mysql_fetch_array(mysql_query("SELECT * FROM themes WHERE uid='".$uid."' AND applied=1"));
    }
    else $thm = mysql_fetch_array(mysql_query("SELECT * FROM themes WHERE uid=1 AND applied=1"));
    $blah = "<style type=\"text/css\">
    * {
    	margin: 0;
    	padding: 0;
    }
    .boxed {
    	width: 99%;
    	margin-bottom: 3px;
    	border: 1px solid #000000;
    }
    .boxedTitle {
    	height: 18px;
    	padding: 0 0 0 2px;
    	background: ".$thm[2]." url(images/".$thm[3].") repeat-x;
    }
    .boxedTitleText {
    	font-size: 11px;
    	color: ".$thm[4].";
    }
    .boxedContent {
    	padding: 2px 2px 2px 2px;
    	background: ".$thm[5].";
    }
    .logo {
    	padding: 2px 2px 2px 2px;
    	background: ".$thm[10]." url(images/".$thm[12].") repeat-x;
    }
    .footer {
    	width: 100%;
    	padding: 5px;
    	background: url(images/".$thm[19].") repeat-x;
    }
    h1 {
    	color: #000000;
    }
    a:visited {
    	color: ".$thm[7].";
    }
    a:link {
    	color: ".$thm[6].";
    }
    h5 {
    	height: 30px;
    	padding: 0 0 0 2px;
    	background: ".$thm[8]." url(images/".$thm[9].") repeat-x;
    	color: ".$thm[4].";
    }
    body {
    background: ".$thm[10]." ;
    font: normal small Arial, Helvetica, sans-serif, Verdana;
    color: ".$thm[11].";
    }
    #inputText {
    	background-color: ".$thm[13].";
    	color: ".$thm[14].";
    	border: 1px solid ".$thm[15].";
    }
    #inputButton {
    	background-color: ".$thm[16].";
    	color: ".$thm[17].";
    	border: 1px solid ".$thm[18].";
    }
    </style>
    ";
    return $blah;
    }
    function getlogo($uid){
    	if(!$uid){
    		$uid=1;
    	}
    	$name=mysql_fetch_array(mysql_query("SELECT name FROM themes WHERE uid=$uid AND applied=1"));
    	switch($name[0]){
    		case "Vista" :
                    $logo = "<img src=\"images/logo2.gif\" alt=\"waplive\" />";
                    break;
    		case "Red" :
                    $logo = "<img src=\"images/opera1.gif\" alt=\"waplive\" />";
                    break;
    		case "XP" :
                    $logo = "<img src=\"images/vista1.gif\" alt=\"waplive\" />";
                    break;
    		case "Royal Black" :
                    $logo = "<img src=\"images/logo2.gif\" alt=\"waplive\" />";
                    break;
    		case "Green Pink" :
                    $logo = "<img src=\"images/pink1.gif\" alt=\"waplive\" />";
                    break;
    		case "Yellow" :
                    $logo = "<img src=\"images/vista1.gif\" alt=\"waplive\" />";
                    break;
    		case "Aero" :
                    $logo = "<img src=\"images/vista1.gif\" alt=\"waplive\" />";
                    break;
    		case "Matrix" :
                    $logo = "<img src=\"images/vista1.gif\" alt=\"waplive\" />";
                    break;
    		case "Opera - WML" :
                    $logo = "<img src=\"images/opera1.gif\" alt=\"waplive\" />";
                    break;
    		default :
                    $logo = "<img src=\"images/vista1.gif\" alt=\"waplive\" />";
                    break;
    
    	}
    	return $logo;
    }
    function gettheme2($sid){
    $uid=getuid_sid($sid);
    if(!$uid){
    $uid=1;
    }
    $blah=mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM themes WHERE uid=$uid"));
    if($blah[0]>0){
    $thm = mysql_fetch_array(mysql_query("SELECT * FROM themes WHERE uid='".$uid."' AND applied=1"));
    }
    else $thm = mysql_fetch_array(mysql_query("SELECT * FROM themes WHERE uid='".$uid."' AND applied=1"));
    $blah = "<style type=\"text/css\">
    * {
    	margin: 0;
    	padding: 0;
    }
    .boxed {
    	width: 99%;
    	margin-bottom: 3px;
    	border: 1px solid #000000;
    }
    .boxedTitle {
    	height: 18px;
    	padding: 0 0 0 2px;
    	background: ".$thm[2]." url(../images/".$thm[3].") repeat-x;
    }
    .boxedTitleText {
    	font-size: 11px;
    	color: ".$thm[4].";
    }
    .boxedContent {
    	padding: 2px 2px 2px 2px;
    	background: ".$thm[5].";
    }
    .logo {
    	padding: 2px 2px 2px 2px;
    	background: ".$thm[10]." url(../images/".$thm[12].") repeat-x;
    }
    .footer {
    	width: 100%;
    	padding: 5px;
    	background: url(../images/".$thm[19].") repeat-x;
    }
    h1 {
    	color: #000000;
    }
    a:visited {
    	color: ".$thm[7].";
    }
    a:link {
    	color: ".$thm[6].";
    }
    h5 {
    	height: 30px;
    	padding: 0 0 0 2px;
    	background: ".$thm[8]." url(../images/".$thm[9].") repeat-x;
    	color: ".$thm[4].";
    }
    body {
    background: ".$thm[10]." ;
    font: normal small Arial, Helvetica, sans-serif, Verdana;
    color: ".$thm[11].";
    }
    #inputText {
    	background-color: ".$thm[13].";
    	color: ".$thm[14].";
    	border: 1px solid ".$thm[15].";
    }
    #inputButton {
    	background-color: ".$thm[16].";
    	color: ".$thm[17].";
    	border: 1px solid ".$thm[18].";
    }
    </style>
    ";
    return $blah;
    }
    function getlogo2($uid){
    	if(!$uid){
    		$uid=1;
    	}
    	$name=mysql_fetch_array(mysql_query("SELECT name FROM themes WHERE uid=$uid AND applied=1"));
    	switch($name[0]){
    		case "Vista" :
                    $logo = "<img src=\"../images/vista1.gif\" alt=\"waplive\" />";
                    break;
    		case "Red" :
                    $logo = "<img src=\"../images/opera1.gif\" alt=\"waplive\" />";
                    break;
    		case "XP" :
                    $logo = "<img src=\"../images/xp1.gif\" alt=\"waplive\" />";
                    break;
    		case "Royal Black" :
                    $logo = "<img src=\"../images/black1.gif\" alt=\"waplive\" />";
                    break;
    		case "Green Pink" :
                    $logo = "<img src=\"../images/pink1.gif\" alt=\"waplive\" />";
                    break;
    		case "Yellow" :
                    $logo = "<img src=\"../images/vista1.gif\" alt=\"waplive\" />";
                    break;
    		case "Aero" :
                    $logo = "<img src=\"../images/vista1.gif\" alt=\"waplive\" />";
                    break;
    		case "Matrix" :
                    $logo = "<img src=\"../images/matrix1.gif\" alt=\"waplive\" />";
                    break;
    		case "Opera - WML" :
                    $logo = "<img src=\"../images/opera1.gif\" alt=\"waplive\" />";
                    break;
    		default :
                    $logo = "<img src=\"../images/vista1.gif\" alt=\"waplive\" />";
                    break;
    
    	}
    	return $logo;
    }
    function gettheme3($sid){
    $uid=getuid_sid($sid);
    if(!$uid){
    $uid=1;
    }
    $blah=mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM themes WHERE uid=$uid"));
    if($blah[0]>0){
    $thm = mysql_fetch_array(mysql_query("SELECT * FROM themes WHERE uid='".$uid."' AND applied=1"));
    }
    else $thm = mysql_fetch_array(mysql_query("SELECT * FROM themes WHERE uid='".$uid."' AND applied=1"));
    $blah = "<style type=\"text/css\">
    * {
    	margin: 0;
    	padding: 0;
    }
    .boxed {
    	width: 99%;
    	margin-bottom: 3px;
    	border: 1px solid #000000;
    }
    .boxedTitle {
    	height: 18px;
    	padding: 0 0 0 2px;
    	background: ".$thm[2]." url(../../images/".$thm[3].") repeat-x;
    }
    .boxedTitleText {
    	font-size: 11px;
    	color: ".$thm[4].";
    }
    .boxedContent {
    	padding: 2px 2px 2px 2px;
    	background: ".$thm[5].";
    }
    .logo {
    	padding: 2px 2px 2px 2px;
    	background: ".$thm[10]." url(../../images/".$thm[12].") repeat-x;
    }
    .footer {
    	width: 100%;
    	padding: 5px;
    	background: url(../../images/".$thm[19].") repeat-x;
    }
    h1 {
    	color: #000000;
    }
    a:visited {
    	color: ".$thm[7].";
    }
    a:link {
    	color: ".$thm[6].";
    }
    h5 {
    	height: 30px;
    	padding: 0 0 0 2px;
    	background: ".$thm[8]." url(../../images/".$thm[9].") repeat-x;
    	color: ".$thm[4].";
    }
    body {
    background: ".$thm[10]." ;
    font: normal small Arial, Helvetica, sans-serif, Verdana;
    color: ".$thm[11].";
    }
    #inputText {
    	background-color: ".$thm[13].";
    	color: ".$thm[14].";
    	border: 1px solid ".$thm[15].";
    }
    #inputButton {
    	background-color: ".$thm[16].";
    	color: ".$thm[17].";
    	border: 1px solid ".$thm[18].";
    }
    </style>
    ";
    return $blah;
    }
    function getlogo3($uid){
    	if(!$uid){
    		$uid=1;
    	}
    	$name=mysql_fetch_array(mysql_query("SELECT name FROM themes WHERE uid=$uid AND applied=1"));
    	switch($name[0]){
    		case "Vista" :
                    $logo = "<img src=\"../../images/vista1.gif\" alt=\"waplive\" />";
                    break;
    		case "Red" :
                    $logo = "<img src=\"../../images/opera1.gif\" alt=\"waplive\" />";
                    break;
    		case "XP" :
                    $logo = "<img src=\"../../images/xp1.gif\" alt=\"waplive\" />";
                    break;
    		case "Royal Black" :
                    $logo = "<img src=\"../../images/black1.gif\" alt=\"waplive\" />";
                    break;
    		case "Green Pink" :
                    $logo = "<img src=\"../../images/pink1.gif\" alt=\"waplive\" />";
                    break;
    		case "Yellow" :
                    $logo = "<img src=\"../../images/vista1.gif\" alt=\"waplive\" />";
                    break;
    		case "Aero" :
                    $logo = "<img src=\"../../images/vista1.gif\" alt=\"waplive\" />";
                    break;
    		case "Matrix" :
                    $logo = "<img src=\"../../images/matrix1.gif\" alt=\"waplive\" />";
                    break;
    		case "Opera - WML" :
                    $logo = "<img src=\"../../images/opera1.gif\" alt=\"waplive\" />";
                    break;
    		default :
                    $logo = "<img src=\"../../images/vista1.gif\" alt=\"waplive\" />";
                    break;
    
    	}
    	return $logo;
    }
    sql
    Code:
    --
    -- Table structure for table `themes`
    --
    
    CREATE TABLE IF NOT EXISTS `themes` (
      `id` int(100) NOT NULL auto_increment,
      `uid` int(11) NOT NULL default '0',
      `titlebg` varchar(30) collate latin1_general_ci NOT NULL default '#78b1b8',
      `titleshade` varchar(30) collate latin1_general_ci NOT NULL default 'tbg_vista.gif',
      `titlecolor` varchar(30) collate latin1_general_ci NOT NULL default 'white',
      `divbg` varchar(30) collate latin1_general_ci NOT NULL default 'white',
      `alink` varchar(30) collate latin1_general_ci NOT NULL default 'black',
      `vlink` varchar(30) collate latin1_general_ci NOT NULL default 'black',
      `timebarbg` varchar(30) collate latin1_general_ci NOT NULL default '#303030',
      `timebarshade` varchar(30) collate latin1_general_ci NOT NULL default 'tbg_black.gif',
      `pagebg` varchar(30) collate latin1_general_ci NOT NULL default 'white',
      `pagetext` varchar(30) collate latin1_general_ci NOT NULL default 'black',
      `logoshade` varchar(30) collate latin1_general_ci NOT NULL default 'lbg_vista.gif',
      `inputboxbg` varchar(30) collate latin1_general_ci NOT NULL default 'white',
      `inputboxtext` varchar(30) collate latin1_general_ci NOT NULL default '#494a4b',
      `inputboxborder` varchar(30) collate latin1_general_ci NOT NULL default '#78b1b8',
      `buttonbg` varchar(30) collate latin1_general_ci NOT NULL default 'white',
      `buttontext` varchar(30) collate latin1_general_ci NOT NULL default '#78b1b8',
      `buttonborder` varchar(30) collate latin1_general_ci NOT NULL default '#494a4b',
      `footershade` varchar(30) collate latin1_general_ci NOT NULL default '',
      `applied` tinyint(1) NOT NULL default '0',
      `name` varchar(30) collate latin1_general_ci NOT NULL default '',
      PRIMARY KEY  (`id`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=166 ;
    
    --
    -- Dumping data for table `themes`
    --
    -- --------------------------------------------------------
    ibwf_users
    Code:
      `txtstyle` bigint(15) NOT NULL,
      `shoutsize` int(1) NOT NULL default '0',
      `navstyle` varchar(30) NOT NULL default 'full',
    i dnt know if u need this ibwf_users file but ive just added it

    so please tell me if im shorting sumthing i just cant get it to work on methos
Working...
X