PHP Classes

File: fake-admin-panel/install/info/un_conclusion.php

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   Fake PHP Admin Panel HoneyPot   fake-admin-panel/install/info/un_conclusion.php   Download  
File: fake-admin-panel/install/info/un_conclusion.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Fake PHP Admin Panel HoneyPot
Implements a fake admin panel for a site
Author: By
Last change:
Date: 4 years ago
Size: 1,403 bytes
 

Contents

Class file image Download
<?php
/**
 * @author Pierre-Henry Soria <hi@ph7.me>
 * @copyright (c) 2012-2018, Pierre-Henry Soria. All Rights Reserved.
 * @license GNU General Public License <http://www.gnu.org/licenses/gpl.html>
 * @package PH7 / App / Module / Fake Admin Panel / Install / Info
 */

namespace PH7;

defined('PH7') or exit('Restricted access');

/* Uninstall Conclusion */

// Default content values
$sHtml = '';

$sCode = <<<'EOS'
<li class="menu-item dropdown dropdown-submenu"><a href="{{ $design->url('m/fake-admin-panel', 'admin', 'index') }}">{lang 'Fake Admin Panel'}</a>
  <ul class="dropdown-menu" role="menu">
    <li><a href="{{ $design->url('m/fake-admin-panel', 'admin', 'config') }}">{lang 'Config Fake Admin Panel'}</a></li>
  </ul>
</li>
EOS;


/*** Begin Contents ***/

$sHtml .= '<p>' . t('Uninstallation completed!') . '</p>';
$sHtml .= '<p class="underline">' . t('Please remove the module link from the menu file.') . '</p>';
$sHtml .= '<p>' . t('1) Open the "%0%" file.', '<em>~/templates/themes/base/tpl/top_menu.inc.tpl</em>') . '</p>';
$sHtml .= '<p>' . t('2) Remove the following code.') . '</p>';
$sHtml .= '<textarea cols="65" rows="7" readonly="readonly" onclick="this.focus(); this.select();">' . $sCode . '</textarea>';
$sHtml .= '<p>' . t('3) Done!') . '</p>';
$sHtml .= '<p>' . t('Thank you!') . '</p>';

/*** End Contents ***/

// Output!
return $sHtml;