Anasayfa FORUMLAR Üye Girişi Dosyalar Dersler İpuçları Yardımcı Araçlar Hakkımızda
KİMLER BAĞLI
Toplam Üye: 32638
Aktif Üye: 0
Aktif Ziyaretçi: 1155
Üye Adı
Şifre
Beni Hatırla
          Yeni Üye KayıtYeni Üye Kayıt
          Şifremi UnuttumŞifremi Unuttum
FORUMLAR
 ??? Sitem deki Haberleri ..
(25124 okuma, 26 yanıt)
 Free Hosta Php Nuke Kurul..
(16307 okuma, 14 yanıt)
 EKLENTİ: Misafire mesajın..
(36611 okuma, 38 yanıt)
 Php Nuke 9.0 Geliyor..
(20716 okuma, 19 yanıt)
 Bu başlık için mesaj bulu..
(13878 okuma, 15 yanıt)
 Facebook Sohbet Tipi Sohb..
(17577 okuma, 15 yanıt)
 üye aktivasyon..
(10546 okuma, 8 yanıt)
 Facebook tarzı altbar... ..
(6207 okuma, 1 yanıt)
 kaldırmak istediğim bölüm..
(6496 okuma, 2 yanıt)
 Resimli RSS..
(23034 okuma, 25 yanıt)
 Onay linkini kaldirmak..
(10975 okuma, 8 yanıt)
 Yardım :( Site açılırken ..
(6596 okuma, 2 yanıt)
 .Htaccess ile uzantıda ke..
(8206 okuma, 4 yanıt)
 block genişliği..
(5658 okuma, 1 yanıt)
 Haber Resimleri ve Slide ..
(14237 okuma, 12 yanıt)
 Foruma büyük boyutlu resi..
(7238 okuma, 3 yanıt)
 Php-Nuke 8.0 Paket..
(9343 okuma, 6 yanıt)
 Hangi sürümü önerirsiniz?..
(10380 okuma, 8 yanıt)
 ethai1 3..
(13036 okuma, 10 yanıt)
 Yeni PEHASPESEO..
(69288 okuma, 82 yanıt)
 Türkçe Karakter sorunu ?..
(37401 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 ..
(72492 okuma, 89 yanıt)
 Mp3 Üst Player Yardım..
(29239 okuma, 40 yanıt)
 Toplu üyelik silme?..
(11025 okuma, 8 yanıt)
 Çözümleyemediğim hata.....
(12244 okuma, 11 yanıt)
 bloğu kayan hale getirmek..
(5923 okuma, 2 yanıt)
 Makale modulu..
(8502 okuma, 5 yanıt)
 PHP-Nuke Haber V.1 Paylas..
(84398 okuma, 121 yanıt)
 title değiştirme..
(10217 okuma, 6 yanıt)
 Arkadaşlar bu sorunun çöz..
(9965 okuma, 6 yanıt)
 Php Nuke 8.1..
(4315 okuma, 0 yanıt)
 merhaba..
(10187 okuma, 9 yanıt)
 Anasayfa için boş modül o..
(13372 okuma, 13 yanıt)
 admin panelinde Access De..
(6332 okuma, 2 yanıt)
 Bu başlığa hiç cevap gelm..
(26143 okuma, 25 yanıt)
 Nuke Tema yapilisi..
(16958 okuma, 16 yanıt)
 Mavisce-net temasina bann..
(8660 okuma, 6 yanıt)
 PHP-Nuke wTeam - eklentil..
(6580 okuma, 2 yanıt)
 coppermine hata..
(10593 okuma, 8 yanıt)
 içerik tanıtımı..
(6227 okuma, 2 yanıt)
 Haber Ve İçeriğe Resim Ek..
(7101 okuma, 3 yanıt)
 google keywords..
(8884 okuma, 6 yanıt)
 8.0'da html sorunu..
(5456 okuma, 1 yanıt)
 PHP-Nuke_8.1.3.5+NukeSent..
(53551 okuma, 76 yanıt)
 üye olunurken gereksiz is..
(9945 okuma, 7 yanıt)
 Arkadaşlar kolifa haber s..
(6298 okuma, 2 yanıt)
 Hesabınız'a tıklayınca te..
(10371 okuma, 7 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - Coppermine db input.php de hata
 AramaArama   RütbelerRütbeliler   ProfilProfil   GirişGiriş 


Coppermine db input.php de hata

 
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke
Önceki başlık :: Sonraki başlık  
Yazar Mesaj
BySouL
Mesaj: 100+
Mesaj: 100+





Kayıt: Apr 11, 2007
Mesajlar: 143

MesajTarih: 2007-09-01, 18:05:19    Mesaj konusu: Coppermine db input.php de hata Alıntıyla Cevap Gönder

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 . "&amp;file=displayimage&amp;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 . "&amp;file=displayimage&amp;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 . "&amp;file=modifyalb&amp;album=$aid\">");
//        }
        msg_box($lang_db_input_php['info'], $lang_db_input_php['alb_updated'], $lang_continue, $CPG_URL . "&amp;file=modifyalb&amp;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('&amp;' => '&', '&quot;' => '"', '&lt;' => '<', '&gt;' => '>'));
        // 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
Kullanıcının profilini görüntüle Özel mesaj gönder
Bu Site Google Adsense ile Gelir Elde Ediyor









Tarih: 2024-05-03, 21:04:37    Mesaj konusu: Forum Arası Reklamlar


Başa dön
Önceki mesajları göster:   
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke Tüm zamanlar GMT + 3 Saat
1. sayfa (Toplam 1 sayfa)

 
Geçiş Yap:  
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

Benzer Konular

Başlık Yazar Forum Cevaplar Tarih
Yeni mesaj yok php hata yardım lüffen wepibo Php Nuke Sorunlarınız 2 2010-07-21, 14:37:43 Son Mesajı Görüntüle
Yeni mesaj yok sql hata veriyor avara1984 Php Nuke Sorunlarınız 0 2010-07-16, 15:35:28 Son Mesajı Görüntüle
Yeni mesaj yok Avatar yüklemede hata veriyor avara1984 Php Nuke Sorunlarınız 1 2010-07-16, 05:23:29 Son Mesajı Görüntüle
Yeni mesaj yok coppermine resim galerisi thumbnail s... calkan Php Nuke Modülleri 1 2010-06-24, 12:54:40 Son Mesajı Görüntüle
Yeni mesaj yok Forum konularına girince hata veriyor avara1984 Php Nuke Sorunlarınız 2 2010-06-19, 00:55:41 Son Mesajı Görüntüle

Copyright © 2002-2024 Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. - Bütün hakları saklıdır!
Bu site Netopsiyon.com.tr Sunucularında Barındırılmaktadır.
Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. Netopsiyon Copyright