Changeset 2229 in subversion


Ignore:
Timestamp:
Jan 9, 2009 4:13:00 PM (4 years ago)
Author:
till
Message:
  • let's not discriminate unix :) (= generalized paths)
  • added checks so all scripts are only executable from CLI
Location:
trunk/roundcubemail/bin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/bin/dumpschema.php

    r1978 r2229  
     1#!/usr/bin/env php 
    12<?php 
    23/* 
    3  #!/usr/bin/php 
    44 
    55 +-----------------------------------------------------------------------+ 
     
    2020 
    2121*/ 
     22 
     23if (php_sapi_name() != 'cli') { 
     24    die('Not on the "shell" (php-cli).'); 
     25} 
    2226 
    2327define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); 
  • trunk/roundcubemail/bin/msgexport.sh

    r1906 r2229  
    1 #!/usr/bin/php 
     1#!/usr/bin/env php 
    22<?php 
     3if (php_sapi_name() != 'cli') { 
     4    die('Not on the "shell" (php-cli).'); 
     5} 
    36 
    47define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); 
  • trunk/roundcubemail/bin/msgimport.sh

    r1906 r2229  
    1 #!/usr/bin/php 
     1#!/usr/bin/env php 
    22<?php 
     3if (php_sapi_name() != 'cli') { 
     4    die('Not on the "shell" (php-cli).'); 
     5} 
    36 
    47define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); 
  • trunk/roundcubemail/bin/update.sh

    r2023 r2229  
    1 #!/usr/bin/php 
     1#!/usr/bin/env php 
    22<?php 
    3  
     3if (php_sapi_name() != 'cli') { 
     4    die('Not on the "shell" (php-cli).'); 
     5} 
    46define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); 
    57 
Note: See TracChangeset for help on using the changeset viewer.