1
indream
Re: Image upload problem
  • 2005/11/23 22:07

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


function fetchMedia($media_name$index null)
    {
        if ( empty( 
$this->extensionToMime ) ) {
            
$this->setErrors'Error loading mimetypes definition' );
            return 
false;
        }
        if (!isset(
$_FILES[$media_name])) {
            
$this->setErrors('File not found');
            return 
false;
        } elseif (
is_array($_FILES[$media_name]['name']) && isset($index)) {
            
$index intval($index);
            
$this->mediaName = (get_magic_quotes_gpc()) ? stripslashes($_FILES[$media_name]['name'][$index]) : $_FILES[$media_name]['name'][$index];
            
$this->mediaType $_FILES[$media_name]['type'][$index];
            
$this->mediaSize $_FILES[$media_name]['size'][$index];
            
$this->mediaTmpName $_FILES[$media_name]['tmp_name'][$index];
//resim up sorunu        $this->mediaError = !empty($_FILES[$media_name]['error'][$index]) ? $_FILES[$media_name]['errir'][$index] : 0;
                
$this->mediaError = !empty($_FILES[$media_name]['error'][$index]) ? $_FILES[$media_name]['error'][$index] : 0;
        } else {
            
$media_name =& $_FILES[$media_name];
            
$this->mediaName = (get_magic_quotes_gpc()) ? stripslashes($media_name['name']) : $media_name['name'];
            
$this->mediaName $media_name['name'];
            
$this->mediaType $media_name['type'];
            
$this->mediaSize $media_name['size'];
            
$this->mediaTmpName $media_name['tmp_name'];
            
$this->mediaError = !empty($media_name['error']) ? $media_name['error'] : 0;
        }
        if ( (
$ext strrpos$this->mediaName'.' )) !== false ) {
//resim up sorunu        $ext = substr( $this->mediaName, $ext + 1 );
            
$ext strtolower(substr$this->mediaName$ext ));
            if ( isset( 
$this->extensionToMime[$ext] ) ) {
                
$this->mediaRealType $this->extensionToMime[$ext];
                
//trigger_error( "XoopsMediaUploader: Set mediaRealType to {$this->mediaRealType} (file extension is $ext)", E_USER_NOTICE );
            
}
        }
        
$this->errors = array();
        if ( 
$ext && in_array$ext, array( 'gif''jpg''jpeg''png''bmp''xbm' ) ) ) {
               
// Prevent sending of invalid images that would crash IE
            
if ( ! ( $info getimagesize$this->mediaTmpName ) ) ) {
                
$this->setErrors'Invalid file content' );
                return 
false;
            }
        }
        if (
intval($this->mediaSize) < 0) {
            
$this->setErrors('Invalid File Size');
            return 
false;
        }
        if (
$this->mediaName == '') {
            
$this->setErrors('Filename Is Empty');
            return 
false;
        }
        if (
$this->mediaTmpName == 'none' || !is_uploaded_file($this->mediaTmpName)) {
            
$this->setErrors('No file uploaded');
            return 
false;
        }
        if (
$this->mediaError 0) {
            
$this->setErrors('Error occurred: Error #'.$this->mediaError);
            return 
false;
        }
        return 
true;
    }


thanks bro i make it but this not solution for my problem.

XOOPS 2.0.13.1 uploader.php is work

XOOPS 2.0.13.2 uploader.php is not

im searching to changes now for solution



2
indream
Image upload problem
  • 2005/11/23 19:39

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


I have only image upload problem on XOOPS 2.0.13.2


XOOPS 2.0.13.1's uploader.php is work perfect
but XOOPS 2.0.13.2's uploader.php is not upload
(only image files)image files.

ERROR:
Quote:


Warning [PHP]: getimagesize(): open_basedir restriction in effect. File(/var/tmp/phpV4afZ7) is not within the allowed path(s): (/usr/home/SITE/:/usr/lib/php:/usr/local/lib/php:/tmp) in file /usr/home/SITE/public_html/class/uploader.php line 190


Warning [PHP]: getimagesize(/var/tmp/phpV4afZ7): failed to open stream: Operation not permitted in file /usr/home/SITE/public_html/class/uploader.php line 190



Xoops 2.0.13.2
Operating system FreeBSD
Kernel version 5.4-RELEASE-p6
Machine Type i386
Apache version 1.3.33 (Unix)
PERL version 5.8.7
PHP version 4.3.11
MySQL version 4.0.26

can anyone help me ?



3
indream
Re: Problems uploading avatars and images
  • 2005/11/22 9:59

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


i talk my hosting provider about this, but provider say this application for security.

i cant upload images.
any ideas ?



4
indream
Re: Problems uploading avatars and images
  • 2005/11/19 21:08

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


Posted on: 2003/11/21 18:39



5
indream
Re: Problems uploading avatars and images
  • 2005/11/19 16:13

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


Quote:
Danger [PHP]: getimagesize(): open_basedir restriction in effect. File(/var/tmp/phpV4afZ7) is not within the allowed path(s): (/usr/home/SITE/:/usr/lib/php:/usr/local/lib/php:/tmp) in file /usr/home/SITE/public_html/class/uploader.php line 190
Danger [PHP]: getimagesize(/var/tmp/phpV4afZ7): failed to open stream: Operation not permitted in file /usr/home/SITE/public_html/class/uploader.php line 190


I have same problem now.

Xoops 2.0.13.2
Operating system FreeBSD
Kernel version 5.4-RELEASE-p6
Machine Type i386
Apache version 1.3.33 (Unix)
PERL version 5.8.7
PHP version 4.3.11
MySQL version 4.0.26

can anyone help me ?



6
indream
Re: News 1.42, any bug to report before a new version ?
  • 2005/11/16 14:05

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


sry



7
indream
Re: Xoopsum.Com Hacked
  • 2005/11/6 17:15

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21




dont panic.

i talk this user from messenger and i listen all problems...

Maybe problem this module:
http://www.turkxoops.com/modules/JCSd ... inglefile.php?cid=3&lid=4

this not official site module !
i try to contact turkxoops.com for deleting this or check if have bug.

Try this.
search : contact



8
indream
Re: Xoopsum.Com Hacked
  • 2005/11/6 16:56

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


I'm translate this closed message turkish to english.

Quote:

|||SALDIRI YAPILDI ve BAŞARIYLA ENGELLENDİ|||
Anyone attack to our website and we block attacks

Sayın Xoopsum.Com Kullanıcıları;Sitemize Saldırı Düzenlenmiştir.
Dear xoopsum.com members, anyone make attack our website

Sahip OLduğumuz +Güvenlik Sistemi Sayesinde Saldırı Önlenmiştir.Ve Şuan Sunucumuz Kendisini Korumaya Almış Bulunmaktadır.En Geç 20 Dakika İçinde Tekrar Hizmete Gireceğiz
We have strong security systems and ve prevent this.
Our server is a protect own now and we opened 20m later this website.


İlginize Teşekkür Ederiz
Thanks for relation.


write detalist pls

injection
cross site scripting
ddos
flood
??

Sorry i think this user not know english and i try to help.

For Turkish:
Dostum hatayı ve hack çeşidini ve zararını yazarsan çeviri yapar ve yardımcı olabiliriz.

Türkiye official XOOPS sitesi olan, sitesini de deneyebilirsin.www.xoopsturkiye.com



9
indream
Re: News 1.4 - No Recent News Block showing
  • 2005/10/2 17:16

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


mamba
enter this block options set your values and SELECT ALL CATEGORIES and press ok.



10
indream
Re: xoops 2.10 stable big mail problem.
  • 2005/10/1 16:19

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


thanks ted but this not solution for me

i have 12000 over user and my XOOPS cms not open general seettings > " mail settings "
show time out message or open a blank page everytime.

registration or forgot password or activation mail send function is work !

but send mass mail for my all users not working and show same time out message or blank page.


now i'm try to change phpmail values to smtp mail values in phpmyadmin maybe this work


edit:

i say this my hosting provider
he say i change mail send limit for antispam.


but i cant edit "mail settings" XOOPS shot time out and i think XOOPS 2.0.13.1 select user function wrong.




TopTop
(1) 2 3 4 ... 14 »



Login

Username:
Password:

Lost Password? Register now!

Who's Online

58 user(s) are online (28 user(s) are browsing Support Forums)


Members: 0


Guests: 58


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits