diff --git a/hooks/classes/README b/hooks/classes/README deleted file mode 100644 index 1a0f343..0000000 --- a/hooks/classes/README +++ /dev/null @@ -1,3 +0,0 @@ -Put your hook class files here. - -A file wich contains "class MyClass" definition must be called "MyClass.php". diff --git a/htdocs/cmd.php b/htdocs/cmd.php deleted file mode 100644 index 0ddf004..0000000 --- a/htdocs/cmd.php +++ /dev/null @@ -1,79 +0,0 @@ -getIndex()); - -# See if we can render the command -if (trim($www['cmd'])) { - # If this is a READ-WRITE operation, the LDAP server must not be in READ-ONLY mode. - if ($app['server']->isReadOnly() && ! in_array(get_request('cmd','REQUEST'),$app['readwrite_cmds'])) - error(_('You cannot perform updates while server is in read-only mode'),'error','index.php'); - - # If this command has been disabled by the config. - if (! $_SESSION[APPCONFIG]->isCommandAvailable('script',$www['cmd'])) { - system_message(array('title'=>_('Command disabled by the server configuration'), - _('Error'),'body'=>sprintf('%s: %s.',_('The command could not be run'),htmlspecialchars($www['cmd'])),'type'=>'error'),'index.php'); - - $app['script_cmd'] = null; - } -} - -if ($app['script_cmd']) - include $app['script_cmd']; - -# Refresh a frame - this is so that one frame can trigger another frame to be refreshed. -if (isAjaxEnabled() && get_request('refresh','REQUEST') && get_request('refresh','REQUEST') != get_request('frame','REQUEST')) { - echo ''; -} - -# Capture the output and put into the body of the page. -$www['body'] = new block(); -$www['body']->SetBody(ob_get_contents()); -$www['page']->block_add('body',$www['body']); -ob_end_clean(); - -if ($www['meth'] == 'ajax') - $www['page']->show(get_request('frame','REQUEST',false,'BODY'),true,get_request('raw','REQUEST',false,false)); -else - $www['page']->display(); -?> diff --git a/htdocs/index.php b/htdocs/index.php deleted file mode 100644 index e5d92ea..0000000 --- a/htdocs/index.php +++ /dev/null @@ -1,154 +0,0 @@ - - -If you are seeing this in your browser, -PHP is not installed on your web server!!! - - -*******************************************/ - -/** - * We will perform some sanity checking here, since this file is normally loaded first when users - * first access the application. - */ - -# The index we will store our config in $_SESSION -define('APPCONFIG','plaConfig'); - -define('LIBDIR',sprintf('%s/',realpath('../lib/'))); -ini_set('display_errors',1); -error_reporting(E_ALL); - -# General functions needed to proceed. -ob_start(); -if (! file_exists(LIBDIR.'functions.php')) { - if (ob_get_level()) ob_end_clean(); - die(sprintf("Fatal error: Required file '%sfunctions.php' does not exist.",LIBDIR)); -} - -if (! is_readable(LIBDIR.'functions.php')) { - if (ob_get_level()) ob_end_clean(); - die(sprintf("Cannot read the file '%sfunctions.php' its permissions may be too strict.",LIBDIR)); -} - -if (ob_get_level()) - ob_end_clean(); - -# Make sure this PHP install has pcre -if (! extension_loaded('pcre')) - die('

Your install of PHP appears to be missing PCRE support.

Please install PCRE support before using phpLDAPadmin.
(Dont forget to restart your web server afterwards)

'); - -require LIBDIR.'functions.php'; - -# Define the path to our configuration file. -if (defined('CONFDIR')) - $app['config_file'] = CONFDIR.'config.php'; -else - $app['config_file'] = 'config.php'; - -if (! is_readable($app['config_file'])) { - if (ob_get_level()) ob_end_clean(); - die(sprintf("Missing configuration file %s - have you created it?",$app['config_file'])); -} - -# Make sure this PHP install has session support -if (! extension_loaded('session')) - error('

Your install of PHP appears to be missing php-session support.

Please install php-session support before using phpLDAPadmin.
(Dont forget to restart your web server afterwards)

','error',null,true); - -# Make sure this PHP install has gettext, we use it for language translation -if (! extension_loaded('gettext')) - system_message(array( - 'title'=>_('Missing required extension'), - 'body'=>'Your install of PHP appears to be missing GETTEXT support.

GETTEXT is used for language translation.

Please install GETTEXT support before using phpLDAPadmin.
(Dont forget to restart your web server afterwards)', - 'type'=>'error')); - -# Make sure this PHP install has all our required extensions -if (! extension_loaded('ldap')) - system_message(array( - 'title'=>_('Missing required extension'), - 'body'=>'Your install of PHP appears to be missing LDAP support.

Please install LDAP support before using phpLDAPadmin.
(Dont forget to restart your web server afterwards)', - 'type'=>'error')); - -# Make sure that we have php-xml loaded. -if (! function_exists('xml_parser_create')) - system_message(array( - 'title'=>_('Missing required extension'), - 'body'=>'Your install of PHP appears to be missing XML support.

Please install XML support before using phpLDAPadmin.
(Dont forget to restart your web server afterwards)', - 'type'=>'error')); - -/** - * Helper functions. - * Our required helper functions are defined in functions.php - */ -if (isset($app['function_files']) && is_array($app['function_files'])) - foreach ($app['function_files'] as $file_name ) { - if (! file_exists($file_name)) - error(sprintf('Fatal error: Required file "%s" does not exist.',$file_name),'error',null,true); - - if (! is_readable($file_name)) - error(sprintf('Fatal error: Cannot read the file "%s", its permissions may be too strict.',$file_name),'error',null,true); - - ob_start(); - require $file_name; - if (ob_get_level()) ob_end_clean(); - } - -# Configuration File check -if (! file_exists($app['config_file'])) { - error(sprintf(_('You need to configure %s. Edit the file "%s" to do so. An example config file is provided in "%s.example".'),app_name(),$app['config_file'],$app['config_file']),'error',null,true); - -} elseif (! is_readable($app['config_file'])) { - error(sprintf('Fatal error: Cannot read your configuration file "%s", its permissions may be too strict.',$app['config_file']),'error',null,true); -} - -# If our config file fails the sanity check, then stop now. -if (! $config = check_config($app['config_file'])) { - $www['page'] = new page(); - $www['body'] = new block(); - $www['page']->block_add('body',$www['body']); - $www['page']->display(); - exit; - -} else { - app_session_start(); - $_SESSION[APPCONFIG] = $config; -} - -if ($uri = get_request('URI','GET')) { - header(sprintf('Location: cmd.php?%s',base64_decode($uri))); - exit; -} - -if (! preg_match('/^([0-9]+\.?)+/',app_version())) { - system_message(array( - 'title'=>_('This is a development version of phpLDAPadmin'), - 'body'=>'This is a development version of phpLDAPadmin! You should NOT use it in a production environment (although we dont think it should do any damage).', - 'type'=>'info','special'=>true)); - - if (count($_SESSION[APPCONFIG]->untested())) - system_message(array( - 'title'=>'Untested configuration paramaters', - 'body'=>sprintf('The following parameters have not been tested. If you have configured these parameters, and they are working as expected, please let the developers know, so that they can be removed from this message.
%s',implode(', ',$_SESSION[APPCONFIG]->untested())), - 'type'=>'info','special'=>true)); - - $server = $_SESSION[APPCONFIG]->getServer(get_request('server_id','REQUEST')); - if (count($server->untested())) - system_message(array( - 'title'=>'Untested server configuration paramaters', - 'body'=>sprintf('The following parameters have not been tested. If you have configured these parameters, and they are working as expected, please let the developers know, so that they can be removed from this message.
%s',implode(', ',$server->untested())), - 'type'=>'info','special'=>true)); -} - -include './cmd.php'; -?> diff --git a/locale/ca_ES/LC_MESSAGES/messages.mo b/locale/ca_ES/LC_MESSAGES/messages.mo deleted file mode 100644 index b3dabc8..0000000 Binary files a/locale/ca_ES/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/cs_CZ/LC_MESSAGES/messages.mo b/locale/cs_CZ/LC_MESSAGES/messages.mo deleted file mode 100644 index fb39b76..0000000 Binary files a/locale/cs_CZ/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/da_DK/LC_MESSAGES/messages.mo b/locale/da_DK/LC_MESSAGES/messages.mo deleted file mode 100644 index 350f4ee..0000000 Binary files a/locale/da_DK/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/de_DE/LC_MESSAGES/messages.mo b/locale/de_DE/LC_MESSAGES/messages.mo deleted file mode 100644 index c683d73..0000000 Binary files a/locale/de_DE/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/es_ES/LC_MESSAGES/messages.mo b/locale/es_ES/LC_MESSAGES/messages.mo deleted file mode 100644 index a03a9a4..0000000 Binary files a/locale/es_ES/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/fi_FI/LC_MESSAGES/messages.mo b/locale/fi_FI/LC_MESSAGES/messages.mo deleted file mode 100644 index 0318b4d..0000000 Binary files a/locale/fi_FI/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/fr_FR/LC_MESSAGES/messages.mo b/locale/fr_FR/LC_MESSAGES/messages.mo deleted file mode 100644 index da77e75..0000000 Binary files a/locale/fr_FR/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/gn_PY/LC_MESSAGES/messages.mo b/locale/gn_PY/LC_MESSAGES/messages.mo deleted file mode 100644 index c7a17b7..0000000 Binary files a/locale/gn_PY/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/hu_HU/LC_MESSAGES/messages.mo b/locale/hu_HU/LC_MESSAGES/messages.mo deleted file mode 100644 index 029ceec..0000000 Binary files a/locale/hu_HU/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/it_IT/LC_MESSAGES/messages.mo b/locale/it_IT/LC_MESSAGES/messages.mo deleted file mode 100644 index cace961..0000000 Binary files a/locale/it_IT/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/ja_JP/LC_MESSAGES/messages.mo b/locale/ja_JP/LC_MESSAGES/messages.mo deleted file mode 100644 index e96e6e4..0000000 Binary files a/locale/ja_JP/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/nb_NO/LC_MESSAGES/messages.mo b/locale/nb_NO/LC_MESSAGES/messages.mo deleted file mode 100644 index d2ebacd..0000000 Binary files a/locale/nb_NO/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/nl_BE/LC_MESSAGES/messages.mo b/locale/nl_BE/LC_MESSAGES/messages.mo deleted file mode 100644 index bafeef9..0000000 Binary files a/locale/nl_BE/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/oc_FR/LC_MESSAGES/messages.mo b/locale/oc_FR/LC_MESSAGES/messages.mo deleted file mode 100644 index 7823c66..0000000 Binary files a/locale/oc_FR/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/pl_PL/LC_MESSAGES/messages.mo b/locale/pl_PL/LC_MESSAGES/messages.mo deleted file mode 100644 index ed781a0..0000000 Binary files a/locale/pl_PL/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/pt_BR/LC_MESSAGES/messages.mo b/locale/pt_BR/LC_MESSAGES/messages.mo deleted file mode 100644 index ab7cad5..0000000 Binary files a/locale/pt_BR/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/ru_RU/LC_MESSAGES/messages.mo b/locale/ru_RU/LC_MESSAGES/messages.mo deleted file mode 100644 index feeb91e..0000000 Binary files a/locale/ru_RU/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/sk_SK/LC_MESSAGES/messages.mo b/locale/sk_SK/LC_MESSAGES/messages.mo deleted file mode 100644 index d02eb47..0000000 Binary files a/locale/sk_SK/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/sv_FI/LC_MESSAGES/messages.mo b/locale/sv_FI/LC_MESSAGES/messages.mo deleted file mode 100644 index 83f78db..0000000 Binary files a/locale/sv_FI/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/tr_TR/LC_MESSAGES/messages.mo b/locale/tr_TR/LC_MESSAGES/messages.mo deleted file mode 100644 index d547e71..0000000 Binary files a/locale/tr_TR/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/uk_UA/LC_MESSAGES/messages.mo b/locale/uk_UA/LC_MESSAGES/messages.mo deleted file mode 100644 index c461e15..0000000 Binary files a/locale/uk_UA/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/zh_CN/LC_MESSAGES/messages.mo b/locale/zh_CN/LC_MESSAGES/messages.mo deleted file mode 100644 index b49a118..0000000 Binary files a/locale/zh_CN/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/locale/zh_TW/LC_MESSAGES/messages.mo b/locale/zh_TW/LC_MESSAGES/messages.mo deleted file mode 100644 index 7a20875..0000000 Binary files a/locale/zh_TW/LC_MESSAGES/messages.mo and /dev/null differ diff --git a/tools/po/Makefile b/tools/po/Makefile deleted file mode 100644 index 0f596d1..0000000 --- a/tools/po/Makefile +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/bash -# -# Makefile Utility to manipulate PO and POT files -# Copyright (c) 2009 Alessandro De Zorzi - -# -# This code is part of phpLDAPadmin -# http://phpldapadmin.wiki.sourceforge.net -# Released under the same licence of phpldapadmin -# -# Current target list: -# -# all display target -# all-mo compile .mo files from .po translation available -# pot create a update main POT file -# all-merge merge last POT with each current translations (re-create POT) -# all-merge-pot merge last POT with each current translations - -LOCALEDIR = ../../locale -TEMPLATEFILES=`find ../../templates -iname *xml -exec echo -m {} \;|grep -v /test_|grep -v /custom_` -EXPORTFILE = $(shell echo $${EXPORTFILE:-/tmp/launchpad-export.tar.gz}) - -all: - @echo Please, specify a target [pot, xml-pot, all-mo, all-merge, all-merge-pot, launchpad-export] - -all-mo: - @for i in `ls -1 $(LOCALEDIR)` ; \ - do \ - if [ -f $(LOCALEDIR)/$$i/LC_MESSAGES/messages.po ]; then \ - echo Processing: $$i ; \ - msgfmt -v -c --statistics $(LOCALEDIR)/$$i/LC_MESSAGES/messages.po -o $(LOCALEDIR)/$$i/LC_MESSAGES/messages.mo; \ - fi \ - done - - -pot: - @po4a-gettextize -o tags=" <description> <display> <hint>" -o tagsonly=1 -f xml $(TEMPLATEFILES) -p messages.pot - @find ../../ -name *.php -exec xgettext --keyword=_ -L PHP -j --omit-header -o messages.pot -s {} \; - @find ../../ -name *.inc -exec xgettext --keyword=_ -L PHP -j --omit-header -o messages.pot -s {} \; - @echo messages.pot created, you might like to change the header with contents of messages.header - -all-merge: pot -all-merge-pot: - @for i in `ls -1 $(LOCALEDIR)` ; \ - do \ - if [ -f $(LOCALEDIR)/$$i/LC_MESSAGES/messages.po ]; then \ - echo Processing: $$i ; \ - msgmerge -v $(LOCALEDIR)/$$i/LC_MESSAGES/messages.po messages.pot -o $$i.po; \ - mv $$i.po $(LOCALEDIR)/$$i/LC_MESSAGES/messages.po; \ - fi \ - done - -launchpad-extract: - @[ ! -r $(EXPORTFILE) ] && echo "No export file [$(EXPORTFILE)] found?" && exit 1 || true - @cd $(LOCALEDIR); tar xzf $(EXPORTFILE) - @rm -f $(LOCALEDIR)/phpldapadmin/phpldapadmin-uk.po - @rm -f $(LOCALEDIR)/phpldapadmin/phpldapadmin.pot - @find $(LOCALEDIR) -name phpldapadmin-\*.po | while read i; do newi=$$(echo $$i| sed -r 's/phpldapadmin-(.*).po/..\/\1\*\/LC_MESSAGES\/messages.po/'); mv $$i $$newi; done - rmdir $(LOCALEDIR)/phpldapadmin - -launchpad-export: launchpad-extract all-mo - -launchpad-import: - @[ -d /tmp/pla ] && rmdir /tmp/pla - @mkdir /tmp/pla - @for i in $(LOCALEDIR)/*/LC_MESSAGES/messages.po; do echo $$i; x=$${i##$(LOCALEDIR)/}; x=$${x/_??\/LC_MESSAGES\/messages/}; [ ! -e /tmp/pla/$$x ] && cp $$i /tmp/pla/$$x || echo "$$x Already exists!"; done diff --git a/tools/po/messages.header b/tools/po/messages.header deleted file mode 100644 index 9cfb2fe..0000000 --- a/tools/po/messages.header +++ /dev/null @@ -1,15 +0,0 @@ -# phpLDAPadmin -# - -msgid "" -msgstr "" -"Project-Id-Version: phpldapadmin\n" -"Report-Msgid-Bugs-To: phpldapadmin-devel@lists.sourceforge.net\n" -"POT-Creation-Date: 2004-01-14 17:45+0200\n" -"PO-Revision-Date: 2004-01-14 17:45+0200\n" -"Last-Translator: Unknown <Unknown>\n" -"Language-Team: phpLDAPadmin <phpldapadmin-devel@lists.sourceforge.net>\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - diff --git a/tools/unserialize.php b/tools/unserialize.php deleted file mode 100644 index 2a35e60..0000000 --- a/tools/unserialize.php +++ /dev/null @@ -1,26 +0,0 @@ -<?php - -require '../lib/common.php'; - -echo '<head><link type="text/css" rel="stylesheet" href="../htdocs/css/style.css" /></head>'; -echo '<body>'."\n"; -$index = get_request('index','REQUEST'); -if (! isset($_SESSION['backtrace'][$index])) - die('No backtrace available...?'); - -$line = $_SESSION['backtrace'][$index]; -echo '<table class="result_table">'; -printf('<tr class="hightlight"><td colspan="2"><b><small>%s</small></b></td><td>%s (%s)</td></tr>', - _('File'),isset($line['file']) ? $line['file'] : $last['file'],isset($line['line']) ? $line['line'] : ''); - -printf('<tr><td> </td><td><b><small>%s</small></b></td>', - _('Function'),$line['function']); - -echo '<td><small><pre>'; -print_r($line['args']); -echo '</pre></small></td>'; - -echo '</tr>'; -echo '</table>'; -echo '</body>'; -?>