[wap] Quintin Community Script

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

    [wap] Quintin Community Script

    Quintin community script

    Version: 1.0.0
    Category: Forums / Communities

    Description:
    Community script coded by me
    Script i coded.

    1. message box
    2. chatroom(1)
    3. forums
    4. gallery with upload
    5. settings menu
    6. online list

    etc...
    ===================
    script not done, i'm tired and
    don't feel like finishing it.
    And please read the readme file.

    Thank you
    and enjoy.

    View File

    Submitted by SpiderWap, on Jul 17 2008, 12:47 AM

    Click here!!!

    #2
    thanks




    Comment


      #3
      thanx will check tht for sure.....

      Comment


        #4
        lol pleasure

        Click here!!!

        Comment


          #5
          DEMO HERE - http://open24hours.uk.to
          :p:p:p

          Comment


            #6
            Code:
            Warning: set_time_limit() has been disabled for security reasons in /home/blahblah/public_html/forum/class.upload.php on line 9
            i added folder gallery to script ... it shows file is uploaded but still when i go to gallery i get a blank image
            Code:
            set_time_limit(0);
            this is line 9 must the 0 variable be 1 or smtin
            it also needs :
            ownertools.php
            admintools.php
            modtools.php
            post.php
            --------------------------------
            spider can i use addtopic.php as a template for post php...
            what must i put in the mysql_query to be able to post
            Code:
            mysql_query("INSERT INTO `topics` (
            `name` ,
            `forum` ,
            `topic` ,
            `text` ,
            `timestamp` 
            )
            VALUES (
            '".$name."', '".$forum."', '".$topic."', '".$text."', '".time()."'
            );");

            Comment


              #7
              well i also put some newer icons in script looks better lol
              [attachment=1708:messages.gif]
              Attached Files

              Comment


                #8
                spider can i use addtopic.php as a template for post php...
                what must i put in the mysql_query to be able to post[/b]
                Here's post.php
                Code:
                <?
                include("config.php");
                include("ontime.php");
                $name = mysql_real_escape_string($_POST[&#39;name&#39;]);
                $text = mysql_real_escape_string($_POST[&#39;reply&#39;]);
                $pass = mysql_real_escape_string($_POST[&#39;pass&#39;]);
                $topic = mysql_real_escape_string($_POST[&#39;topic&#39;]);
                $forum = mysql_real_escape_string($_POST[&#39;forum&#39;]);
                
                echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
                ?>
                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                
                "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                
                <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
                
                <?
                echo "<head>\n";
                echo "<title>Post Reply</title>\n";
                echo &#39;
                <style type="text/css">
                body {
                     background-color:#FFFFFF; 
                     color:#333333;
                     border:#000000 thin solid;
                     }
                     
                a, a:active {
                            color: #000000;
                            }
                            
                a:visited {
                          color: #000000;
                          }
                          
                a:hover {
                        color: #FFFFFF;
                        background-color:#000000;
                        }
                        
                input {
                      background-color: #CCFFFF;
                      color: #000066;
                      border: #CCCCFF solid thin;
                        }
                     
                textarea {
                         background-color:#CCFFFF;
                         color:#0000FF;
                         border:#CCCCFF solid thin;
                           }
                     
                select {
                       background-color:#CCFFFF;
                       color:#0000FF;
                       border:#CCCCFF solid thin;
                         }
                </style>
                &#39;;
                echo "<meta name=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n";  
                echo "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />\n";
                echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />\n";
                echo "<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n";
                echo "</head>\n";
                echo "<body>\n";
                $name= strtolower($name);
                $loginquery = "SELECT * FROM `users` WHERE `name` = &#39;".$name."&#39; AND `pass` LIKE &#39;".$pass."&#39; ";
                $loginresult = mysql_query($loginquery);
                $loginotvet = mysql_fetch_array($loginresult);
                if($loginotvet[&#39;name&#39;]){
                $name= strtolower($name);
                $topicquery = "SELECT * FROM `topics` WHERE `id` = &#39;".$topic."&#39;";
                $topicresult = mysql_query($topicquery);
                $topicotvet = mysql_fetch_array($topicresult);
                if($topicotvet[&#39;id&#39;]){
                
                include("ontime.php");
                echo "<div align=\"center\">\n";
                echo "<img src=\"images/forums.gif\" alt=\"FORUMS\" />\n";
                echo "</div>\n";
                echo "<div align=\"center\" style=\"background-color:#FF6600; color:#FFFFFF; border-bottom:#CCCCCC thin solid\">\n";
                echo "[b][size="1"]";
                echo "Post Added
                ";
                echo "[/size][/b]\n";
                echo "</div>\n";
                mysql_query("INSERT INTO `topictxt` (
                `name` ,
                `text` ,
                `topic` ,
                `lastpost` 
                )
                VALUES (
                &#39;".$name."&#39;, &#39;".$reply."&#39;, &#39;".$topic."&#39;, &#39;".time()."&#39;);");
                echo "<div align=\"center\" style=\"background-color:#FFCC66; color:#333333; border-bottom:#999999 thin solid\">\n";
                echo "[b][size="1"]Post Successfull[/size][/b]\n";
                echo "</div>\n";
                echo "<div align=\"center\" style=\"background-color:#FFCC66; color:#333333; border-bottom:#999999 thin solid\">\n";
                echo "<a href=\"forum.php?name=$name&amp;pass=$pass&amp;forum=$forum\">Forum Categorie</a>
                \n";
                echo "<a href=\"forums.php?name=$name&amp;pass=$pass\">Categories</a>
                \n";
                echo "<a href=\"enter.php?name=$name&amp;pass=$pass\">Home</a>
                \n";
                echo "</div>\n";
                echo "<div align=\"center\" style=\"background-color:#990000; color:#FFFF00;\">\n";
                echo "[b][size="1"]&copy; WapX ".date("Y")."[/size][/b]\n"; 
                echo "</div>\n";
                echo "</body>\n";
                echo "</html>\n";
                exit();
                }
                else
                {
                echo "<div align=\"center\">\n";
                echo "<img src=\"images/logo.jpg\" alt=\"Loading...\" />
                \n";
                echo "Forum categorie doesn&#39;t exist.
                \n";
                echo "<a href=\"index.php\">Home</a>\n";
                echo "</div>\n";
                echo "</body>\n";
                echo "</html>\n";
                exit();
                }
                }
                else
                {
                echo "<div align=\"center\">\n";
                echo "<img src=\"images/logo.jpg\" alt=\"Loading...\" />
                \n";
                echo "Username Or Password incorrect or it doesn&#39;t exist.
                \n";
                echo "<a href=\"index.php\">Home</a>\n";
                echo "</div>\n";
                echo "</body>\n";
                echo "</html>\n";
                exit();
                }
                ?>

                Click here!!!

                Comment


                  #9
                  Add this to
                  imgage.php
                  Code:
                  <?  
                  if($_GET[&#39;image&#39;]){  
                  $image = $_GET[&#39;image&#39;];  
                  
                  if($_GET[&#39;type&#39;]=="jpg"){  
                  header("Content-type: image/jpeg");  
                  }elseif($_GET[&#39;type&#39;]=="gif"){  
                  header("Content-type: image/gif");  
                  }elseif($_GET[&#39;type&#39;]=="png"){  
                  header("Content-type: image/png");  
                  }else{  
                  if(substr($image, -3)=="jpg" || substr($image, -3)=="JPG"){header("Content-type: image/jpeg");}  
                  elseif(substr($image, -3)=="gif" || substr($image, -3)=="GIF"){header("Content-type: image/gif");}  
                  elseif(substr($image, -3)=="png" || substr($image, -3)=="PNG"){header("Content-type: image/png");}  
                  }  
                  
                  if(substr($image, -3)=="jpg" || substr($image, -3)=="JPG"){$im = imagecreatefromjpeg($image);}  
                  elseif(substr($image, -3)=="gif" || substr($image, -3)=="GIF"){$im = imagecreatefromgif($image);}  
                  elseif(substr($image, -3)=="png" || substr($image, -3)=="PNG"){$im = imagecreatefrompng($image);}  
                  
                  if($_GET[&#39;percent&#39;]){  
                  $x = round((imagesx($im)*$_GET[&#39;percent&#39;])/100);  
                  $y = round((imagesy($im)*$_GET[&#39;percent&#39;])/100);  
                  $yyy=0;  
                  $xxx=0;  
                  $imw = imagecreatetruecolor($x,$y);  
                  }elseif($_GET[&#39;w&#39;] and $_GET[&#39;h&#39;]){  
                  $x = $_GET[&#39;w&#39;];  
                  $y = $_GET[&#39;h&#39;];  
                  $yyy=0;  
                  $xxx=0;  
                  $imw = imagecreatetruecolor($x,$y);  
                  }elseif($_GET[&#39;maxim_size&#39;]){  
                  if(imagesy($im)>=$_GET[&#39;maxim_size&#39;] || imagesx($im)>=$_GET[&#39;maxim_size&#39;]){  
                  if(imagesy($im)>=imagesx($im)){  
                  $y = $_GET[&#39;maxim_size&#39;];  
                  $x = ($y*imagesx($im))/imagesy($im);  
                  }else{  
                  $x = $_GET[&#39;maxim_size&#39;];  
                  $y = ($x*imagesy($im))/imagesx($im);  
                  }  
                  }else{  
                  $x = imagesx($im);  
                  $y = imagesy($im);  
                  }  
                  $yyy=0;  
                  $xxx=0;  
                  $imw = imagecreatetruecolor($x,$y);  
                  }elseif($_GET[&#39;square&#39;]){  
                  if(imagesy($im)>=$_GET[&#39;square&#39;] || imagesx($im)>=$_GET[&#39;square&#39;]){  
                  if(imagesy($im)>=imagesx($im)){  
                  $x = $_GET[&#39;square&#39;];  
                  $y = ($x*imagesy($im))/imagesx($im);  
                  $yyy=-($y-$x)/2;  
                  $xxx=0;  
                  }else{  
                  $y = $_GET[&#39;square&#39;];  
                  $x = ($y*imagesx($im))/imagesy($im);  
                  $xxx=-($x-$y)/2;  
                  $yyy=0;  
                  }  
                  }else{  
                  $x = imagesx($im);  
                  $y = imagesy($im);  
                  $yyy=0;  
                  $xxx=0;  
                  }  
                  $imw = imagecreatetruecolor($_GET[&#39;square&#39;],$_GET[&#39;square&#39;]);  
                  }else{  
                  $x = imagesx($im);  
                  $y = imagesy($im);  
                  $yyy=0;  
                  $xxx=0;  
                  $imw = imagecreatetruecolor($x,$y);  
                  }  
                  
                  imagecopyresampled($imw, $im, $xxx,$yyy,0,0,$x,$y,imagesx($im), imagesy($im));  
                  
                  if($_GET[&#39;watermark_text&#39;]){  
                  if($_GET[&#39;watermark_color&#39;]){$watermark_color=$_GET[&#39;watermark_color&#39;];  
                  }else{  
                  $watermark_color="000000";  
                  }  
                  $red=hexdec(substr($watermark_color,0,2));  
                  $green=hexdec(substr($watermark_color,2,2));  
                  $blue=hexdec(substr($watermark_color,4,2));  
                  
                  $text_col = imagecolorallocate($imw, $red,$green,$blue);  
                  $font = "georgia.ttf"; //this font(georgia.ttf) heave to be in the same directory as this script  
                  $font_size = 12;  
                  $angle = 0;  
                  $box = imagettfbbox($font_size, $angle, $font, $_GET[&#39;watermark_text&#39;]);  
                  $x = 5;  
                  $y = 17;  
                  imagettftext($imw, $font_size, $angle, $x, $y, $text_col, $font, $_GET[&#39;watermark_text&#39;]);  
                  
                  }  
                  
                  if($_GET[&#39;type&#39;]=="jpg"){imagejpeg($imw);}  
                  elseif($_GET[&#39;type&#39;]=="gif"){imagegif($imw);}  
                  elseif($_GET[&#39;type&#39;]=="png"){imagepng($imw);}  
                  else{  
                  if(substr($image, -3)=="jpg" || substr($image, -3)=="JPG"){imagejpeg($imw);}  
                  elseif(substr($image, -3)=="gif" || substr($image, -3)=="GIF"){imagegif($imw);}  
                  elseif(substr($image, -3)=="png" || substr($image, -3)=="PNG"){imagepng($imw);}  
                  }  
                  
                  imagedestroy($imw);  
                  }  
                  ?>
                  And add fond type georgia.ttf

                  Click here!!!

                  Comment


                    #10
                    can wapmaster share the complete script wid these changes it will be helpful for the new comers thanx....

                    Comment


                      #11
                      at this script how I can add at admin panel change default theme 4 site???;)

                      is 1 my idea....
                      if like my post click:

                      http://coding-talk.com/images/totall...ost_thanks.gif

                      Comment


                        #12
                        Pls add all files

                        Comment


                          #13
                          i think spider still bussy with it... anyway im not using until full version is out

                          Comment


                            #14
                            found sql injector .

                            -1%20union%20select%20null,null,aid,pwd,null,null%2 0from%20my_users%20limit%200,1

                            Comment


                              #15
                              how can we bcame an oner in here?pls help

                              Comment

                              Working...
                              X