[wap] Quintin Community Script

Started on the old forum in July 2008 · view the original in the archive · old links redirect here

40 replies · 9,693 views · started 18 years ago · 1 min read

TL;DR · summary of 40 replies
  • rietrot needed help with line 9 in gallery script, unsure if variable should be 1 or something else and what to put in the mysql_query for posting images.
  • SpiderWap shared post.php but did not provide image.php code solution for rietrot's issue.
  • sweetangel asked how to change default themes on the admin panel of the script.
  • keanvn requested a download link for the script, which was provided by mobidev in another forum section.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

16 participants
SpiderWap Lead · 622 posts #1

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

Guest #3

thanx will check tht for sure.....

rietrot Developer · 149 posts #6
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

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

mysql_query("INSERT INTO `topics` (
`name` ,
`forum` ,
`topic` ,
`text` ,
`timestamp` 
)
VALUES (
'".$name."', '".$forum."', '".$topic."', '".$text."', '".time()."'
);");
rietrot Developer · 149 posts #7

well i also put some newer icons in script looks better lol

Attachments: messages.gif
SpiderWap Lead · 622 posts #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

Here's post.php

<?
include("config.php");
include("ontime.php");
$name = mysql_real_escape_string($_POST['name']);
$text = mysql_real_escape_string($_POST['reply']);
$pass = mysql_real_escape_string($_POST['pass']);
$topic = mysql_real_escape_string($_POST['topic']);
$forum = mysql_real_escape_string($_POST['forum']);

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 '
<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>
';
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` = '".$name."' AND `pass` LIKE '".$pass."' ";
$loginresult = mysql_query($loginquery);
$loginotvet = mysql_fetch_array($loginresult);
if($loginotvet['name']){
$name= strtolower($name);
$topicquery = "SELECT * FROM `topics` WHERE `id` = '".$topic."'";
$topicresult = mysql_query($topicquery);
$topicotvet = mysql_fetch_array($topicresult);
if($topicotvet['id']){

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 (
'".$name."', '".$reply."', '".$topic."', '".time()."');");
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&pass=$pass&forum=$forum\">Forum Categorie</a>
\n";
echo "<a href=\"forums.php?name=$name&pass=$pass\">Categories</a>
\n";
echo "<a href=\"enter.php?name=$name&pass=$pass\">Home</a>
\n";
echo "</div>\n";
echo "<div align=\"center\" style=\"background-color:#990000; color:#FFFF00;\">\n";
echo "[b][size="1"]© 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'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't exist.
\n";
echo "<a href=\"index.php\">Home</a>\n";
echo "</div>\n";
echo "</body>\n";
echo "</html>\n";
exit();
}
?>
SpiderWap Lead · 622 posts #9

Add this to imgage.php

<?  
if($_GET['image']){  
$image = $_GET['image'];  

if($_GET['type']=="jpg"){  
header("Content-type: image/jpeg");  
}elseif($_GET['type']=="gif"){  
header("Content-type: image/gif");  
}elseif($_GET['type']=="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['percent']){  
$x = round((imagesx($im)*$_GET['percent'])/100);  
$y = round((imagesy($im)*$_GET['percent'])/100);  
$yyy=0;  
$xxx=0;  
$imw = imagecreatetruecolor($x,$y);  
}elseif($_GET['w'] and $_GET['h']){  
$x = $_GET['w'];  
$y = $_GET['h'];  
$yyy=0;  
$xxx=0;  
$imw = imagecreatetruecolor($x,$y);  
}elseif($_GET['maxim_size']){  
if(imagesy($im)>=$_GET['maxim_size'] || imagesx($im)>=$_GET['maxim_size']){  
if(imagesy($im)>=imagesx($im)){  
$y = $_GET['maxim_size'];  
$x = ($y*imagesx($im))/imagesy($im);  
}else{  
$x = $_GET['maxim_size'];  
$y = ($x*imagesy($im))/imagesx($im);  
}  
}else{  
$x = imagesx($im);  
$y = imagesy($im);  
}  
$yyy=0;  
$xxx=0;  
$imw = imagecreatetruecolor($x,$y);  
}elseif($_GET['square']){  
if(imagesy($im)>=$_GET['square'] || imagesx($im)>=$_GET['square']){  
if(imagesy($im)>=imagesx($im)){  
$x = $_GET['square'];  
$y = ($x*imagesy($im))/imagesx($im);  
$yyy=-($y-$x)/2;  
$xxx=0;  
}else{  
$y = $_GET['square'];  
$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['square'],$_GET['square']);  
}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['watermark_text']){  
if($_GET['watermark_color']){$watermark_color=$_GET['watermark_color'];  
}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['watermark_text']);  
$x = 5;  
$y = 17;  
imagettftext($imw, $font_size, $angle, $x, $y, $text_col, $font, $_GET['watermark_text']);  

}  

if($_GET['type']=="jpg"){imagejpeg($imw);}  
elseif($_GET['type']=="gif"){imagegif($imw);}  
elseif($_GET['type']=="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

Guest #10

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

rietrot Developer · 149 posts #13

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

SiLeNce Developer · 138 posts #14

found sql injector 🙂 .

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

rietrot Developer · 149 posts #16

how can we bcame an oner in here?pls help

Dude read the owner off this script own comment the script is not finished as it is now u CANT MAKE urself owner

rietrot Developer · 149 posts #17

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.

how can we bcame an oner in here?pls help

Dude read the owner off this script own comment the script is not finished as it is now u CANT MAKE urself owner

rietrot Developer · 149 posts #20

i see something like @ http://3palz.com

looks good wut this isnt his single forum this is his sitebuilder script right... is everything working?

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close