Nuke Evolution Forum Index

 
 Bitte Beachten 
Bevor Ihr Fehlermeldungen postet, schaut bitte im Forum
Offizielle Fixe und Patches
nach, ob dort bereits eine Lösung für Euer Problem vorhanden ist.
Vielen Dank
 

  
Search for at
Security Code: Security Code  Type Security Code:
Nuke Evolution Advanced Search
 
 
Recent Topics
Latest Site News   Next 5 >>
Forum Author Replies Last Post
Important  Nuke Evolution Developer Version Fixes & Patches 2.1.x chiroptera 41 18 Jun 2010
ReOrGaNiSaTiOn View latest post
Info  HTMLPurifier version question Fixes & Patches 2.1.x GANYANCI 5 19 Mar 2010
ReOrGaNiSaTiOn View latest post
No icon  .htacces Erweiterung Fixes & Patches 2.1.x cooper1988 0 02 Jan 2009
cooper1988 View latest post
No icon  [INFO] Lokale Installation - local installations Fixes & Patches 2.1.x ReOrGaNiSaTiOn 0 10 Sep 2008
ReOrGaNiSaTiOn View latest post
bug  [URGENT] Forums - Beiträge/Counting Fixes & Patches 2.1.x ReOrGaNiSaTiOn 0 06 Sep 2008
ReOrGaNiSaTiOn View latest post
Recent Topics   Next 15 >>
Forum Author Replies Last Post
Important  [INFO] Stand der Dinge 2.1.0 News & Informationen ReOrGaNiSaTiOn 37 26 Jul 2010
chiroptera View latest post
Important  ! Supportanfragen ! News & Informationen chiroptera 2 19 Dec 2008
chiroptera View latest post
Important  Copyright - Was ist erlaubt und was nicht bei Nuke-Evolution News & Informationen ReOrGaNiSaTiOn 3 01 Dec 2008
sophie1404 View latest post
Roleplay  [WÜNSCHE] Was wünsche ich mir für die 2.1.1 ChitChat ReOrGaNiSaTiOn 17 30 Jun 2010
chiroptera View latest post
Important  Evo German Support Icons News & Informationen chiroptera 0 03 Sep 2008
chiroptera View latest post
Important  Website Awards Eure Webseiten chiroptera 7 09 Mar 2010
nighty View latest post
Idea  Webhoster Testseite Webhosting Thorm 2 20 Feb 2009
Thorm View latest post
No icon  Blöcke verschieben Fehlermeldungen 2.1.0 RC Entenmann 1 30 Jul 2010
RTC4EVER View latest post
No icon  Fehler mit Theme Themes Shark 6 28 Jul 2010
kiste0406 View latest post
added to Bug Tracker  No text appears this is normal Fehlermeldungen 2.1.0 RC Litoon 2 28 Jul 2010
Litoon View latest post
No icon  Forum Icon Mod Hacks & Codeschnipsel tgermanyx 19 27 Jul 2010
tgermanyx View latest post
No icon  Smilie auf der Startseite Fehlermeldungen 2.1.0 RC der-cyberwolf 4 26 Jul 2010
der-cyberwolf View latest post
added to Bug Tracker  Kommentarfunktion Fehlermeldungen 2.1.0 RC Entenmann 1 26 Jul 2010
chiroptera View latest post
added to Bug Tracker  Seitenstartdatum Fehlermeldungen 2.1.0 RC Entenmann 1 26 Jul 2010
chiroptera View latest post
solved  Fehler in der Styleverwaltung Nuke Evolution 2.x.x Entenmann 3 24 Jul 2010
Entenmann View latest post
 

 
Probleme mit dem Cache
 
 
Post new topic Reply to topic printer-friendly view
View previous topic :: View next topic  
Author Message
BODY-SNATCHER
New
New



Joined: 23-Aug-2006
Posts: 20
 

Status: Offline
Nuke Version: Evp 1.0.2 Rev 567
Post Posted:
 21 Oct 2006
Reply with quote
Post subject: bug Probleme mit dem Cache

Bei wem dieser Fehler kommt wenn er im Cacheadmin ist:

Quote:

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(..) is not within the allowed path(s): (xxx) in /includes/classes/class.cache.php on line 76


Der tauscht

PHP:
    function count_files($name "") {
        global 
$valid_cache;
        if(!
$valid_cache) return false;
        
$cachenum 0;
        if (empty(
$name)) {
            
$cache = @opendir(NUKE_CACHE_DIR);
            
$cache_dir NUKE_CACHE_DIR;
        } else {
            
$cache = @opendir(NUKE_CACHE_DIR $name);
            
$cache_dir NUKE_CACHE_DIR $name;
        }
        while(
false !== ($file = @readdir($cache))) {
           if(@
is_dir($cache_dir $file) && $file != "." && $file != ".." && $file != ".svn") {
               
$subCache = @opendir($cache_dir $file);
               while(
false !== ($subFile = @readdir($subCache))) {
                   if(!
is_dir($file) && $subFile != "." && $subFile != ".." && $subFile != "index.html" && $subFile != ".htaccess") {
                       
$cachenum++;
                   }
               }
               @
closedir($subCache);
           } elseif (!
is_dir($file) && $file != "." && $file != ".." && $file != ".htaccess" && $file != "index.html" && $name) {
               
$cachenum++;
           }
        }
        @
closedir($cache);
        return 
$cachenum;
    } 
 


gegen das aus:

PHP:
  function count_files($name "") {
        global 
$valid_cache;
        if(!
$valid_cache) return false;
        
$cachenum 0;
        if (empty(
$name)) {
            
$cache = @opendir(NUKE_CACHE_DIR);
            
$cache_dir NUKE_CACHE_DIR;
        } else {
            
$cache = @opendir(NUKE_CACHE_DIR $name);
            
$cache_dir NUKE_CACHE_DIR $name;
        }
        while(
false !== ($file = @readdir($cache))) {
           if(
$file != "." && $file != ".." && @is_dir($cache_dir $file) && $file != ".svn") {
               
$subCache = @opendir($cache_dir $file);
               while(
false !== ($subFile = @readdir($subCache))) {
                   if(
$subFile != "." && $subFile != ".." && !is_dir($file) && $subFile != "index.html" && $subFile != ".htaccess") {
                       
$cachenum++;
                   }
               }
               @
closedir($subCache);
           } elseif (
$file != ".." && $file != "." && !is_dir($file) && $file != ".htaccess" && $file != "index.html" && $name) {
               
$cachenum++;
           }
        }
        @
closedir($cache);
        return 
$cachenum;
    } 
 


Kurze Erklärung...

Die Abfrage
PHP:
 !is_dir($file) && $file != "." && $file != ".." 


schießt über die erlaubten Verzeichnisse heraus. Da die Funktion is_dir() das Verzeichniss .. öffnet, damit aber ein Verzeichnis tiefer landet und einen Fehler produziert

Wenn man das ganze aber Umdreht passiert das nicht mehr

PHP:
 $file != ".." && $file != "." && !is_dir($file
,

da schon abbgeborchen wird wenn file = ".." ist.

Mfg BODY-SNATCHER  


 
 
Back to top
View user's profile Send private message Visit poster's website    
ReOrGaNiSaTiOn
Evolution World Team
Evolution World Team



Joined: 03-Jan-2006
Posts: 11003
Location: Germany

Status: Offline
Post Posted:
 21 Oct 2006
Reply with quote
Post subject: No icon Re: Fix: Probleme mit dem Cache

Hi BODY_SNATCHER

vielen Dank für Deine Info und die Arbeit, die dahinter steckt.
Ohne jetzt weiter darauf einzugehen (wir haben diese Fehlermeldung bisher nicht erhalten) müsste das ganze auch in der Funktion

function cache_size($name="", $format = true) {

geändert werden. Ansonsten wird der Fehler in dieser Funktion produziert.

Grüsse
Reo  




ReOrGaNiSaTiOn - Admin
Please login to see this link
Get registered or Log in

Please login to see this image.
Get registered or Log in

Take it and love it - The European EvolutionCMS Community
 
Back to top
View user's profile Send private message      
BODY-SNATCHER
New
New



Joined: 23-Aug-2006
Posts: 20
 

Status: Offline
Nuke Version: Evp 1.0.2 Rev 567
Post Posted:
 21 Oct 2006
Reply with quote
Post subject: No icon Re: Fix: Probleme mit dem Cache

Also ohne Änderungen dort ging es bist jetzt auch, aber ich trotzdem mal geändert.

Sicher ist sicher.

Mfg BODY-SNATCHER  


 
 
Back to top
View user's profile Send private message Visit poster's website    
chiroptera
Evolution World Team
Evolution World Team



Joined: 15-Feb-2006
Posts: 7137
Location: Berlin

Status: Offline
Post Posted:
 08 Nov 2006
Reply with quote
Post subject: No icon Re: Fix: Probleme mit dem Cache

@Reo: Was ist damit eigentlich? Kommt die Änderung in die 1.0.2GER02, oder ist das 'ne individuelle Lösung?

Gruss
chiroptera  




chiroptera - Admin
Please login to see this link
Get registered or Log in

Please login to see this image.
Get registered or Log in

Please login to see this image.
Get registered or Log in
 
Back to top
View user's profile Send private message      
Display posts from previous:  
Post new topic Reply to topic printer-friendly view
Nuke Evolution Forum Index -> Allgemeines Zeit mit der Forum-Server-Zeit synchronisiert
 
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum