[ Index ] |
|
Code source de Typo3 4.1.3 |
[Code source] [Imprimer] [Statistiques]
Super Admin class has functions for the administration of multiple TYPO3 sites in folders See 'misc/superadmin.php' for details on how to use! $Id: class.t3lib_superadmin.php 1421 2006-04-10 09:27:15Z mundaun $ Revised for TYPO3 3.6 February/2004 by Kasper Skaarhoj XHTML Compliant
Author: | Kasper Skaarhoj <kasperYYYY@typo3.com> |
Poids: | 1372 lignes (43 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 2 fichiers t3lib/class.t3lib_db.php t3lib/class.t3lib_div.php |
t3lib_superadmin:: (27 méthodes):
t3lib_superadmin()
init()
defaultSet()
make()
setMenuItem()
error()
headerParentDir()
headerSiteDir()
initProcess()
processSiteDir()
includeLocalconf()
connectToDatabase()
getDBInfo()
makeTable()
localExtensions()
getExtensionInfo()
getAllFilesAndFoldersInPath()
findMostRecent()
removePrefixPathFromList()
singleSite()
loginLog()
log_getDetails()
rmCachedFiles()
menuContent()
makeAdminLogin()
changeAdminPasswordsForm()
setNewPasswords()
Classe: t3lib_superadmin - X-Ref
Super Admin class has functions for the administration of multiple TYPO3 sites in folderst3lib_superadmin() X-Ref |
Constructor, setting GP vars return: void |
init($parentDirs) X-Ref |
Initialize with configuration - from the 'superadmin.php' script. See misc/superadmin.php for example. param: array Numerical array with arrays having two keys, 'dir' and 'url' where 'dir' is the absolute path to a directory with TYPO3 installations inside. return: void |
defaultSet() X-Ref |
Main function, creating HTML content; frameset, menu, content frames. Outputs the full HTML to browser. return: void |
make() X-Ref |
Main function, creating page content. return: string HTML content. |
setMenuItem($code,$label) X-Ref |
Creates menu item from input. param: string Value for "&exp" parameter param: string The label return: string Wrapped value |
error($str) X-Ref |
Wrap string in red span tag (for errors) param: string Input string return: string Output string |
headerParentDir($str) X-Ref |
Wraps input string in <h2> param: string Input string return: string Output string, wrapped in <h2> |
headerSiteDir($str) X-Ref |
Wraps input string in <h3> param: string Input string return: string Output string, wrapped in <h3> |
initProcess() X-Ref |
Traverses the parent dirs, collecting the list of TYPO3 installations into $this->globalSiteInfo return: string HTML content (The default view seen when starting the superadmin.php script) |
processSiteDir($path,$dir) X-Ref |
Creating information array for a specific TYPO3 installation Information about site is stored in ->globalSiteInfo array param: string Absolute path to installation (PATH_site) param: string Directory of main directory (level under PATH_site) return: string HTML content with information about the site. |
includeLocalconf($localconf) X-Ref |
Includes "localconf" of a TYPO3 installation an loads $this->globalSiteInfo with this information. param: string Absolute path to localconf.php file to include. return: array Array with information about the site. |
connectToDatabase($siteInfo) X-Ref |
Connects to a MySQL database with the TYPO3 db host/username/password and database as found in the localconf.php file! This is NOT compatible with DBAL and connection will obviously just fail with an error message if it turns out that the _DEFAULT handler of a site is not in a MySQL database param: array $siteInfo array, containing username/password/host/database values. return: string Array message if any |
getDBInfo($key) X-Ref |
Get database information, assuming standard tables like "be_users" Adding the information to ->globalSiteInfo param: string Key for site in ->globalSiteInfo return: void |
makeTable() X-Ref |
Creates big table with information about all installations in ->globalSiteInfo return: string HTML table |
localExtensions() X-Ref |
Based on the globalSiteInfo array, this prints information about local extensions for each site. In particular version number and most recent mod-time is interesting! return: string HTML |
getExtensionInfo($path,$extKey,$k) X-Ref |
Gets information for an extension, eg. version and most-recently-edited-script param: string Path to local extension folder param: string Extension key param: string Key to globalSiteInformation array return: array Information array (unless an error occured) |
getAllFilesAndFoldersInPath($fileArr,$extPath,$extList='',$regDirs=0) X-Ref |
Recursively gather all files and folders of extension path. param: array Array of files to which new files are added param: string Path to look up files in param: string List of file extensions to include. Blank = all param: boolean If set, directories are included as well. return: array $fileArr with new entries added. |
findMostRecent($fileArr,$extPath) X-Ref |
Creates an array with modification times of all files in $fileArr param: array Files in extension (rel path) param: string Abs path prefix for files. return: array Array with modification times of files (filenames are keys) |
removePrefixPathFromList($fileArr,$extPath) X-Ref |
Removes the absolute part of all files/folders in fileArr param: array File array param: string Prefix to remove return: array Modified file array (or error string) |
singleSite($exp) X-Ref |
Shows detailed information for a single installation of TYPO3 param: string KEY pointing to installation return: string HTML content |
loginLog($DB) X-Ref |
Get last-login log for database. param: string Database return: string HTML |
log_getDetails($text,$data) X-Ref |
Compile log details into template string param: string Log message (template) param: array Data array to insert in log message return: string Log details. |
rmCachedFiles($exp) X-Ref |
Removing temp_CACHED files for installation param: string KEY pointing to installation return: string HTML content |
menuContent($exp) X-Ref |
Menu for either update/information, showing links for each installation found param: string Action key "update" or "info" return: string HTML output. |
makeAdminLogin() X-Ref |
Create list of admin logins. return: string HTML table |
changeAdminPasswordsForm() X-Ref |
For for changing admin passwords return: string Form content. |
setNewPasswords() X-Ref |
Setting new passwords return: string Status |
Généré le : Sun Nov 25 17:13:16 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |