mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 06:30:07 +01:00
fix: remove unused admin page field
This commit is contained in:
parent
48bb02a0e2
commit
41d070222e
5 changed files with 3 additions and 16 deletions
|
@ -248,7 +248,6 @@ $redis->pconnect(PP_REDIS_HOST);
|
||||||
$site_info = getSiteInfo();
|
$site_info = getSiteInfo();
|
||||||
$global_site_info = $site_info['site_info'];
|
$global_site_info = $site_info['site_info'];
|
||||||
$row = $site_info['site_info'];
|
$row = $site_info['site_info'];
|
||||||
$title = trim($row['title']);
|
|
||||||
$site_name = trim($row['site_name']);
|
$site_name = trim($row['site_name']);
|
||||||
$email = trim($row['email']);
|
$email = trim($row['email']);
|
||||||
|
|
||||||
|
|
|
@ -85,9 +85,9 @@ $admin_logs = AdminLog::with('user')
|
||||||
method="POST">
|
method="POST">
|
||||||
<div class="form-area">
|
<div class="form-area">
|
||||||
<div class="group">
|
<div class="group">
|
||||||
|
<label for="password">Change your personal admin password:</label>
|
||||||
<input type="password" id="password" name="password"
|
<input type="password" id="password" name="password"
|
||||||
class="form-control" placeholder="Admin Password">
|
class="form-control" placeholder="Admin Password">
|
||||||
<i class="fa fa-key"></i>
|
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn btn-default btn-block">Save</button>
|
<button type="submit" class="btn btn-default btn-block">Save</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -105,7 +105,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div id="top" class="clearfix">
|
<div id="top" class="clearfix">
|
||||||
<!-- Start App Logo -->
|
<!-- Start App Logo -->
|
||||||
<div class="applogo">
|
<div class="applogo">
|
||||||
|
@ -159,17 +158,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-2 control-label form-label" for="site_info_title">Site
|
|
||||||
Title</label>
|
|
||||||
<div class="col-sm-10">
|
|
||||||
<input type="text" class="form-control" name="site_info[title]"
|
|
||||||
id="site_info_title"
|
|
||||||
placeholder="Site title tag"
|
|
||||||
value="<?= pp_html_escape($current_site_info['title']); ?>">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-2 control-label form-label"
|
<label class="col-sm-2 control-label form-label"
|
||||||
for="site_info_description">Site Description</label>
|
for="site_info_description">Site Description</label>
|
||||||
|
|
|
@ -157,7 +157,7 @@ $is_admin = $current_user->role >= User::ROLE_ADMIN;
|
||||||
foreach ($res as $paste) {
|
foreach ($res as $paste) {
|
||||||
$p_date = new DateTime($paste['created_at']);
|
$p_date = new DateTime($paste['created_at']);
|
||||||
$p_date_formatted = $p_date->format('jS F Y h:i:s A');
|
$p_date_formatted = $p_date->format('jS F Y h:i:s A');
|
||||||
$title = truncate($title, 5, 30);
|
$title = truncate($paste->title, 5, 30);
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= pp_html_escape($paste->user->username); ?></td>
|
<td><?= pp_html_escape($paste->user->username); ?></td>
|
||||||
|
|
|
@ -19,7 +19,7 @@ $flashes = getFlashes();
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
<?php
|
<?php
|
||||||
$title = $global_site_info['title'];
|
$title = $global_site_info['site_name'];
|
||||||
|
|
||||||
if (isset($page_title)) {
|
if (isset($page_title)) {
|
||||||
$title = $page_title . ' - ' . $title;
|
$title = $page_title . ' - ' . $title;
|
||||||
|
|
Loading…
Add table
Reference in a new issue