1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 04:10:38 +02:00

Minor code clean-up on Trackback (radio_switch)

This commit is contained in:
Tijn Kuyper
2013-02-10 18:04:48 +01:00
parent 57dfccc37e
commit e4ea0344d6

View File

@@ -2,16 +2,14 @@
/* /*
* e107 website system * e107 website system
* *
* Copyright (C) 2008-2009 e107 Inc (e107.org) * Copyright (C) 2008-2013 e107 Inc (e107.org)
* Released under the terms and conditions of the * Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
* *
* Plugin administration - newsfeeds * Plugin administration - Trackback
* *
* $Source: /cvs_backup/e107_0.8/e107_plugins/trackback/admin_config.php,v $ * $URL$
* $Revision$ * $Id$
* $Date$
* $Author$
* *
*/ */
require_once("../../class2.php"); require_once("../../class2.php");
@@ -24,7 +22,6 @@ if (!getperms("P") || !plugInstalled('trackback'))
include_lan(e_PLUGIN."trackback/languages/".e_LANGUAGE."_admin_trackback.php"); include_lan(e_PLUGIN."trackback/languages/".e_LANGUAGE."_admin_trackback.php");
require_once(e_ADMIN."auth.php"); require_once(e_ADMIN."auth.php");
$frm = e107::getForm(); $frm = e107::getForm();
$mes = e107::getMessage(); $mes = e107::getMessage();
@@ -48,20 +45,15 @@ if (isset($_POST['updatesettings']))
$mes->addInfo(LAN_NO_CHANGE); $mes->addInfo(LAN_NO_CHANGE);
} }
} }
$ns->tablerender($caption, $mes->render() . $text); $ns->tablerender($caption, $mes->render() . $text);
$text = " $text = "
<form method='post' action='".e_SELF."'> <form method='post' action='".e_SELF."'>
<table class='table adminform'> <table class='table adminform'>
<tr> <tr>
<td>".TRACKBACK_L7."</td> <td>".TRACKBACK_L7."</td>
<td> <td>".$frm->radio_switch('trackbackEnabled', $pref['trackbackEnabled'])."</td>
<input type='radio' name='trackbackEnabled' value='1'".($pref['trackbackEnabled'] ? " checked='checked'" : "")." /> ".LAN_ENABLED."&nbsp;&nbsp;
<input type='radio' name='trackbackEnabled' value='0'".(!$pref['trackbackEnabled'] ? " checked='checked'" : "")." /> ".LAN_DISABLED."
</td>
</tr> </tr>
<tr> <tr>
@@ -75,8 +67,6 @@ $text = "
</div> </div>
"; ";
$ns->tablerender(TRACKBACK_L10, $text); $ns->tablerender(TRACKBACK_L10, $text);
require_once(e_ADMIN."footer.php"); require_once(e_ADMIN."footer.php");