From 4f603deb8096a4f84c07caa15e9e226573ef3989 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=EF=BF=BD=EF=BF=BDois=20Serman?=
Date: Sat, 21 Sep 2013 15:03:59 +0000
Subject: [PATCH] adding crypto module, used for LXC
---
.gitattributes | 1 +
bureau/admin/adm_list.php | 38 +++++---
bureau/class/m_admin.php | 22 ++++-
bureau/class/m_crypto.php | 44 +++++++++
bureau/class/m_lxc.php | 4 +-
bureau/class/m_piwik.php | 124 ++++++++++++++++++++------
debian/po/de.po | 154 +++++++++++++++++++++-----------
debian/po/en.po | 154 +++++++++++++++++++++-----------
debian/po/es.po | 154 +++++++++++++++++++++-----------
debian/po/fr.po | 181 +++++++++++++++++++++++++++-----------
debian/po/it.po | 154 +++++++++++++++++++++-----------
debian/po/nl.po | 154 +++++++++++++++++++++-----------
debian/po/pt.po | 154 +++++++++++++++++++++-----------
debian/po/templates.pot | 154 +++++++++++++++++++++-----------
14 files changed, 1028 insertions(+), 464 deletions(-)
create mode 100644 bureau/class/m_crypto.php
diff --git a/.gitattributes b/.gitattributes
index 55160680..196676f1 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -361,6 +361,7 @@ bureau/class/m_admin.php -text
bureau/class/m_authip.php -text
bureau/class/m_bro.php -text
bureau/class/m_cron.php -text
+bureau/class/m_crypto.php -text
bureau/class/m_debug_alternc.php -text
bureau/class/m_dom.php -text
bureau/class/m_err.php -text
diff --git a/bureau/admin/adm_list.php b/bureau/admin/adm_list.php
index 4eb9631a..aa7173ff 100644
--- a/bureau/admin/adm_list.php
+++ b/bureau/admin/adm_list.php
@@ -38,6 +38,7 @@ $fields = array (
"show" => array ("request", "string", ""),
"creator" => array("request", "integer", 0),
"short" => array("request", "integer", -1),
+ "pattern" => array("request", "string", FALSE),
);
getFields($fields);
@@ -56,15 +57,35 @@ if ($show=="all" && !$subadmin==1 && $cuid != 2000) {
exit();
}
-$r=$admin->get_list($show == 'all' ? 1 : 0, $creator);
+if ($pattern)
+ $r=$admin->get_list($show == 'all' ? 1 : 0, $creator, $pattern);
+else
+ $r = FALSE;
?>
+
+
+
+
+
+
+
+
+
+
$error";
+ echo '' , $error, '
';
+ }
+ if (!$r) {
+ __("Enter a pattern for login list");
+ exit (0);
}
?>
@@ -92,15 +113,13 @@ if($show != 'all') {
echo '
' . _('List only my accounts') . '
';
}
}// END ($subadmin==1 || $cuid==2000)
-?>
-
-"._("No account defined for now")."";
+ echo '' , _("No account defined for now"), '
';
} else {
?>
+