[ Index ] |
|
Code source de phpMyVisites 2.3 |
1 <?php 2 /* 3 * phpMyVisites : website statistics and audience measurements 4 * Copyright (C) 2002 - 2006 5 * http://www.phpmyvisites.net/ 6 * phpMyVisites is free software (license GNU/GPL) 7 * Authors : phpMyVisites team 8 */ 9 10 // $Id: InstallModule.class.php 29 2006-08-18 07:35:21Z matthieu_ $ 11 12 13 class InstallModule extends Module 14 { 15 var $partName; 16 17 function InstallModule() 18 { 19 $list[] = "install_welcome"; 20 $list[] = "install_system_requirements"; 21 $list[] = "install_database_setup"; 22 $list[] = "install_create_tables"; 23 $list[] = "install_general_setup"; 24 $list[] = "install_create_config_file"; 25 $list[] = "install_first_website_setup"; 26 $list[] = "install_display_javascript_code"; 27 $list[] = "install_finish"; 28 29 $this->steps = $list; 30 31 $this->stepTotal = sizeof($list); 32 33 parent::Module(); 34 } 35 36 function init($request) 37 { 38 parent::init($request); 39 $this->tpl->caching = 0; 40 41 } 42 43 /** 44 * default display method for all views 45 * 46 * @return void 47 */ 48 function showAll() 49 { 50 51 $this->process(); 52 53 $this->tpl->assign("step_number", $this->stepNumber); 54 $this->tpl->setMainTemplate('install/structure.tpl'); 55 $this->tpl->assign( "steps", $this->steps); 56 57 $done = round(($this->stepNumber - 1) * 100 / ($this->stepTotal-1)); 58 59 $this->tpl->assign("percent_done", $done); 60 $this->tpl->assign("percent_to_do", 100 - $done); 61 62 if($this->stepNumber < $this->stepTotal) 63 $this->tpl->assign("next_module_name", $this->steps[$this->stepNumber] ); 64 65 $this->display(); 66 } 67 68 69 function setMessage( ) 70 { 71 $this->tpl->template = "admin/message.tpl"; 72 $this->tpl->assign("message", $GLOBALS['lang']['generique_done']); 73 } 74 } 75 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 14:10:01 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |