Changeset 22

Show
Ignore:
Timestamp:
09/21/07 05:04:56 (1 year ago)
Author:
bermi
Message:

FInishing installer implementation and adding a demo site configuration file.

This should allow setting up new Editam sites quickly.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build/install.php

    r21 r22  
    7171'max'     => 1, 
    7272'min'     => 1, 
    73 'default' => 'My new Editam Site', 
    7473'desc'    => 'Site name.'), 
    7574 
     
    8180'max'     => 1, 
    8281'min'     => 1, 
    83 'default' => 'admin', 
    8482'desc'    => 'Administrator login.'), 
    8583 
     
    8886'max'     => 1, 
    8987'min'     => 1, 
    90 'default' => Ak::randomString(6), 
    9188'desc'    => 'Administrator password.'), 
    9289 
     
    104101'max'     => 1, 
    105102'min'     => 1, 
    106 'default' => 'localhost', 
    107103'desc'    => 'Database host.'), 
    108104 
     
    117113'max'     => 1, 
    118114'min'     => 1, 
    119 'default' => 'editam', 
    120115'desc'    => 'Database password.'), 
    121116 
     
    131126'max'     => 1, 
    132127'min'     => 1, 
    133 'default' => 'mysql', 
    134128'desc'    => 'Database type.'), 
    135129 
     
    145139'max'     => 8, 
    146140'min'     => 1, 
    147 'default' => 'en', 
    148141'desc'    => 'Locales.'), 
    149142 
  • trunk/src/includes/editam/models/user.php

    r2 r22  
    5555        $this->needsEmailValidation() ? $this->validatesFormatOf('email', AK_EMAIL_REGULAR_EXPRESSION, $this->t('Invalid email address')) : null; 
    5656        $this->validatesLengthOf('login', array('in'=>array(3, 40), 'too_long' => $this->t('pick a shorter login'), 'too_short' => $this->t('pick a longer name'))); 
    57         $this->needsPasswordLengthValidation() ? $this->validatesLengthOf('password', array('in'=>array(5, 40), 'too_long' => $this->t('pick a shorter password'), 'too_short' => $this->t('pick a longer password'))) : null; 
     57        $this->needsPasswordLengthValidation() ? $this->validatesLengthOf('password', array('in'=>array(4, 40), 'too_long' => $this->t('pick a shorter password'), 'too_short' => $this->t('pick a longer password'))) : null; 
    5858    } 
    5959 
  • trunk/src/includes/editam/script/setup

    r21 r22  
    77defined('AK_CONFIG_DIR') ? null : define('AK_CONFIG_DIR', AK_BASE_DIR.DS.'config'); 
    88include_once(AK_CONFIG_DIR.DS.'boot.php'); 
     9 
     10error_reporting(E_ALL ^ E_NOTICE); 
    911 
    1012require_once 'PHP/Compat.php'; 
     
    2628} 
    2729 
     30defined('AK_ACTION_CONTROLLER_AVAILABLE_HELPERS') ? null : define('AK_ACTION_CONTROLLER_AVAILABLE_HELPERS', 'url_helper,text_helper,tag_helper,scriptaculous_helper,prototype_helper,pagination_helper,number_helper,menu_helper,javascript_macros_helper,javascript_helper,form_tag_helper,form_options_helper,form_helper,file_upload_helper,date_helper,capture_helper,asset_tag_helper,active_record_helper,editags_helper,layout_helper'); 
     31 
    2832Ak::import('editam_setup'); 
    2933 
    3034$EditamSetup =& new EditamSetup(); 
    3135$EditamSetup->url_suffix = @$setup_options['url_suffix']; 
     36 
     37defined('AK_SITE_URL_SUFFIX') ? null : define('AK_SITE_URL_SUFFIX', $EditamSetup->url_suffix); 
    3238 
    3339$EditamSetup->ftp_user = @$setup_options['ftp_user'];