[ Index ] |
|
Code source de Typo3 4.1.3 |
1 <?php 2 /*************************************************************** 3 * Copyright notice 4 * 5 * (c) 1999-2003 Kasper Skaarhoj (kasperYYYY@typo3.com) 6 * All rights reserved 7 * 8 * This script is part of the Typo3 project. The Typo3 project is 9 * free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation; either version 2 of the License, or 12 * (at your option) any later version. 13 * 14 * The GNU General Public License can be found at 15 * http://www.gnu.org/copyleft/gpl.html. 16 * A copy is found in the textfile GPL.txt and important notices to the license 17 * from the author is found in LICENSE.txt distributed with these scripts. 18 * 19 * 20 * This script is distributed in the hope that it will be useful, 21 * but WITHOUT ANY WARRANTY; without even the implied warranty of 22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 * GNU General Public License for more details. 24 * 25 * This copyright notice MUST APPEAR in all copies of the script! 26 ***************************************************************/ 27 /** 28 * Super admin configuration and main script (sample) 29 * 30 * $Id: superadmin.php 593 2005-04-01 14:37:15Z typo3 $ 31 * 32 * @author Kasper Skaarhoj <kasperYYYY@typo3.com> 33 */ 34 /* 35 * WHAT IS IT: 36 * This script is intended to provide administrator information and 37 * relevant links to multiple Typo3 sites on a webserver. 38 * 39 * LOCATION: 40 * This script must be located in a directory with the Typo3 source available in typo3_src/ 41 * The script includes the class t3lib/class.t3lib_superadmin.php 42 * 43 * IMPORTANT: 44 * This script MUST be secured as it reads out password information an provides direct login links to sites! 45 * It's recommended to use the script over a secure connection and to use the strongest webserver http-based authentication, you can. 46 * Furthermore it's adviced to out-comment the 'die'-line below when you're not using the script. 47 * 48 * CONFIGURATION: 49 * The point is that you configure one or more directories (parent directories) on the webserver to the script. 50 * The script expects these directories (parents) to contain other directories (childs) exclusively with Typo3 sites in + any number of directories names 'typo3_src*' which will be ignored. 51 * Every Typo3 site (child) in these parent directories will get listed in the interface. 52 * 53 * For each 'parent directory' you enter information like this: 54 * 55 * $parentDirs[] = array( 56 * 'dir'=> '/www/htdocs/typo3/32/', 57 * 'url' => 'http://192.168.1.4/typo3/32/' 58 * ); 59 * 60 * 'dir' is the absolute path of the parent directory where the sites are located in subdirs 61 * 'url' is the web-accessible url of the parent directory. 62 */ 63 64 65 // ***************** 66 // Security: 67 // ***************** 68 die('Script secured by a die() function. Comment the line if you want to use the script!'); 69 70 71 // ***************** 72 // Including: 73 // ***************** 74 require_once ('./typo3_src/t3lib/class.t3lib_superadmin.php'); 75 76 77 // ***************** 78 // Configuration: 79 // This is just an example! 80 // ***************** 81 $parentDirs = array(); 82 $parentDirs[] = array( 83 'dir'=> '/www/htdocs/typo3/commercial_sites/', 84 'url' => 'http://123.234.43.212/typo3/commercial_sites/' 85 ); 86 $parentDirs[] = array( 87 'dir'=> '/www/htdocs/typo3/nonprofit_sites/', 88 'url' => 'http://123.234.43.212/typo3/nonprofit_sites/' 89 ); 90 91 92 93 // ***************** 94 // Start 95 // ***************** 96 $superadmin = t3lib_div::makeInstance('t3lib_superadmin'); 97 $superadmin->init($parentDirs); 98 $superadmin->defaultSet(); 99 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Nov 25 17:13:16 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |