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();
|
||||
$global_site_info = $site_info['site_info'];
|
||||
$row = $site_info['site_info'];
|
||||
$title = trim($row['title']);
|
||||
$site_name = trim($row['site_name']);
|
||||
$email = trim($row['email']);
|
||||
|
||||
|
|
|
@ -85,9 +85,9 @@ $admin_logs = AdminLog::with('user')
|
|||
method="POST">
|
||||
<div class="form-area">
|
||||
<div class="group">
|
||||
<label for="password">Change your personal admin password:</label>
|
||||
<input type="password" id="password" name="password"
|
||||
class="form-control" placeholder="Admin Password">
|
||||
<i class="fa fa-key"></i>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-default btn-block">Save</button>
|
||||
</div>
|
||||
|
|
|
@ -105,7 +105,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="top" class="clearfix">
|
||||
<!-- Start App Logo -->
|
||||
<div class="applogo">
|
||||
|
@ -159,17 +158,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||
</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">
|
||||
<label class="col-sm-2 control-label form-label"
|
||||
for="site_info_description">Site Description</label>
|
||||
|
|
|
@ -157,7 +157,7 @@ $is_admin = $current_user->role >= User::ROLE_ADMIN;
|
|||
foreach ($res as $paste) {
|
||||
$p_date = new DateTime($paste['created_at']);
|
||||
$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>
|
||||
<td><?= pp_html_escape($paste->user->username); ?></td>
|
||||
|
|
|
@ -19,7 +19,7 @@ $flashes = getFlashes();
|
|||
|
||||
<title>
|
||||
<?php
|
||||
$title = $global_site_info['title'];
|
||||
$title = $global_site_info['site_name'];
|
||||
|
||||
if (isset($page_title)) {
|
||||
$title = $page_title . ' - ' . $title;
|
||||
|
|
Loading…
Add table
Reference in a new issue