Sql, Php, Css, Help!

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

    Sql, Php, Css, Help!

    Can someone please modify this coding for me, so i could use images with different themes on my background?
    But i want them as fixed images, and please sql to, just to double check
    Code:
    <?php
    define (&#39;USER_NOT_FOUND&#39;,0);
    define (&#39;MIME_TYPE&#39;,&#39;application/xhtml+xml&#39;);
    
    
    function gettheme($sid)
    { 
        $uid = getuid_sid($sid);
        $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
        if($thid[0]==""||$thid[0]==0)$thid[0]=1;
        $thinfo = mysql_fetch_array(mysql_query("SELECT bgc, txc, lnk, hdc, hbg, boxbg, bgi FROM ibwf_mainthemes WHERE id=&#39;".$thid[0]."&#39;"));
        $ret = "<style type=\"text/css\">\n";
        $ret .= ".sec {background-color:#222; color:#D9D; border: 1px dotted #444; font-size: 90%;)\n";
        $ret .= "input{background-color:#FFFFCC; color:#990000; border: 1px solid #444;)\n";
        $ret .= "select{background-color:#FFFFCC; color:#990000; border: 1px solid #444;)\n";
        $ret .= "body {background-color:#$thinfo[0];  color:#$thinfo[1];)\n";
        $ret .= "h5 {background-color:#$thinfo[4]; color:#$thinfo[3];)\n";
        $ret .= "a:link {color:#$thinfo[2];)\n";
        $ret .= "a:visited {color:#$thinfo[2];)\n";
        $ret .= "img {border: 0;)\n";
        $ret .= "div.mblock1 {margin: 2px 0px 2px 0px; padding: 0px 0px 0px 0px; background-color: #$thinfo[5]; border: 1px solid #$thinfo[4]; text-align: left;)\n";
        $ret .= "div.mblock2 {margin: 2px 0px 2px 0px; padding: 0px 0px 0px 0px; background-color: #$thinfo[5]; border: 1px solid #$thinfo[4]; text-align: left;)\n";
        $ret .= ".popup1 {)\n";
          $ret .= ".font-family: arial, sans-serif;)\n";
          $ret .= "font-size: 12px;)\n";
          $ret .= "color: #FFFF00;)\n";
          $ret .= "background-color: #FF0000;)\n";
          $ret .= "margin-left: 0px;)\n";
          $ret .= "margin-right: 0px;)\n";
          $ret .= "margin-top: 0px;)\n";
         $ret .= "}\n";
        $ret .= ".popup2 {\n";
          $ret .= "font-family: arial, sans-serif;)\n";
          $ret .= "font-size: 12px;)\n";
          $ret .= "color: #990000;)\n";
          $ret .= "background-color: #FFFFCC;)\n";
          $ret .= "margin-left: 0px;)\n";
          $ret .= "margin-right: 0px;)\n";
          $ret .= "margin-top: 0px;)\n";
        $ret .= "}\n";
    
        $ret .= "</style>";
        return $ret;
    }
    
    function geticonsetid($sid)
    { 
        $uid = getuid_sid($sid);
        $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
        $iconsetid = mysql_fetch_array(mysql_query("SELECT iconset FROM ibwf_mainthemes WHERE id=&#39;".$thid[0]."&#39;"));
        return $iconsetid[0];
    }
    
    function xhtmlhead($page_title, $page_style="")
    {
        $ret = "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
        $ret .= "\n<head>\n<title>$page_title</title>\n";
        $ret .= "<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-1\" />";
        $ret .= "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />";
        $ret .= "<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>";
        $ret .= "\n".$page_style;
        $ret .= "\n</head>\n<body>";
        return $ret;
    }
    function xhtmlheadchat1($page_title, $page_style="",$rid,$sid)
    {
        $ret = "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
        $ret .= "\n<head>\n<title>$page_title</title>\n";
        $ret .= "<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-1\" />";
        $ret .= "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />";
        $ret .= "<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>";
        $ret .= "<meta http-equiv=\"refresh\" content=\"20; URL=chat.php?sid=$sid&amp;rid=$rid\"/>";
        $ret .= "\n".$page_style;
        $ret .= "\n</head>\n<body>";
        return $ret;
    }
    function xhtmlheadchat($page_title, $page_style="")
    {
        $ret = "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
        $ret .= "\n<head>\n<title>$page_title</title>\n";
        $ret .= "<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-1\" />";
        $ret .= "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />";
        $ret .= "<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>";
        $ret .= "\n".$page_style;
        $ret .= "\n</head>\n<body>";
        return $ret;
    }
    function xhtmlfoot()
    {    
        $ret = "\n</body>\n</html>";
        return $ret;
    }
    function gettheme1($thid)
    { 
        if($thid[0]==""||$thid[0]==0)$thid[0]=1;
        $thinfo = mysql_fetch_array(mysql_query("SELECT bgc, txc, lnk, hdc, hbg, bgi FROM ibwf_mainthemes WHERE id=&#39;".$thid[0]."&#39;"));
        $ret = "<style type=\"text/css\">\n";
        $ret .= ".sec {background-color:#222; color:#D9D; border: 1px dotted #444; font-size: 90%;)\n";
        $ret .= "input{background-color:#FFFFCC; color:#990000; border: 1px solid #444;)\n";
        $ret .= "select{background-color:#FFFFCC; color:#990000; border: 1px solid #444;)\n";
        $ret .= "body {background-color:#$thinfo[0];  color:#$thinfo[1];\n";
        $ret .= "h5 {background-color:#$thinfo[4]; color:#$thinfo[3];)\n";
        $ret .= "a:link {color:#$thinfo[2];)\n";
        $ret .= "a:visited {color:#$thinfo[2];)\n";
        $ret .= "img {border: 0;)\n";
        $ret .= "div.mblock1 {margin: 2px 0px 2px 0px; padding: 0px 0px 0px 0px; background-color: #$thinfo[5]; border: 1px solid #$thinfo[4]; text-align: left;)\n";
        $ret .= "div.mblock2 {margin: 2px 0px 2px 0px; padding: 0px 0px 0px 0px; background-color: #$thinfo[5]; border: 1px solid #$thinfo[4]; text-align: left;)\n";
        $ret .= ".popup1{\n";
          $ret .= ".font-family: arial, sans-serif;)\n";
          $ret .= "font-size: 12px;)\n";
          $ret .= "color: #FFFF00;)\n";
          $ret .= "background-color: #FF0000;)\n";
          $ret .= "margin-left: 0px;)\n";
          $ret .= "margin-right: 0px;)\n";
          $ret .= "margin-top: 0px;)\n";
         $ret .= "}\n";
        $ret .= ".popup2 {\n";
          $ret .= "font-family: arial, sans-serif;)\n";
          $ret .= "font-size: 12px;)\n";
          $ret .= "color: #990000;)\n";
          $ret .= "background-color: #FFFFCC;)\n";
          $ret .= "margin-left: 0px;)\n";
          $ret .= "margin-right: 0px;)\n";
          $ret .= "margin-top: 0px;)\n";
        $ret .= "}\n";
        $ret .= "</style>";
        return $ret;
    }
    ?>

    Click here!!!

    #2
    hmm this coding shouldn&#39;t be hard.

    Comment


      #3
      lol help me then

      Click here!!!

      Comment

      Working...
      X