Member erfassen
This commit is contained in:
72
dashboard/create_member.php
Normal file
72
dashboard/create_member.php
Normal file
@ -0,0 +1,72 @@
|
||||
<?php
|
||||
if (!isset($_SESSION)) {
|
||||
session_start();
|
||||
}
|
||||
/*
|
||||
# Fuer debugging
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
#echo __LINE__."<br>";
|
||||
*/
|
||||
|
||||
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
$_SESSION['cur_page'] = $_SERVER['PHP_SELF']; // Fals man Seite direkt aufruft und Autologin funktioniert
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
$smarty = new SmartyAdmin();
|
||||
if(!rechte(basename(__FILE__), $uid)){
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=error.php\">";
|
||||
exit;
|
||||
}
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
|
||||
|
||||
|
||||
if(isset($_GET['action'])){
|
||||
$action = $_GET['action'];
|
||||
}else{
|
||||
$action = '';
|
||||
}
|
||||
|
||||
if($action == ''){
|
||||
/*
|
||||
# Daten aufbereiten für Zurückbutton
|
||||
if(isset($_SESSION["anlegen_vorname"])){
|
||||
$smarty->assign('user_anlegen_vorname', $_SESSION["anlegen_vorname"]);
|
||||
}
|
||||
|
||||
if(isset($_SESSION["anlegen_nachname"])){
|
||||
$smarty->assign('user_anlegen_nachname', $_SESSION["anlegen_nachname"]);
|
||||
}
|
||||
|
||||
if(isset($_SESSION["anlegen_mail"])){
|
||||
$smarty->assign('user_anlegen_mail', $_SESSION["anlegen_mail"]);
|
||||
}
|
||||
# Daten aufbereiten für Zurückbutton ENDE
|
||||
*/
|
||||
# if(isset($_GET['edituid']) and $_GET['edituid'] != ''){
|
||||
# # Aus externer Seite edit_user.php
|
||||
# #echo "<br><br><br><br><br><br><br><br>-----------------------------------------------hier";
|
||||
# $uid = $_GET['edituid'];
|
||||
# $smarty->assign('create_edit', $uid);
|
||||
#
|
||||
# $result0 = $db->query("SELECT vorname, nachname, mail
|
||||
# FROM jumi_admin
|
||||
# WHERE uid = $uid;");
|
||||
# $row0 = $result0->fetch_array();
|
||||
# $smarty->assign('member_anlegen_vorname', $row0['vorname']);
|
||||
# $smarty->assign('member_anlegen_nachname', $row0['nachname']);
|
||||
# $smarty->assign('member_anlegen_mail', $row0['mail']);
|
||||
# }
|
||||
#
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
$smarty->assign('action', "$action");
|
||||
$smarty->display("$template/dashboard/$templatename");
|
||||
?>
|
Reference in New Issue
Block a user