Quote:
Originally Posted by DND
did ya edit takeprofedit.php file with the proper code?
did ya added the proper code into the sql ?
|
yeah, thank's for pointing that out. imma change takedit..
about the sql.. there already is the signature field there..
do i need to do something else there?
///////////
In takeedit.php there is this..
PHP Code:
//== Signature stuffs
elseif ($action == "signature") {
$signatures = (isset($_POST['signatures']) && $_POST["signatures"] != "" ? "yes" : "no");
$signature = trim( urldecode( $_POST["signature"] ) );
if ( preg_match( "/^http:\/\/$/i", $signature )
or preg_match( "/[?&;]/", $signature )
or preg_match("#javascript:#is", $signature )
or !preg_match("#^https?://(?:[^<>*\"]+|[a-z0-9/\._\-!]+)$#iU", $signature ))
{
$signature='';
}
if( !empty($signature) )
{
$img_size = @GetImageSize( $signature );
if($img_size == FALSE || !in_array($img_size['mime'], $TBDEV['allowed_ext']))
stderr('USER ERROR', 'Not an image or unsupported image!');
if($img_size[0] < 5 || $img_size[1] < 5)
stderr('USER ERROR', 'Image is too small');
if ( ( $img_size[0] > $TBDEV['sig_img_width'] ) OR ( $img_size[1] > $TBDEV['sig_img_height'] ) )
{
$image = resize_image( array(
'max_width' => $TBDEV['sig_img_width'],
'max_height' => $TBDEV['sig_img_height'],
'cur_width' => $img_size[0],
'cur_height' => $img_size[1]));
}
else
{
$image['img_width'] = $img_size[0];
$image['img_height'] = $img_size[1];
}
$updateset[] = "sig_w = " . $image['img_width'];
$updateset[] = "sig_h = " . $image['img_height'];
$updateset[] = "signature = " . sqlesc("[img]".$signature."[/img]\n");
}
$updateset[] = "signatures = '$signatures'";
if (isset($_POST["info"]) && (($info = $_POST["info"]) != $CURUSER["info"])){
$updateset[] = "info = " . sqlesc($info);
}
$action = "signature";
}
so.. why it's not working..?