Current time: 11-23-2024, 09:06 AM Hello There, Guest! (LoginRegister)


Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ERLEDIGT]/errordocs/
Author Message
ZooL Offline
Moderator
*****
Moderators

Posts: 3,429
Joined: Jan 2007
Reputation: 79
Post: #4
RE: /errordocs/
nee anders
Code:
#
2235            # Default error pages
2236            #
2237    
2238            if(! -d "$www_dir/$dmn_name/errors") {
2239                    $rs = make_dir("$www_dir/$dmn_name/errors", $sys_user, $sys_group, 0775);
2240                    return $rs if ($rs != 0);
2241            }
2242    
2243            if(! -d "$www_dir/$dmn_name/errors/inc") {
2244                $rs = make_dir("$www_dir/$dmn_name/errors/inc",$sys_user,$sys_group,0775);
2250                    return $rs if ($rs != 0);
2251            }
##Einfügen Anfang

         $rs = sys_command(
              
                  "$main::cfg{'CMD_CP'} -Rp $root_dir/gui/errordocs/.htaccess".
                 "$www_dir/$dmn_name/errors/");
                

        return $rs if ($rs != 0);

##Einfügen Ende
2253            my @errordocs = (401, 403, 404, 500, 503);
2254            my ($i, $key) = ('', '');
2255    
2256            for($i = 0; $i < scalar(@errordocs); $i++) {
2257                    $key = $errordocs[$i];
2258    
2259                    if (-e "$root_dir/gui/errordocs/$key.html") {
2260                            $rs = sys_command(
2261                                    "$main::cfg{'CMD_ECHO'} n | $main::cfg{'CMD_CP'} -ip " .
2262                                    "$root_dir/gui/errordocs/$key.html $www_dir/$dmn_name/errors/ " .
2263                                    "2>/dev/null"
2264                            );
2265                            return $rs if ($rs != 0);
2266    
2267                            $rs = setfmode(
2268                                    "$www_dir/$dmn_name/errors/$key.html",
2269                                    $sys_user,
2270                                    $sys_group,
2271                                    0644
2272                            );
2273                            return $rs if ($rs != 0);
2274                    }
2275            }
2276    
2277            opendir(DIR, "$root_dir/gui/errordocs/inc/");
2278            my @files = readdir(DIR);
2279            closedir(DIR);
2280

das ist ungetestet sollte es so funktionieren wünsch ich dir viel spaß...
geht es nicht bitte ich das jemand anderes da drüber schaut Wink
(This post was last modified: 01-15-2010 01:47 PM by ZooL.)
01-15-2010 01:27 PM
Visit this user's website Find all posts by this user
Thread Closed 


Messages In This Thread
[ERLEDIGT]/errordocs/ - p3g3h - 01-15-2010, 08:24 AM
RE: /errordocs/ - joximu - 01-15-2010, 08:37 AM
RE: /errordocs/ - p3g3h - 01-15-2010, 09:54 AM
RE: /errordocs/ - ZooL - 01-15-2010 01:27 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)