Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
915
??? Sitem deki Haberleri ..(25120 okuma, 26 yanıt) Free Hosta Php Nuke Kurul ..(16274 okuma, 14 yanıt) EKLENTİ: Misafire mesajın ..(36539 okuma, 38 yanıt) Php Nuke 9.0 Geliyor ..(20710 okuma, 19 yanıt) Bu başlık için mesaj bulu ..(13876 okuma, 15 yanıt) Facebook Sohbet Tipi Sohb ..(17574 okuma, 15 yanıt) üye aktivasyon ..(10536 okuma, 8 yanıt) Facebook tarzı altbar... ..(6201 okuma, 1 yanıt) kaldırmak istediğim bölüm ..(6487 okuma, 2 yanıt) Resimli RSS ..(23000 okuma, 25 yanıt) Onay linkini kaldirmak ..(10972 okuma, 8 yanıt) Yardım :( Site açılırken ..(6593 okuma, 2 yanıt) .Htaccess ile uzantıda ke ..(8198 okuma, 4 yanıt) block genişliği ..(5654 okuma, 1 yanıt) Haber Resimleri ve Slide ..(14221 okuma, 12 yanıt) Foruma büyük boyutlu resi ..(7236 okuma, 3 yanıt) Php-Nuke 8.0 Paket ..(9337 okuma, 6 yanıt) Hangi sürümü önerirsiniz? ..(10375 okuma, 8 yanıt) ethai1 3 ..(13034 okuma, 10 yanıt) Yeni PEHASPESEO ..(69193 okuma, 82 yanıt) Türkçe Karakter sorunu ? ..(37394 okuma, 36 yanıt) tek modul için sağ ve sol ..(11278 okuma, 8 yanıt) Php-nuke8.0 başlıklarda t ..(10487 okuma, 8 yanıt) Phpden iyi anlayan ..(5376 okuma, 1 yanıt) Php nuke 7.6 - 3.1 patch ..(72476 okuma, 89 yanıt) Mp3 Üst Player Yardım ..(29188 okuma, 40 yanıt) Toplu üyelik silme? ..(11021 okuma, 8 yanıt) Çözümleyemediğim hata... ..(12239 okuma, 11 yanıt) bloğu kayan hale getirmek ..(5920 okuma, 2 yanıt) Makale modulu ..(8497 okuma, 5 yanıt) PHP-Nuke Haber V.1 Paylas ..(84315 okuma, 121 yanıt) title değiştirme ..(10198 okuma, 6 yanıt) Arkadaşlar bu sorunun çöz ..(9960 okuma, 6 yanıt) Php Nuke 8.1 ..(4313 okuma, 0 yanıt) merhaba ..(10186 okuma, 9 yanıt) Anasayfa için boş modül o ..(13362 okuma, 13 yanıt) admin panelinde Access De ..(6325 okuma, 2 yanıt) Bu başlığa hiç cevap gelm ..(26094 okuma, 25 yanıt) Nuke Tema yapilisi ..(16952 okuma, 16 yanıt) Mavisce-net temasina bann ..(8651 okuma, 6 yanıt) PHP-Nuke wTeam - eklentil ..(6577 okuma, 2 yanıt) coppermine hata ..(10576 okuma, 8 yanıt) içerik tanıtımı ..(6223 okuma, 2 yanıt) Haber Ve İçeriğe Resim Ek ..(7094 okuma, 3 yanıt) google keywords ..(8882 okuma, 6 yanıt) 8.0'da html sorunu ..(5453 okuma, 1 yanıt) PHP-Nuke_8.1.3.5+NukeSent ..(53545 okuma, 76 yanıt) üye olunurken gereksiz is ..(9938 okuma, 7 yanıt) Arkadaşlar kolifa haber s ..(6296 okuma, 2 yanıt) Hesabınız'a tıklayınca te ..(10361 okuma, 7 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - Coppermine db input.php de hata
Önceki başlık :: Sonraki başlık
Yazar
Mesaj
BySouL Mesaj: 100+
Kayıt: Apr 11, 2007 Mesajlar: 143
Tarih: 2007-09-01, 18:05:19 Mesaj konusu: Coppermine db input.php de hata
pleskte yenileme yapıldı ondan sonra bu halee geldi " albüms 777 yaptım bu hatayı verdi
Hata
This is not a image or image has errors
Dosya: C:\Inetpub\vhosts\site.com\httpdocs\main\modules\coppermine\db_input.php - Satır: 306
Kod:
<?php
// ------------------------------------------------------------------------ //
// Coppermine Photo Gallery 1.3.1 for CMS 7.11.05 //
// ------------------------------------------------------------------------ //
// Copyright (C) 2002,2003 Grégory DEMAR <gdemar@wanadoo.fr> //
// http://www.chezgreg.net/coppermine/ //
// ------------------------------------------------------------------------ //
// Updated by the Coppermine Dev Team //
// (http://coppermine.sf.net/team/) //
// see /docs/credits.html for details //
// ------------------------------------------------------------------------ //
// New Port by GoldenTroll //
// http://coppermine.findhere.org/ //
// Based on coppermine 1.1d by Surf http://www.surf4all.net/ //
// ------------------------------------------------------------------------ //
// Pc-Nuke! Systems - Development/Support - Coppermine for PHP-Nuke //
// http://www.max.pcnuke.com - http://www.pcnuke.com //
// Website for Port Upgrades from 1.3.0 and up... 7.11.05 //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// ------------------------------------------------------------------------ //
if (eregi("modules/", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
define('DB_INPUT_PHP', true);
require("modules/" . $name . "/include/load.inc");
require($CPG_M_DIR . '/include/picmgmt.inc');
//require($CPG_M_DIR . '/include/mailer.inc.php');
global $username;
function check_comment(&$str)
{
global $CONFIG, $lang_bad_words, $queries;
$ercp = array('/\S{' . ($CONFIG['max_com_wlength'] + 1) . ',}/i');
if ($CONFIG['filter_bad_words']) foreach($lang_bad_words as $word) {
$ercp[] = '/' . ($word[0] == '*' ? '': '\b') . str_replace('*', '', $word) . ($word[(strlen($word)-1)] == '*' ? '': '\b') . '/i';
}
if (strlen($str) > $CONFIG['max_com_size']) $str = substr($str, 0, ($CONFIG['max_com_size'] -3)) . '...';
$str = preg_replace($ercp, '(...)', $str);
}
if (!isset($HTTP_GET_VARS['event']) && !isset($HTTP_POST_VARS['event'])) {
cpg_die(CRITICAL_ERROR, $lang_errors['param_missing'], __FILE__, __LINE__);
}
$event = isset($HTTP_POST_VARS['event']) ? $HTTP_POST_VARS['event'] : $HTTP_GET_VARS['event'];
switch ($event) {
// Comment update
case 'comment_update':
if (!(USER_CAN_POST_COMMENTS)) cpg_die(ERROR, $lang_errors['perm_denied'], __FILE__, __LINE__);
check_comment($HTTP_POST_VARS['msg_body']);
check_comment($HTTP_POST_VARS['msg_author']);
$msg_body = trim($HTTP_POST_VARS['msg_body']);
$msg_author = trim($HTTP_POST_VARS['msg_author']);
// $msg_body = addslashes(trim($HTTP_POST_VARS['msg_body']));
// $msg_author = addslashes(trim($HTTP_POST_VARS['msg_author']));
$msg_body = (get_magic_quotes_gpc() ? $msg_body : addslashes($msg_body));
$msg_author = (get_magic_quotes_gpc() ? $msg_author : addslashes($msg_author));
$msg_id = (int)$HTTP_POST_VARS['msg_id'];
if ($msg_body == '') cpg_die(ERROR, $lang_db_input_php['err_comment_empty'], __FILE__, __LINE__);
if (GALLERY_ADMIN_MODE) {
$update = db_query("UPDATE {$CONFIG['TABLE_COMMENTS']} SET msg_body='$msg_body', msg_author='$msg_author' WHERE msg_id='$msg_id'");
} elseif (USER_ID) {
$update = db_query("UPDATE {$CONFIG['TABLE_COMMENTS']} SET msg_body='$msg_body', msg_author='$msg_author' WHERE msg_id='$msg_id' AND author_id ='" . USER_ID . "' LIMIT 1");
} else {
$update = db_query("UPDATE {$CONFIG['TABLE_COMMENTS']} SET msg_body='$msg_body', msg_author='$msg_author' WHERE msg_id='$msg_id' AND author_md5_id ='{$USER['ID']}' AND author_id = '0' LIMIT 1");
}
$header_location = (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE'))) ? 'Refresh: 0; URL=' : 'Location: ';
$result = db_query("SELECT pid FROM {$CONFIG['TABLE_COMMENTS']} WHERE msg_id='$msg_id'");
if (!mysql_num_rows($result)) {
mysql_free_result($result);
$header_location = (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE'))) ? 'Refresh: 0; URL=' : 'Location: ';
header($header_location . $CPG_M_URL);
pageheader($lang_info, "<m e t a http - e q u i v=\"refresh\" content=\"1;url=$redirect\">");
msg_box($lang_info, $lang_db_input_php['redirect_msg'], $lang_db_input_php['continue'], $redirect);
pagefooter();
} else {
$comment_data = mysql_fetch_array($result);
mysql_free_result($result);
$redirect = $CPG_URL . "&file=displayimage&pos=" . (- $comment_data['pid']);
header($header_location . $redirect);
pageheader($lang_info, "<m e t a http - e q u i v=\"refresh\" content=\"1;url=$redirect\">");
msg_box($lang_info, $lang_db_input_php['redirect_msg'], $lang_db_input_php['continue'], $redirect);
pagefooter();
}
break;
// Comment
case 'comment':
if (!(USER_CAN_POST_COMMENTS)) cpg_die(ERROR, $lang_errors['perm_denied'], __FILE__, __LINE__);
check_comment($HTTP_POST_VARS['msg_body']);
$msg_author = trim($HTTP_POST_VARS['msg_author']);
$msg_body = trim($HTTP_POST_VARS['msg_body']);
// $msg_author = addslashes(trim($HTTP_POST_VARS['msg_author']));
// $msg_body = addslashes(trim($HTTP_POST_VARS['msg_body']));
$msg_body = (get_magic_quotes_gpc() ? $msg_body : addslashes($msg_body));
$msg_author = (get_magic_quotes_gpc() ? $msg_author : addslashes($msg_author));
$pid = (int)$HTTP_POST_VARS['pid'];
if ($msg_author == '' || $msg_body == '') cpg_die(ERROR, $lang_db_input_php['empty_name_or_com'], __FILE__, __LINE__);
$result = db_query("SELECT comments FROM {$CONFIG['TABLE_PICTURES']}, {$CONFIG['TABLE_ALBUMS']} WHERE {$CONFIG['TABLE_PICTURES']}.aid = {$CONFIG['TABLE_ALBUMS']}.aid AND pid='$pid'");
if (!mysql_num_rows($result)) cpg_die(ERROR, $lang_errors['non_exist_ap'], __FILE__, __LINE__);
$album_data = mysql_fetch_array($result);
mysql_free_result($result);
if ($album_data['comments'] != 'YES') cpg_die(ERROR, $lang_errors['perm_denied'], __FILE__, __LINE__);
$result = db_query("SELECT author_md5_id, author_id FROM {$CONFIG['TABLE_COMMENTS']} WHERE pid = '$pid' ORDER BY msg_id DESC LIMIT 1");
if (mysql_num_rows($result)) {
$last_com_data = mysql_fetch_array($result);
if ((USER_ID && $last_com_data['author_id'] == USER_ID) || (!USER_ID && $last_com_data['author_md5_id'] == $USER['ID'])) {
if (!$CONFIG['disable_flood_protection']) {
cpg_die(ERROR, $lang_db_input_php['no_flood'], __FILE__, __LINE__);
}
}
}
if (!USER_ID) { // Anonymous users, we need to use m e t a refresh to save the c o o k i e
$insert = db_query("INSERT INTO {$CONFIG['TABLE_COMMENTS']} (pid, msg_author, msg_body, msg_date, author_md5_id, author_id, msg_raw_ip, msg_hdr_ip) VALUES ('$pid', '$msg_author', '$msg_body', NOW(), '{$USER['ID']}', '0', '$raw_ip', '$hdr_ip')");
$USER['name'] = $HTTP_POST_VARS['msg_author'];
$redirect = $CPG_URL . "&file=displayimage&pos=" . (- $pid);
if ($CONFIG['comment_email_notification']) {
$mail_body = $msg_body . "\n\r See it at http://" . $_SERVER["SERVER_NAME"] . "/" . $redirect;
cpg_mail($CONFIG['gallery_admin_email'], $lang_db_input_php['email_comment_subject'], $mail_body);
}
pageheader($lang_db_input_php['com_added'], "<m e t a http - e q u i v=\"refresh\" content=\"1;url=$redirect\">");
msg_box($lang_db_input_php['info'], $lang_db_input_php['com_added'], $lang_continue, $redirect);
pagefooter();
} else { // Registered users, we can use Location to redirect
$insert = db_query("INSERT INTO {$CONFIG['TABLE_COMMENTS']} (pid, msg_author, msg_body, msg_date, author_md5_id, author_id, msg_raw_ip, msg_hdr_ip) VALUES ('$pid', '" . addslashes(CPG_USERNAME) . "', '$msg_body', NOW(), '', '" . USER_ID . "', '$raw_ip', '$hdr_ip')");
$redirect = $CPG_URL . "&file=displayimage&pos=" . (- $pid);
if ($CONFIG['comment_email_notification']) {
$mail_body = $msg_body . "\n\r See it at http://" . $_SERVER["SERVER_NAME"] . "/" . $redirect;
require("includes/class.phpmailer.php");
$mail = new PHPMailer();
$mail->SetLanguage();
$mail->From = $CONFIG['gallery_admin_email'];
$mail->AddAddress($CONFIG['gallery_admin_email']);
$mail->Priority = 3;
$mail->Encoding = "8bit";
$mail->CharSet = CHARSET;
$mail->Subject = $lang_db_input_php['email_comment_subject'];
$mail->Body = $mail_body;
$mail->IsMail();
if (!$mail->Send()) {
cpg_die(ERROR, $mailer_mesage, __FILE__, __LINE__);
}
//cpg_mail($CONFIG['gallery_admin_email'], $lang_db_input_php['email_comment_subject'], $mail_body);
}
$header_location = (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE'))) ? 'Refresh: 0; URL=' : 'Location: ';
header($header_location . $redirect);
pageheader($lang_db_input_php['com_added'], "<m e t a http - e q u i v=\"refresh\" content=\"1;url=$redirect\">");
msg_box($lang_db_input_php['info'], $lang_db_input_php['com_added'], $lang_continue, $redirect);
pagefooter();
}
break;
// Update album
case 'album_update':
if (!(USER_ADMIN_MODE || GALLERY_ADMIN_MODE)) cpg_die(ERROR, $lang_errors['perm_denied'], __FILE__, __LINE__);
//$aid = (int)$HTTP_POST_VARS['aid'];
$aid = intval($HTTP_POST_VARS['aid']);
$title = trim($HTTP_POST_VARS['title']);
// $title = addslashes(trim($HTTP_POST_VARS['title']));
$category = (int)$HTTP_POST_VARS['category'];
$category = intval($HTTP_POST_VARS['category']);
$description = trim($HTTP_POST_VARS['description']);
// $description = addslashes(trim($HTTP_POST_VARS['description']));
//$thumb = (int)$HTTP_POST_VARS['thumb'];
//$visibility = (int)$HTTP_POST_VARS['visibility'];
$thumb = intval($HTTP_POST_VARS['thumb']);
$visibility = intval($HTTP_POST_VARS['visibility']);
$uploads = $HTTP_POST_VARS['uploads'] == 'YES' ? 'YES' : 'NO';
$comments = $HTTP_POST_VARS['comments'] == 'YES' ? 'YES' : 'NO';
$votes = $HTTP_POST_VARS['votes'] == 'YES' ? 'YES' : 'NO';
if (!$title) cpg_die(ERROR, $lang_db_input_php['alb_need_title'], __FILE__, __LINE__);
if (GALLERY_ADMIN_MODE) {
$query = "UPDATE {$CONFIG['TABLE_ALBUMS']} SET title='$title', description='$description', category='$category', thumb='$thumb', uploads='$uploads', comments='$comments', votes='$votes', visibility='$visibility' WHERE aid='$aid' LIMIT 1";
} else {
$category = FIRST_USER_CAT + USER_ID;
if ($visibility != $category && $visibility != $USER_DATA['group_id']) $visibility = 0; //not in 1.2.0
$query = "UPDATE {$CONFIG['TABLE_ALBUMS']} SET title='$title', description='$description', thumb='$thumb', comments='$comments', votes='$votes', visibility='$visibility' WHERE aid='$aid' AND category='$category' LIMIT 1";
}
$update = db_query($query);
if (isset($CONFIG['debug_mode']) && ($CONFIG['debug_mode'] == 1)) {
$queries[] = $query;
}
if (!mysql_affected_rows()) cpg_die(INFORMATION, $lang_db_input_php['no_udp_needed'], __FILE__, __LINE__);
// if ($CONFIG['debug_mode'] == 0) {
pageheader($lang_db_input_php['alb_updated'], "<m e t a http - e q u i v=\"refresh\" content=\"1;url=" . $CPG_URL . "&file=modifyalb&album=$aid\">");
// }
msg_box($lang_db_input_php['info'], $lang_db_input_php['alb_updated'], $lang_continue, $CPG_URL . "&file=modifyalb&album=$aid");
pagefooter();
break;
// Picture upload
case 'picture':
if (!USER_CAN_UPLOAD_PICTURES) cpg_die(ERROR, $lang_errors['perm_denied'], __FILE__, __LINE__);
$album = (int)$HTTP_POST_VARS['album'];
$title = (get_magic_quotes_gpc() ? $title : addslashes($title));
$caption = (get_magic_quotes_gpc() ? $caption : addslashes($caption));
$keywords = (get_magic_quotes_gpc() ? $keywords : addslashes($keywords));
$user1 = (get_magic_quotes_gpc() ? $user1 : addslashes($user1));
$user2 = (get_magic_quotes_gpc() ? $user2 : addslashes($user2));
$user3 = (get_magic_quotes_gpc() ? $user3 : addslashes($user3));
$user4 = (get_magic_quotes_gpc() ? $user4 : addslashes($user4));
// Check if the album id provided is valid
if (!GALLERY_ADMIN_MODE) {
$result = db_query("SELECT category FROM {$CONFIG['TABLE_ALBUMS']} WHERE aid='$album' and (uploads = 'YES' OR category = '" . (USER_ID + FIRST_USER_CAT) . "')");
if (mysql_num_rows($result) == 0)cpg_die(ERROR, $lang_db_input_php['unknown_album'], __FILE__, __LINE__);
$row = mysql_fetch_array($result);
mysql_free_result($result);
$category = $row['category'];
} else {
$result = db_query("SELECT category FROM {$CONFIG['TABLE_ALBUMS']} WHERE aid='$album'");
if (mysql_num_rows($result) == 0)cpg_die(ERROR, $lang_db_input_php['unknown_album'], __FILE__, __LINE__);
$row = mysql_fetch_array($result);
mysql_free_result($result);
$category = $row['category'];
}
// Test if the filename of the temporary uploaded picture is empty
if ($HTTP_POST_FILES['userpicture']['tmp_name'] == '') cpg_die(ERROR, $lang_db_input_php['no_pic_uploaded'], __FILE__, __LINE__);
// Pictures are moved in a directory named 10000 + USER_ID
if (USER_ID && !defined('SILLY_SAFE_MODE')) {
$filepath = $CONFIG['userpics'] . (USER_ID + FIRST_USER_CAT);
// $dest_dir = $CONFIG['fullpath'].$filepath;
$dest_dir = $filepath;
if (!is_dir($dest_dir)) {
mkdir($dest_dir, octdec($CONFIG['default_dir_mode']));
if (!is_dir($dest_dir)) cpg_die(CRITICAL_ERROR, sprintf($lang_db_input_php['err_mkdir'], $dest_dir), __FILE__, __LINE__, true);
chmod($dest_dir, octdec($CONFIG['default_dir_mode']));
$fp = fopen($dest_dir . '/index.html', 'w');
fwrite($fp, ' ');
fclose($fp);
}
$dest_dir .= '/';
$filepath .= '/';
} else {
$filepath = $CONFIG['userpics'];
$dest_dir = $filepath;
}
// Check that target dir is writable
if (!is_writable($dest_dir)) cpg_die(CRITICAL_ERROR, sprintf($lang_db_input_php['dest_dir_ro'], $dest_dir), __FILE__, __LINE__, true);
// Replace forbidden chars with underscores
$matches = array();
$forbidden_chars = strtr($CONFIG['forbiden_fname_char'], array('&' => '&', '"' => '"', '<' => '<', '>' => '>'));
// Check that the file uploaded has a valid extension
if (get_magic_quotes_gpc()) $HTTP_POST_FILES['userpicture']['name'] = stripslashes($HTTP_POST_FILES['userpicture']['name']);
$picture_name = strtr($HTTP_POST_FILES['userpicture']['name'], $forbidden_chars, str_repeat('_', strlen($CONFIG['forbiden_fname_char'])));
if (!preg_match("/(.+)\.(.*?)\Z/", $picture_name, $matches)) {
$matches[1] = 'invalid_fname';
$matches[2] = 'xxx';
}
if ($matches[2] == '' || !stristr($CONFIG['allowed_file_extensions'], $matches[2])) {
cpg_die(ERROR, sprintf($lang_db_input_php['err_invalid_fext'], $CONFIG['allowed_file_extensions']), __FILE__, __LINE__);
}
// Create a unique name for the uploaded file
$nr = 0;
$picture_name = $matches[1] . '.' . $matches[2];
while (file_exists($dest_dir . $picture_name)) {
$picture_name = $matches[1] . '~' . $nr++ . '.' . $matches[2];
}
$uploaded_pic = $dest_dir . $picture_name;
// Move the picture into its final location
if (!move_uploaded_file($HTTP_POST_FILES['userpicture']['tmp_name'], $uploaded_pic))
cpg_die(CRITICAL_ERROR, sprintf($lang_db_input_php['err_move'], $picture_name, $dest_dir), __FILE__, __LINE__, true);
// Change file permission
chmod($uploaded_pic, octdec($CONFIG['default_file_mode']));
// Get picture information
$imginfo = getimagesize($uploaded_pic);
// Check that picture size (in pixels) is lower than the maximum allowed
if (max($imginfo[0], $imginfo[1]) > $CONFIG['max_upl_width_height']) {
$max = $CONFIG['max_upl_width_height'];
// cpg_die(ERROR, sprintf($lang_db_input_php['err_fsize_too_large'], $CONFIG['max_upl_width_height'], $CONFIG['max_upl_width_height']), __FILE__, __LINE__);
// Check that picture file size is lower than the maximum allowed
} else {
$max = max($imginfo[0], $imginfo[1]);
}
if (!resize_image($uploaded_pic, $uploaded_pic, $max, $CONFIG['thumb_method'], '')) {
@unlink($uploaded_pic);
cpg_die(ERROR, "This is not a image or image has errors", __FILE__, __LINE__);
}
$imginfo = getimagesize($uploaded_pic);
if (filesize($uploaded_pic) > ($CONFIG['max_upl_size'] << 10)) {
@unlink($uploaded_pic);
cpg_die(ERROR, sprintf($lang_db_input_php['err_imgsize_too_large'], $CONFIG['max_upl_size']), __FILE__, __LINE__);
// getimagesize does not recognize the file as a picture
} elseif ($imginfo == null) {
@unlink($uploaded_pic);
cpg_die(ERROR, $lang_db_input_php['err_invalid_img'], __FILE__, __LINE__, true);
// JPEG and PNG only are allowed with GD
// implement gd_info GIF Read Support here
} elseif ($imginfo[2] != GIS_JPG && $imginfo[2] != GIS_PNG && ($CONFIG['thumb_method'] == 'gd1' || $CONFIG['thumb_method'] == 'gd2')) {
@unlink($uploaded_pic);
cpg_die(ERROR, $lang_errors['gd_file_type_err'], __FILE__, __LINE__, true);
// Check image type is among those allowed for ImageMagick
} elseif (!stristr($CONFIG['allowed_img_types'], $IMG_TYPES[$imginfo[2]]) && $CONFIG['thumb_method'] == 'im') {
@unlink($uploaded_pic);
cpg_die(ERROR, sprintf($lang_db_input_php['allowed_img_types'], $CONFIG['allowed_img_types']), __FILE__, __LINE__);
} else {
// Create thumbnail and intermediate image and add the image into the DB
$result = add_picture($album, $filepath, $picture_name, $title, $caption, $keywords, $user1, $user2, $user3, $user4, $category);
if (!$result) {
@unlink($uploaded_pic);
cpg_die(CRITICAL_ERROR, sprintf($lang_db_input_php['err_insert_pic'], $uploaded_pic) . '<br /><br />' . $ERROR, __FILE__, __LINE__, true);
} elseif ($PIC_NEED_APPROVAL) {
pageheader($lang_info);
msg_box($lang_info, $lang_db_input_php['upload_success'], $lang_continue, $CPG_M_URL);
pagefooter();
} else {
$header_location = (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE'))) ? 'Refresh: 0; URL=' : 'Location: ';
$redirect = $CPG_URL . "&file=displayimage&pos=" . (- mysql_insert_id());
header($header_location . $redirect);
pageheader($lang_info, "<m e t a http - e q u i v=\"refresh\" content=\"1;url=$redirect\">");
msg_box($lang_info, $lang_db_input_php['upl_success'], $lang_continue, $redirect);
pagefooter();
}
}
break;
// Unknown event
default:
cpg_die(CRITICAL_ERROR, $lang_errors['param_missing'], __FILE__, __LINE__);
}
?>
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-05-02, 12:08:13 Mesaj konusu: Forum Arası Reklamlar
Başa dön
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız