Changes of the last few months including restructuring system from using only ranks to permissions
This commit is contained in:
@@ -10,7 +10,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="x_content">
|
||||
<iframe src="/piwik/index.php?module=CoreHome&action=index&idSite=1&period=day&date=today"
|
||||
<iframe src="https://stats.kingofdog.eu/"
|
||||
style="height:100vh;width:100%" frameborder="0" async></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -33,7 +33,7 @@
|
||||
?>
|
||||
|
||||
<link href="<?= $styleName ?>" rel="stylesheet">
|
||||
<link rel="stylesheet" href="<?= base_url('assets/css/lib/fontawesome-all.min.css') ?>">
|
||||
<link rel="stylesheet" href="<?= base_url('assets/css/lib/fontawesome-all-5.2.0.min.css') ?>">
|
||||
|
||||
<link href="/assets/images/ico/favicon.ico" rel="icon">
|
||||
</head>
|
||||
@@ -91,64 +91,78 @@
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="menu_section">
|
||||
<h3>Blog</h3>
|
||||
<ul class="nav side-menu">
|
||||
<li>
|
||||
<a href="/admin/blog">
|
||||
<i class="fa fa-comments"></i>
|
||||
Blog-Posts
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/admin/blog/trashbin">
|
||||
<i class="fa fa-trash"></i>
|
||||
Gelöschte Blog-Posts
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/admin/blog/edit">
|
||||
<i class="fa fa-edit"></i>
|
||||
Blog-Post erstellen
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php if ($_SESSION['user']['rank'] >= 9): ?>
|
||||
<?php if (get_instance()->hasPermission('blog.view')): ?>
|
||||
<div class="menu_section">
|
||||
<h3>Verwaltung</h3>
|
||||
<h3>Blog</h3>
|
||||
<ul class="nav side-menu">
|
||||
<?php if (get_instance()->hasPermission('blog.view')): ?>
|
||||
<li>
|
||||
<a href="/admin/blog">
|
||||
<i class="fa fa-comments"></i>
|
||||
Blog-Posts
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if (get_instance()->hasPermission('blog.view')): ?>
|
||||
<li>
|
||||
<a href="/admin/blog/trashbin">
|
||||
<i class="fa fa-trash"></i>
|
||||
Gelöschte Blog-Posts
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if (get_instance()->hasPermission('blog.create')): ?>
|
||||
<li>
|
||||
<a href="/admin/blog/edit">
|
||||
<i class="fa fa-edit"></i>
|
||||
Blog-Post erstellen
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="menu_section">
|
||||
<h3>Verwaltung</h3>
|
||||
<ul class="nav side-menu">
|
||||
<?php if (get_instance()->hasPermission('projects.view')): ?>
|
||||
<li>
|
||||
<a href="/admin/projects">
|
||||
<i class="fa fa-camera"></i>
|
||||
Projekte
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if (get_instance()->hasPermission('projects.create')): ?>
|
||||
<li>
|
||||
<a href="/admin/projects/edit">
|
||||
<i class="fa fa-plus"></i>
|
||||
Projekt erstellen
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if (get_instance()->hasPermission('file.view')): ?>
|
||||
<li>
|
||||
<a href="/admin/files">
|
||||
<i class="fa fa-folder-open"></i>
|
||||
Dateien
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if (get_instance()->hasPermission('redirect.view')): ?>
|
||||
<li>
|
||||
<a href="/admin/redirects">
|
||||
<i class="fa fa-arrow-right"></i>
|
||||
Weiterleitungen
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="menu_section">
|
||||
<h3>Nutzer</h3>
|
||||
<ul class="nav side-menu">
|
||||
<?php if ($_SESSION['user']['rank'] >= 9): ?>
|
||||
<?php if (get_instance()->hasPermission('user.view')): ?>
|
||||
<li>
|
||||
<a href="/admin/users">
|
||||
<i class="fa fa-users"></i>
|
||||
@@ -156,7 +170,7 @@
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if ($_SESSION['user']['rank'] >= 9): ?>
|
||||
<?php if (get_instance()->hasPermission('feedback.receive')): ?>
|
||||
<li>
|
||||
<a href="/admin/feedback">
|
||||
<i class="fa fa-comments"></i>
|
||||
@@ -164,7 +178,7 @@
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if ($_SESSION['user']['rank'] >= 8): ?>
|
||||
<?php if (get_instance()->hasPermission('contact.view')): ?>
|
||||
<li>
|
||||
<a href="/admin/contact">
|
||||
<i class="fa fa-envelope"></i>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
<div class="right_col" role="main">
|
||||
<div class="row">
|
||||
@@ -77,5 +77,36 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 col-sm-4 col-xs-4">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2>Individuelle Rechte</h2>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="x_content">
|
||||
<form method="POST" class="form">
|
||||
<?php foreach ($availablePermissions as $group => $perms): ?>
|
||||
<h4>
|
||||
<?= $group ?>
|
||||
|
||||
<input type="checkbox" class="group-all">
|
||||
</h4>
|
||||
|
||||
<ul>
|
||||
<?php foreach ($perms as $perm):
|
||||
$name = $group . '.' . $perm; ?>
|
||||
<li>
|
||||
<label data-toggle="tooltip" title="blablabla" for="<?= $group . $perm ?>"><?= $name ?></label>
|
||||
<input type="checkbox" value="true" name="permissions[<?= $group . $perm ?>]" id="<?= $group . $perm ?>" <?= in_array($name, $permissions) ? 'checked' : '' ?>>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endforeach; ?>
|
||||
<input type="submit" class="btn btn-primary" value="Speichern">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -55,10 +55,11 @@
|
||||
];
|
||||
$loginMethod = $loginMethods[$user['login_method']];
|
||||
|
||||
$date_created = strtotime($user['date_created']);
|
||||
$last_login = strtotime($user['lastLogin']);
|
||||
$date_created_str = DateTimeHumanizer::difference(new \DateTime(), new \DateTime("@$date_created"), "de_DE");
|
||||
$last_login_str = DateTimeHumanizer::difference(new \DateTime(), new \DateTime("@$last_login"), "de_DE");
|
||||
$dateCreated = strtotime($user['date_created']);
|
||||
$lastLogin = strtotime($user['lastLogin']);
|
||||
$dateCreatedStr = DateTimeHumanizer::difference(new \DateTime(), new \DateTime("@$dateCreated"), "de_DE");
|
||||
if($lastLogin)
|
||||
$lastLoginStr = DateTimeHumanizer::difference(new \DateTime(), new \DateTime("@$lastLogin"), "de_DE");
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
@@ -76,9 +77,9 @@
|
||||
<?= $user['rankName'] ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= $date_created_str ?>
|
||||
<?= $dateCreatedStr ?>
|
||||
<br>
|
||||
(<?= date("d.m.Y H:i", $date_created) ?>)
|
||||
(<?= date("d.m.Y H:i", $dateCreated) ?>)
|
||||
</td>
|
||||
<td>
|
||||
<img src="<?= $user['profile_picture'] ?>?w=50" class="img-fluid rounded"
|
||||
@@ -104,9 +105,9 @@
|
||||
<?= $loginMethod ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= $last_login_str ?>
|
||||
<?= $lastLoginStr ?>
|
||||
<br>
|
||||
(<?= date("d.m.Y H:i", $last_login) ?>)
|
||||
(<?= date("d.m.Y H:i", $lastLogin) ?>)
|
||||
</td>
|
||||
<td>
|
||||
<?= Locale::getDisplayLanguage($user['language'], "de") ?>
|
||||
@@ -114,14 +115,23 @@
|
||||
<?= Locale::getDisplayRegion("-" . $user['country'], 'de') ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if (isset($_SESSION['user']) && $_SESSION['user']['rank'] >= 8 && ($_SESSION['user']['rank'] > $user['rank'] || $_SESSION['user']['rank'] == 10)): ?>
|
||||
<?php if(get_instance()->hasPermission('user.viewDetails')): ?>
|
||||
<a data-toggle="tooltip" data-placement="top" title="" data-original-title="Details" href="<?= base_url('admin/users/details/' . $user['ID']) ?>" target="_blank" class="btn btn-xs btn-default">
|
||||
<i class="fa fa-info-circle"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(get_instance()->hasPermission('user.viewDetails')): ?>
|
||||
<a data-toggle="tooltip" data-placement="top" title="" data-original-title="Einstellungen" href="<?= base_url('admin/users/settings/' . $user['ID']) ?>" target="_blank" class="btn btn-xs btn-default">
|
||||
<i class="fa fa-cog"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(get_instance()->hasPermission('user.ban')): ?>
|
||||
<a data-toggle="tooltip" data-placement="top" title="" data-original-title="Account löschen" onclick="showDeleteModal(<?= $user['ID'] ?>. <?= $user['username'] ?>)" target="_blank" class="btn btn-xs btn-red">
|
||||
<i class="fas fa-user-slash"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
@@ -127,6 +127,21 @@
|
||||
});
|
||||
})(jQuery);
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var _paq = _paq || [];
|
||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
(function() {
|
||||
var u="//stats.kingofdog.eu/";
|
||||
_paq.push(['setTrackerUrl', u+'piwik.php']);
|
||||
_paq.push(['setSiteId', '1']);
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
</script>
|
||||
|
||||
<!--<script type="text/javascript">
|
||||
var _paq = _paq || [];
|
||||
_paq.push(['trackPageView']);
|
||||
|
@@ -1,12 +1,5 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
$this->LoginModel->autoLogin();
|
||||
|
||||
if (!isset($_SESSION['site_lang']) && isset($_COOKIE['language']) && in_array($_COOKIE['language'], ['de', 'en', 'fr'])) {
|
||||
$this->session->set_userdata('site_lang', $_COOKIE['language']);
|
||||
redirect(base_url(uri_string()));
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?= $_SESSION['site_lang'] ?>">
|
||||
@@ -138,7 +131,7 @@
|
||||
<i class="fa fa-user-edit"></i>
|
||||
<?= lang('header_edit_profile') ?>
|
||||
</a>
|
||||
<?php if ($_SESSION['user']['rank'] >= 6): ?>
|
||||
<?php if (get_instance()->hasPermission('dashboard.view')): ?>
|
||||
<a href="<?= base_url('admin') ?>" class="dropdown-item">
|
||||
<i class="fa fa-tachometer-alt"></i>
|
||||
<?= lang('header_admin_panel') ?>
|
||||
|
@@ -34,7 +34,7 @@
|
||||
</p>
|
||||
<br>
|
||||
<a class="boxed btn btn-md animation animated-item-4"
|
||||
href="<?= base_url('portfolio') ?>">
|
||||
href="<?= base_url('projects') ?>">
|
||||
<?= lang('home_slider_portfolio_btn') ?>
|
||||
</a>
|
||||
</div>
|
||||
@@ -140,70 +140,57 @@
|
||||
</a>
|
||||
</section>
|
||||
<!--/#main-slider-->
|
||||
<section class="container">
|
||||
<h1><?= lang('home_channels_title') ?></h1>
|
||||
<div class="row">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-xs-4 mx-4 m-sm-0">
|
||||
<a href="https://www.youtube.de/KingOfDog" target="_blank">
|
||||
<img src="/f/59768b61257e439b593ff2fb112d5079?w=200" class="img-fluid rounded">
|
||||
</a>
|
||||
</div>
|
||||
<div class="col mr-4 m-sm-0">
|
||||
<a href="https://www.youtube.de/KingOfDog" target="_blank">
|
||||
<h2>KingOfDog</h2>
|
||||
</a>
|
||||
<p class="text-justify"><?= lang('home_kingofdog_des') ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section class="container-fluid p-0">
|
||||
<div class="container">
|
||||
<div class="row my-2">
|
||||
<div class="col">
|
||||
<h1><?= lang('home_channels_title') ?></h1>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-xs-4 mx-4 m-sm-0">
|
||||
<a href="https://www.youtube.com/channel/UCossYe6KMMhf9HJ9Uaqtu-g" target="_blank">
|
||||
<img src="/f/fbee51f02df362fc8cca5a2a177e1852?w=200" class="img-fluid rounded">
|
||||
</a>
|
||||
</div>
|
||||
<div class="col mr-4 m-sm-0">
|
||||
<a href="https://www.youtube.com/channel/UCossYe6KMMhf9HJ9Uaqtu-g" target="_blank">
|
||||
<h2>ZeybeFX</h2>
|
||||
</a>
|
||||
<p class="text-justify"><?= lang('home_zeybefx_des') ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tilted-columns">
|
||||
<div class="tilted-column">
|
||||
<img class="column-image" src="/f/59768b61257e439b593ff2fb112d5079" alt="KingOfDog Logo">
|
||||
<div class="column-caption">
|
||||
<h1 class="column-title">KingOfDog</h1>
|
||||
<h3 class="column-desc"><?= lang('home_kingofdog_des') ?></h3>
|
||||
</div>
|
||||
<div class="w-100"></div>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-xs-4 mx-4 m-sm-0">
|
||||
<a href="https://www.youtube.com/channel/UCJ1_Tj4SVkU5h9a8Q0VrB4A" target="_blank">
|
||||
<img src="/f/b1771da2202f7fc83325520be61d961a?w=200" class="img-fluid rounded">
|
||||
</a>
|
||||
</div>
|
||||
<div class="col mr-4 m-sm-0">
|
||||
<a href="https://www.youtube.com/channel/UCJ1_Tj4SVkU5h9a8Q0VrB4A" target="_blank">
|
||||
<h2>ZeybeOfficial</h2>
|
||||
</a>
|
||||
<p class="text-justify"><?= lang('home_zeybeofficial_des') ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tilted-column">
|
||||
<img class="column-image" src="/f/3c930821892961aba30c7f91df1e5d4e" alt="ZeybeFX Logo">
|
||||
<div class="column-caption">
|
||||
<h1 class="column-title">ZeybeFX</h1>
|
||||
<h3 class="column-desc"><?= lang('home_zeybefx_des') ?></h3>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-xs-4 mx-4 m-sm-0">
|
||||
<a href="https://www.youtube.com/channel/UCthOkS9cpKgnBSj7AdR1rDg" target="_blank">
|
||||
<img src="/f/972a648bc945712b44dd2b020150d3d5?w=200" class="img-fluid rounded">
|
||||
</a>
|
||||
</div>
|
||||
<div class="col mr-4 m-sm-0">
|
||||
<a href="https://www.youtube.com/channel/UCthOkS9cpKgnBSj7AdR1rDg" target="_blank">
|
||||
<h2>KingOfDog International</h2>
|
||||
</a>
|
||||
<p class="text-justify"><?= lang('home_kingofdogint_des') ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tilted-column">
|
||||
<img class="column-image" src="/f/54c5963da3587342cb34336fd15c87aa" alt="ZeybeOfficial Logo">
|
||||
<div class="column-caption">
|
||||
<h1 class="column-title">ZeybeOfficial</h1>
|
||||
<h3 class="column-desc"><?= lang('home_zeybeofficial_des') ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tilted-column">
|
||||
<img class="column-image" src="/f/7b3fd0b5fb3ef9565f396a266db14a64" alt="KingOfDog International Logo">
|
||||
<div class="column-caption">
|
||||
<h1 class="column-title">KingOfDog International</h1>
|
||||
<h3 class="column-desc"><?= lang('home_kingofdogint_des') ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tilted-column">
|
||||
<img class="column-image" src="/f/d904d757da59e2d514d9b12604b9c8b6" alt="KingOfDogTV Logo">
|
||||
<div class="column-caption">
|
||||
<h1 class="column-title">KingOfDogTV</h1>
|
||||
<h3 class="column-desc"><?= lang('home_kingofdogtv_des') ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tilted-column">
|
||||
<img class="column-image" src="/f/1771967ab185e4d62ff5963977032fd8" alt="MinePoint Logo">
|
||||
<div class="column-caption">
|
||||
<h1 class="column-title">MinePoint</h1>
|
||||
<h3 class="column-desc"><?= lang('home_minepoint_des') ?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -228,8 +215,8 @@
|
||||
</section>
|
||||
|
||||
<section class="container">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-4">
|
||||
<div class="grid grid-kod-network">
|
||||
<div class="item-active">
|
||||
<h2><?= lang('home_active_users') ?></h2>
|
||||
<?php foreach ($currentlyActiveUsers as $activeUser):
|
||||
$loginTime = strtotime($activeUser['lastLogin']); ?>
|
||||
@@ -245,7 +232,7 @@
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-4">
|
||||
<div class="item-newest">
|
||||
<h2><?= lang('home_newest_users') ?></h2>
|
||||
<?php
|
||||
foreach ($newestUsers as $newestUser):
|
||||
@@ -263,7 +250,7 @@
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-4">
|
||||
<div class="item-posts">
|
||||
<h2><?= lang('home_newest_posts') ?></h2>
|
||||
<ul class="comment-list">
|
||||
<?php foreach ($newestPosts as $newestPost):
|
||||
|
@@ -1,14 +1,13 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$this->load->view('network/user/profile_page_header');
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$this->load->view('network/user/profile_page_header');
|
||||
?>
|
||||
<section class="container" id="profile-content" data-type="foreground" data-speed="10">
|
||||
<div class="row">
|
||||
<!-- --><?php //$this->load->view('network/user/user_profile_card') ?>
|
||||
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4"></div>
|
||||
<div class="col-xs-12 col-sm-12 col-md-8 col-lg-8" id="profile-content-container">
|
||||
<div class="col-xs-12 col-sm-12 col-md-8 col-lg-8 offset-md-2" id="profile-content-container">
|
||||
<?= $message ?>
|
||||
<h1>Profil bearbeiten</h1>
|
||||
<h1 class="text-center">Profil bearbeiten</h1>
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
<div class="nav nav-pills flex-column" role="tablist" aria-orientation="vertical">
|
||||
@@ -24,6 +23,11 @@ $this->load->view('network/user/profile_page_header');
|
||||
<br>
|
||||
E-Mail
|
||||
</a>
|
||||
<a href="#messages" class="nav-link text-center" role="tab" data-toggle="pill" id="messages-pill" aria-controls="messages" aria-selected="false">
|
||||
<i class="fa fa-bell"></i>
|
||||
<br>
|
||||
Nachrichten
|
||||
</a>
|
||||
<a href="#password" class="nav-link text-center" role="tab" data-toggle="pill"
|
||||
id="password-pill" aria-controls="password" aria-selected="false">
|
||||
<i class="fa fa-lock"></i>
|
||||
@@ -1126,22 +1130,27 @@ $this->load->view('network/user/profile_page_header');
|
||||
<form method="post">
|
||||
<div class="form-group">
|
||||
<label for="email">E-Mail-Adresse</label>
|
||||
<input type="email" class="form-control" name="email"
|
||||
<input type="email" class="form-control" name="email" id="email"
|
||||
value="<?= isset($data['email']) ? $data['email'] : "" ?>">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email-password">Passwort zur Bestätigung der E-Mail-Adresse</label>
|
||||
<input type="password" class="form-control" name="email-password"
|
||||
<input type="password" class="form-control" name="email-password" id="email-password"
|
||||
placeholder="Bitte gebe dein derzeitiges Passwort ein">
|
||||
</div>
|
||||
<input type="submit" class="btn btn-primary" value="Speichern">
|
||||
</form>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="messages" role="tabpanel" aria-labelledby="messages-pill">
|
||||
<form method="post">
|
||||
<div class="form-group">
|
||||
<input type="checkbox" value="true"
|
||||
name="email-notifications" <?= isset($data['receiveEmails']) && $data['receiveEmails'] ? "checked" : "" ?>>
|
||||
rel="email-notifications" id="email-notifications" <?= isset($data['receiveEmails']) && $data['receiveEmails'] ? "checked" : "" ?>>
|
||||
<label for="email-notifications">E-Mail Benachrichtigungen</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="checkbox" value="true"
|
||||
name="newsletter" <?= isset($data['receiveNewsletter']) && $data['receiveNewsletter'] ? "checked" : "" ?>>
|
||||
rel="newsletter" id="newsletter" <?= isset($data['receiveNewsletter']) && $data['receiveNewsletter'] ? "checked" : "" ?>>
|
||||
<label for="newsletter">Newsletter</label>
|
||||
</div>
|
||||
<input type="submit" class="btn btn-primary" value="Speichern">
|
||||
@@ -1151,44 +1160,51 @@ $this->load->view('network/user/profile_page_header');
|
||||
<form method="post">
|
||||
<div class="form-group">
|
||||
<label for="passwordOld">Altes Passwort</label>
|
||||
<input type="password" class="form-control" name="passwordOld">
|
||||
<input type="password" class="form-control" name="passwordOld" id="passwordOld">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="passwordNew">Neues Passwort</label>
|
||||
<input type="password" class="form-control" name="passwordNew">
|
||||
<input type="password" class="form-control" name="passwordNew" id="passwordNew">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="passwordNewRepeat">Neues Passwort wiederholen</label>
|
||||
<input type="password" class="form-control" name="passwordNewRepeat">
|
||||
<input type="password" class="form-control" name="passwordNewRepeat" id="passwordNewRepeat">
|
||||
</div>
|
||||
<input type="submit" class="btn btn-primary" value="Speichern">
|
||||
</form>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="premium" role="tabpanel" aria-labelledby="premium-pill">
|
||||
<form method="post">
|
||||
<?php if (isset($_SESSION['user']['rank']) && $_SESSION['user']['rank'] >= 2): ?>
|
||||
<?php if (get_instance()->hasPermission('user.disableAds')): ?>
|
||||
<div class="form-group">
|
||||
<input type="checkbox" name="showAds" value="true"
|
||||
aria-describedby="adHelp" <?= isset($data['showAds']) && $data['showAds'] ? "checked" : "" ?>>
|
||||
<input type="checkbox" name="showAds" id="showAds" value="true"
|
||||
aria-describedby="adsThankYou" <?= isset($data['showAds']) && $data['showAds'] ? "checked" : "" ?>>
|
||||
<label for="showAds">Werbung anzeigen und uns unterstützen</label>
|
||||
<span class="help-block" id="adsHelp">Danke für deine bisherige Unterstützung durch Spenden. Solltest du dennoch weiterhin uns unterstützen wollen, kannst du freiwilligerweise Werbeanzeigen aktivieren. Wie immer gilt unser Motto: höchstens eine Anzeige pro Seite!</span>
|
||||
<small class="form-text text-muted" id="adsThankYou">Danke für deine bisherige Unterstützung durch Spenden. Solltest du dennoch weiterhin uns unterstützen wollen, kannst du freiwilligerweise Werbeanzeigen aktivieren. Wie immer gilt unser Motto: höchstens eine Anzeige pro Seite!</small>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
|
||||
<p class="text-warning">Um diese Einstellungen zu sehen und zu verändern, musst du
|
||||
entweder ein Team-Mitglied, ein Plus-Nutzer oder ein Premium-Nutzer sein.</p>
|
||||
<p>Premium-Nutzer kannst du werden, indem du einen beliebigen Betrag auf der <a
|
||||
href="<?= base_url('donate') ?>">Spenden-Seite</a> hinterlässt. So
|
||||
unterstützt du zum einen diese Webseite und sorgst für ein Weiterleben dieses
|
||||
Services und gleichzeitig erhälst du die Möglichkeit, den Dienst ohne Werbung zu
|
||||
erleben.</p>
|
||||
entweder ein Team-Mitglied, ein Plus-Nutzer oder ein Premium-Nutzer sein.</p>
|
||||
<p>Premium-Nutzer kannst du werden, indem du einen beliebigen Betrag auf der
|
||||
<a
|
||||
href="<?= base_url('donate') ?>">Spenden-Seite
|
||||
</a>
|
||||
hinterlässt. So
|
||||
unterstützt du zum einen diese Webseite und sorgst für ein Weiterleben dieses
|
||||
Services und gleichzeitig erhälst du die Möglichkeit, den Dienst ohne Werbung zu
|
||||
erleben.
|
||||
</p>
|
||||
<p>Plus-Nutzer oder Team-Mitglied kannst du nur auf persönliche Einladung eines
|
||||
hochrangigen Team-Mitgliedes werden. Der Plus-Rang wird beispielsweise an
|
||||
YouTuber,
|
||||
bekannte Persönlichkeiten, sehr aktive Nutzer, sehr großzügige Spender, aktive
|
||||
Abonnenten des Kanals <a href="https://youtube.com/KingOfDog" target="_blank">KingOfDog</a>
|
||||
oder Freunde und Bekannte vergeben.</p>
|
||||
hochrangigen Team-Mitgliedes werden. Der Plus-Rang wird beispielsweise an
|
||||
YouTuber,
|
||||
bekannte Persönlichkeiten, sehr aktive Nutzer, sehr großzügige Spender, aktive
|
||||
Abonnenten des Kanals
|
||||
<a href="https://youtube.com/KingOfDog" target="_blank">KingOfDog</a>
|
||||
oder Freunde und Bekannte vergeben.
|
||||
</p>
|
||||
<p>Es gilt jedoch eine Regel: <b>Bitte. Nicht. Nach. Einem. Rang. Betteln.</b> Durch
|
||||
eine solche Aktivität verfliegt eure Chance auf einen Rang.</p>
|
||||
eine solche Aktivität verfliegt eure Chance auf einen Rang.</p>
|
||||
<?php endif; ?>
|
||||
</form>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user