From a4831b3b90bf1a828563b972ab4b8ef74787f7d6 Mon Sep 17 00:00:00 2001
From: spelth <lukas.leidinger@gmail.com>
Date: Sat, 2 May 2015 11:30:12 +0200
Subject: [PATCH] Basic Import

---
 admin.php | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+), 0 deletions(-)
 create mode 100644 admin.php

diff --git a/admin.php b/admin.php
new file mode 100644
index 0000000..7bd3743
--- /dev/null
+++ b/admin.php
@@ -0,0 +1,25 @@
+<?php
+defined('LDAP_LOGIN_PATH') or die('Hacking attempt!');
+ 
+global $template, $page, $conf;
+
+// get current tab
+$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : $page['tab'] = 'configuration';
+
+// tabsheet
+include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
+$tabsheet = new tabsheet();
+$tabsheet->set_id('ldap_login');
+
+$tabsheet->add('configuration', l10n('Configuration'), LDAP_LOGIN_ADMIN . '-configuration');
+$tabsheet->add('newusers', l10n('New users when ldap auth is successfull'), LDAP_LOGIN_ADMIN . '-newusers');
+$tabsheet->select($page['tab']);
+$tabsheet->assign();
+  
+// include page
+include(LDAP_LOGIN_PATH . 'admin/' . $page['tab'] . '.php');
+
+// template vars
+$template->assign('LDAP_LOGIN_PATH', get_root_url() . LDAP_LOGIN_PATH );
+  
+?>
\ No newline at end of file
--
libgit2 0.22.2