[development] Core scripts cleanup

johan at forngren.com johan at forngren.com
Tue Aug 15 21:39:33 UTC 2006


> On Tue, 15 Aug 2006, Gerhard Killesreiter wrote:
>> Adrian Rossouw wrote:
>>> On 8/14/06, Neil Drumm <drumm at delocalizedham.com> wrote:
>>>
>>>> It is good to see the CLI stuff being worked on. Our first priority
>>>> should always be web interfaces. I don't think including more scripts
>>>> in
>>>> core is a good idea at the moment.
>>>
>>> i mentioned the cli.php in scripts/ because that's where dries wanted
>>> too
>>> put it.
>>>
>>> Also, the cli code is a very small wrapper around the web based code.
>>> All
>>> that is still needed
>>> is a way to submit forms via the cli , and return errors.
>>
>> I think a cli interface is a very nifty thing to have. If we get a
>> graphical
>> installer for the masses, we shouldn't forget to cater for the advanced
>> users, too.
>
> Indeed, Gerhard. Advanced users will not have a problem finding a CLI
> tools package around drupal.org.
>
> Gabor

>> I'm not too happy about putting this in any web
>  > accessible place. That is asking for trouble.
>
> Nope. Just prevent access from the web
> via .htaccess, like we do everything else.
>
> Alternatively, it's quite easy to add a check in the script itself to
> detect if it's being run in a web environment vs. a CLI. Just check for
> some environment variables here and there.
>
> --
> Morbus Iff ( accept no prostitutes )
> Technical: http://www.oreillynet.com/pub/au/779
> Culture: http://www.disobey.com/ and http://www.gamegrene.com/
> icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus
>

Gabor: Exactly, and it's much easier to secure it properly then.

// Johan


More information about the development mailing list