Documentation TYPO3 par Ameos

superadmin.php

00001 <?php
00002 /***************************************************************
00003 *  Copyright notice
00004 *
00005 *  (c) 1999-2003 Kasper Skaarhoj (kasperYYYY@typo3.com)
00006 *  All rights reserved
00007 *
00008 *  This script is part of the Typo3 project. The Typo3 project is
00009 *  free software; you can redistribute it and/or modify
00010 *  it under the terms of the GNU General Public License as published by
00011 *  the Free Software Foundation; either version 2 of the License, or
00012 *  (at your option) any later version.
00013 *
00014 *  The GNU General Public License can be found at
00015 *  http://www.gnu.org/copyleft/gpl.html.
00016 *  A copy is found in the textfile GPL.txt and important notices to the license
00017 *  from the author is found in LICENSE.txt distributed with these scripts.
00018 *
00019 *
00020 *  This script is distributed in the hope that it will be useful,
00021 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00022 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023 *  GNU General Public License for more details.
00024 *
00025 *  This copyright notice MUST APPEAR in all copies of the script!
00026 ***************************************************************/
00034 /*
00035  * WHAT IS IT:
00036  * This script is intended to provide administrator information and
00037  * relevant links to multiple Typo3 sites on a webserver.
00038  *
00039  * LOCATION:
00040  * This script must be located in a directory with the Typo3 source available in typo3_src/
00041  * The script includes the class t3lib/class.t3lib_superadmin.php
00042  *
00043  * IMPORTANT:
00044  * This script MUST be secured as it reads out password information an provides direct login links to sites!
00045  * It's recommended to use the script over a secure connection and to use the strongest webserver http-based authentication, you can.
00046  * Furthermore it's adviced to out-comment the 'die'-line below when you're not using the script.
00047  *
00048  * CONFIGURATION:
00049  * The point is that you configure one or more directories (parent directories) on the webserver to the script.
00050  * 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.
00051  * Every Typo3 site (child) in these parent directories will get listed in the interface.
00052  *
00053  * For each 'parent directory' you enter information like this:
00054  *
00055  * $parentDirs[] = array(
00056  *      'dir'=> '/www/htdocs/typo3/32/',
00057  *      'url' => 'http://192.168.1.4/typo3/32/'
00058  * );
00059  *
00060  * 'dir' is the absolute path of the parent directory where the sites are located in subdirs
00061  * 'url' is the web-accessible url of the parent directory.
00062  */
00063 
00064 
00065 // *****************
00066 // Security:
00067 // *****************
00068 die('Script secured by a die() function. Comment the line if you want to use the script!');
00069 
00070 
00071 // *****************
00072 // Including:
00073 // *****************
00074 require_once ('./typo3_src/t3lib/class.t3lib_superadmin.php');
00075 
00076 
00077 // *****************
00078 // Configuration:
00079 // This is just an example!
00080 // *****************
00081 $parentDirs = array();
00082 $parentDirs[] = array(
00083         'dir'=> '/www/htdocs/typo3/commercial_sites/',
00084         'url' => 'http://123.234.43.212/typo3/commercial_sites/'
00085 );
00086 $parentDirs[] = array(
00087         'dir'=> '/www/htdocs/typo3/nonprofit_sites/',
00088         'url' => 'http://123.234.43.212/typo3/nonprofit_sites/'
00089 );
00090 
00091 
00092 
00093 // *****************
00094 // Start
00095 // *****************
00096 $superadmin = t3lib_div::makeInstance('t3lib_superadmin');
00097 $superadmin->init($parentDirs);
00098 $superadmin->defaultSet();
00099 ?>


Généré par L'expert TYPO3 avec  doxygen 1.4.6