[dev] patch for horde/admin/css/index.php

Atif Ghaffar aghaffar@developer.ch
Sat, 29 Dec 2001 15:41:00 +0100


No, please forget this patch.

By using evaluation statements in html.php this program has become useless.

Anysuggestions on how to handle this?
the css editor parses the $css hash by including/evaluating the file.
Any if() statements are eveluated when loading the file but are not 
written back to the file.

I'll leave it up to the dev.* to decide what to do.

thanks



Atif Ghaffar wrote:

> Please apply the following patch.
> It handles the if ($browser->hasQuirk) ... etc
> 
> thanks
> 
> 
> diff -u -r1.1 index.php
> --- index.php   2001/05/27 22:47:35     1.1
> +++ index.php   2001/12/29 14:13:23
> @@ -1,6 +1,6 @@
>  <?php
> 
> -require_once '../../lib/Horde.php';
> +require_once '../../lib/base.php';
>  $file = Horde::getFormData('file');
>  $style = Horde::getFormData('style');
> 
> @@ -97,7 +97,7 @@
> 
> 
> 
> -if ($mode == "generate") {
> +if (isset($mode) && $mode == "generate") {
>     if (@is_writable($file)){
>        foreach ($HTTP_POST_VARS as $var => $val){
> 
> 



-- 
Atif Ghaffar
---------------------------.
           +41 78 845 31 64 ¦ mobile
           +41 21 351 53 62 ¦ fax
     http://atifghaffar.com ¦ www