PageRenderTime 2171ms queryFilters 1ms Sphinxql 2071ms GetByIds 66ms meta 0ms repositoryFilters 4ms languageFilters 1ms sourceFilters 1ms

1,427,616 results for 'php empty repo:theguly/thaps' (2171 ms)

Source

Language

Repository

common.php https://gitlab.com/thejuskrishna/xmecorg.git | PHP | 472 lines
1<?php
2  if ( defined( "_COMMON_PHP" ) ) return;
43  // handle configs that have register_globals turned off.
44  // we use $PHP_SELF as the test since it should always be there.
45  // We might need to consider not using globals soon.
45  // We might need to consider not using globals soon.
46  if(!isset($PHP_SELF)) {
47     include ("./include/register_globals.php");
150
151  // passed to array_walk in read.php and list.php
152  // **TODO: replace using array_flip
379  // include abstraction layer and check if its defined
380  if(!defined("PHORUM_ADMIN") && (empty($PHORUM["dbtype"]) || !file_exists("./db/$PHORUM[dbtype].php"))){
381    echo "<html><head><title>Phorum Error</title></head><body>Something is wrong.  You need to edit common.php and select a database.</body></html>";
461      while($plugindirname = readdir($dir)) {
462        if($plugindirname[0] != "." && @file_exists("./plugin/$plugindirname/plugin.php") && !empty($PHORUM["plugins"][$plugindirname])){
463          include("./plugin/$plugindirname/plugin.php");
common.php https://gitlab.com/thejuskrishna/xmecorg.git | PHP | 472 lines
1<?php
2  if ( defined( "_COMMON_PHP" ) ) return;
43  // handle configs that have register_globals turned off.
44  // we use $PHP_SELF as the test since it should always be there.
45  // We might need to consider not using globals soon.
45  // We might need to consider not using globals soon.
46  if(!isset($PHP_SELF)) {
47     include ("./include/register_globals.php");
150
151  // passed to array_walk in read.php and list.php
152  // **TODO: replace using array_flip
379  // include abstraction layer and check if its defined
380  if(!defined("PHORUM_ADMIN") && (empty($PHORUM["dbtype"]) || !file_exists("./db/$PHORUM[dbtype].php"))){
381    echo "<html><head><title>Phorum Error</title></head><body>Something is wrong.  You need to edit common.php and select a database.</body></html>";
461      while($plugindirname = readdir($dir)) {
462        if($plugindirname[0] != "." && @file_exists("./plugin/$plugindirname/plugin.php") && !empty($PHORUM["plugins"][$plugindirname])){
463          include("./plugin/$plugindirname/plugin.php");
global.php https://gitlab.com/trang1104/portable_project.git | PHP | 363 lines
1<?php
2/*======================================================================*\
197
198	if (!empty($foruminfo))
199	{
219	{
220		$loginlink = 'index.php' . (!empty($querystring) ? "/$querystring" : '') . '?' . $vbulletin->session->vars['sessionurl'] . 'login=1';
221		$pdalink = 'index.php' . (!empty($querystring) ? "/$querystring" : '') . '?' . $vbulletin->session->vars['sessionurl'] . 'pda=1';
225		$loginlink = 'index.php?' . (!empty($querystring) ? "$querystring&amp;" : '') . $vbulletin->session->vars['sessionurl'] . 'login=1';
226		$pdalink = 'index.php?' . (!empty($querystring) ? "$querystring&amp;" : '') . $vbulletin->session->vars['sessionurl'] . 'pda=1';
227	}
271		$loginlink = 'index.php' . (!empty($querystring) ? "/$querystring" : '') . '?' . $vbulletin->session->vars['sessionurl'] . 'login=1';
272		$pdalink = 'index.php' . (!empty($querystring) ? "/$querystring" : '') . '?' . $vbulletin->session->vars['sessionurl'] . 'pda=1';
273	}
276		$loginlink = 'index.php?' . (!empty($querystring) ? "$querystring&amp;" : '') . $vbulletin->session->vars['sessionurl'] . 'login=1';
277		$pdalink = 'index.php?' . (!empty($querystring) ? "$querystring&amp;" : '') . $vbulletin->session->vars['sessionurl'] . 'pda=1';
278	}
register.php https://gitlab.com/VoyaTrax/vtCMS2.git | PHP | 342 lines
1<?php
2/**
20
21include __DIR__ . '/header.php';
22
23if ($GLOBALS['xoopsUser']) {
24    header('location: userinfo.php?uid= ' . $GLOBALS['xoopsUser']->getVar('uid'));
25    exit();
28if (!empty($_GET['op']) && in_array($_GET['op'], array('actv', 'activate'))) {
29    header('location: ./activate.php' . (empty($_SERVER['QUERY_STRING']) ? '' : '?' . $_SERVER['QUERY_STRING']));
30    exit();
37$GLOBALS['xoopsConfigUser'] = $config_handler->getConfigsByCat(XOOPS_CONF_USER);
38if (empty($GLOBALS['xoopsConfigUser']['allow_register'])) {
39    redirect_header('index.php', 6, _US_NOREGISTER);
200// If the last step required SAVE or if we're on the last step then we will insert/update user on database
201if ($current_step > 0 && empty($stop) && (!empty($steps[$current_step - 1]['step_save']) || !isset($steps[$current_step]))) {
202    if ($GLOBALS['xoopsModuleConfig']['profileCaptchaAfterStep1'] == 1 && $current_step > 1) {
expedition.class.php https://gitlab.com/ziyahan/dolibarr.git | PHP | 1,181 lines
1<?php
2/* Copyright (C) 2003-2008 Rodolphe Quiedeville  <rodolphe@quiedeville.org>
29require_once(DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php");
30if ($conf->propal->enabled) require_once(DOL_DOCUMENT_ROOT."/comm/propal/class/propal.class.php");
31if ($conf->commande->enabled) require_once(DOL_DOCUMENT_ROOT."/commande/class/commande.class.php");
105
106	    if (empty($conf->global->EXPEDITION_ADDON_NUMBER))
107        {
110
111		$file = $conf->global->EXPEDITION_ADDON_NUMBER.".php";
112
316		// Check parameters
317		if (empty($id) && empty($ref) && empty($ref_ext) && empty($ref_int)) return -1;
318
1129			$url='';
1130			if (file_exists(DOL_DOCUMENT_ROOT."/includes/modules/expedition/methode_expedition_".strtolower($code).".modules.php") && ! empty($this->tracking_number))
1131			{
tasks.php https://gitlab.com/ziyahan/dolibarr.git | PHP | 349 lines
1<?php
2/* Copyright (C) 2005      Rodolphe Quiedeville <rodolphe@quiedeville.org>
27require ("../main.inc.php");
28require_once(DOL_DOCUMENT_ROOT."/projet/class/project.class.php");
29require_once(DOL_DOCUMENT_ROOT."/projet/class/task.class.php");
29require_once(DOL_DOCUMENT_ROOT."/projet/class/task.class.php");
30require_once(DOL_DOCUMENT_ROOT."/lib/project.lib.php");
31require_once(DOL_DOCUMENT_ROOT."/lib/date.lib.php");
108			{
109				Header("Location: ".DOL_URL_ROOT.'/projet/tasks/index.php'.(empty($_REQUEST["mode"])?'':'?mode='.$_REQUEST["mode"]));
110				exit;
120	{
121        if (empty($_GET["id"]) && empty($_POST["id"]))
122        {
123            // We go back on task list
124            Header("Location: ".DOL_URL_ROOT.'/projet/tasks/index.php'.(empty($_REQUEST["mode"])?'':'?mode='.$_REQUEST["mode"]));
125            exit;
chng_update_teams.php https://gitlab.com/zanzilan/alp.git | PHP | 204 lines
1<?php
2require_once 'include/_universal.php';
5if ($x->is_secure()) {
6	if (empty($_GET)&&empty($_POST)) {
7		$x->display_slim('incorrect usage.','disp_teams.php');
7		$x->display_slim('incorrect usage.','disp_teams.php');
8	} elseif (!empty($_POST) && !empty($_POST['id']) && !empty($_POST['teamid']) && !empty($_POST['userid'])) {
9		$tournament = $dbc->database_fetch_assoc($dbc->database_query('SELECT * FROM tournaments WHERE tourneyid='.(int)$_POST['id']));
11		$allgood = true;
12		if (!empty($_POST['act']) && ((!$tournament['lockstart']) || ($tournament['lockstart'] && $_POST['act']=='cpt')) && !$tournament['lockjoin'] && !$tournament['lockteams'] && $dbc->database_num_rows($team)) {
13			$teaminfo = $dbc->database_fetch_assoc($team);
67		$x->display_slim($str,'disp_teams.php'.(!empty($_POST['id'])?'?id='.$_POST['id']:''),2);
68	} elseif (!empty($_GET) && !empty($_GET['id'])) {
69		$tournament = $dbc->database_fetch_assoc($dbc->database_query('SELECT * FROM tournaments WHERE tourneyid='.(int)$_GET['id']));
198		}
199		$x->display_slim($str,'disp_teams.php'.(!empty($_GET['id'])?'?id='.$_GET['id']:''),2);
200	} else {
info.php git://github.com/Dolibarr/dolibarr.git | PHP | 236 lines
1<?php
2/* Copyright (C) 2003-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
29require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
30require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
31require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
120
121$linkback = '<a href="'.DOL_URL_ROOT.'/fourn/commande/list.php'.(!empty($socid) ? '?socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
122
195{
196    if (!empty($user->rights->agenda->myactions->create) || !empty($user->rights->agenda->allactions->create))
197    {
197    {
198        print '<a class="butAction" href="'.DOL_URL_ROOT.'/comm/action/card.php?action=create'.$out.'&backtopage='.urlencode($_SERVER["PHP_SELF"].'?id='.$object->id).'">'.$langs->trans("AddAction").'</a>';
199    }
211    $param = '&id='.$object->id;
212    if (!empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param .= '&contextpage='.$contextpage;
213    if ($limit > 0 && $limit != $conf->liste_limit) $param .= '&limit='.$limit;
footer.inc.php https://github.com/gerrywastaken/phpmyadmin-GitHubed.git | PHP | 221 lines
1<?php
2/* vim: set expandtab sw=4 ts=4 sts=4: */
43 * @uses    file_exists()
44 * @version $Id: footer.inc.php 11403 2008-07-15 19:03:11Z lem9 $
45 */
45 */
46if (! defined('PHPMYADMIN')) {
47    exit;
52 */
53require_once './libraries/relation.lib.php';
54
54
55if (! PMA_isValid($_REQUEST['no_history']) && empty($GLOBALS['error_message'])
56 && ! empty($GLOBALS['sql_query'])) {
199// profiling deactivated due to licensing issues
200if (! empty($GLOBALS['cfg']['DBG']['php'])
201 && ! empty($GLOBALS['cfg']['DBG']['profile']['enable'])) {
PackageManagerDisplay.php https://github.com/nerdystudmuffin/dashlet-subpanels.git | PHP | 604 lines
1<?php
2/*********************************************************************************
40require_once('include/ytree/Tree.php');
41require_once('include/ytree/Node.php');
42require_once('ModuleInstall/PackageManager/ListViewPackages.php');
73        $error_html = "";
74		if(!empty($mi_errors)){
75			$error_html = "<tr><td><span>";
201        }
202        if($form_action == 'install.php' && (empty($releases) || count($releases['packages']) == 0)){
203        	//return false;
223    	$output = "<div id='login_panel'><div class='hd'><b>".$mod_strings['HDR_LOGIN_PANEL']."</b></div>";
224        $output .= "<div class='bd'><form><table><tr><td>".$mod_strings['LBL_USERNAME']."</td><td><input type='text' name='login_panel_username' id='login_panel_username' value='".$credentials['username']."'></td><td><a href='http://www.sugarcrm.com/crm/index.php?option=com_registration&task=register' target='blank'>".$mod_strings['LNK_NEW_ACCOUNT']."</a></td>";
225
515            $credentials = PackageManager::getCredentials();
516            if(empty($credentials['username']) || empty($credentials['password'])){
517            	//$header_text = "<font color='red'><b>".$mod_strings['ERR_CREDENTIALS_MISSING']."</b></font>";
PackageManagerDisplay.php https://github.com/mitani/dashlet-subpanels.git | PHP | 604 lines
1<?php
2/*********************************************************************************
40require_once('include/ytree/Tree.php');
41require_once('include/ytree/Node.php');
42require_once('ModuleInstall/PackageManager/ListViewPackages.php');
73        $error_html = "";
74		if(!empty($mi_errors)){
75			$error_html = "<tr><td><span>";
201        }
202        if($form_action == 'install.php' && (empty($releases) || count($releases['packages']) == 0)){
203        	//return false;
223    	$output = "<div id='login_panel'><div class='hd'><b>".$mod_strings['HDR_LOGIN_PANEL']."</b></div>";
224        $output .= "<div class='bd'><form><table><tr><td>".$mod_strings['LBL_USERNAME']."</td><td><input type='text' name='login_panel_username' id='login_panel_username' value='".$credentials['username']."'></td><td><a href='http://www.sugarcrm.com/crm/index.php?option=com_registration&task=register' target='blank'>".$mod_strings['LNK_NEW_ACCOUNT']."</a></td>";
225
515            $credentials = PackageManager::getCredentials();
516            if(empty($credentials['username']) || empty($credentials['password'])){
517            	//$header_text = "<font color='red'><b>".$mod_strings['ERR_CREDENTIALS_MISSING']."</b></font>";
staffpanel.php https://github.com/delete66/sikevux-s-tracker.git | PHP | 336 lines
116		
117		if (!is_file($file_name.'.php') && !empty($file_name) && !preg_match('/.php/', $file_name))
118			$errors[] = 'Inexistent php file.';
289				<td align="left">
290                	<a href="/<?php echo rawurlencode($arr['file_name']); ?>.php"  title="<?php echo safechar($arr['page_name']); ?>"><?php echo safechar($arr['page_name']); ?></a><br /><font class="small"><?php echo safechar($arr['description']); ?></font>
291				</td>
292                <td>
293					<a href="/userdetails.php?id=<?php echo (int)$arr['added_by']; ?>"><?php echo $arr['username']; ?></a>
294                </td>
306						{
307							?><b>[</b><a href="<?php echo $_SERVER['PHP_SELF']; ?>?action=edit&id=<?php echo (int)$arr['id']; ?>" title="Edit">E</a><b>]</b><?php
308						}
311						{
312							?><b>[</b><a href="<?php echo $_SERVER['PHP_SELF']; ?>?action=delete&id=<?php echo (int)$arr['id']; ?>" title="Delete">D</a><b>]</b><?php
313						}
Themes.subs.php https://github.com/Adrekk/Elkarte.git | PHP | 974 lines
1<?php
2
378				'is_directory' => false,
379				'is_template' => preg_match('~\.template\.php$~', $entry) != 0,
380				'is_image' => preg_match('~\.(jpg|jpeg|gif|bmp|png|ico)$~', $entry) != 0,
430	$available_themes = array();
431	if (!empty($modSettings['knownThemes']))
432	{
447				'disable_user_variant' => 'disable_user_variant',
448				'known_themes' => !empty($modSettings['theme_allow']) || allowedTo('admin_forum') ? explode(',', $modSettings['knownThemes']) : array($modSettings['theme_guests']),
449			)
544		// Are there any variants?
545		if (file_exists($theme_data['theme_dir'] . '/index.template.php') && (empty($theme_data['disable_user_variant']) || allowedTo('admin_forum')))
546		{
567
568					$available_themes[$id_theme]['selected_variant'] = isset($_GET['vrt']) ? $_GET['vrt'] : (!empty($variant_preferences[$id_theme]) ? $variant_preferences[$id_theme] : (!empty($settings['default_variant']) ? $settings['default_variant'] : $settings['theme_variants'][0]));
569					if (!isset($available_themes[$id_theme]['variants'][$available_themes[$id_theme]['selected_variant']]['thumbnail']))
InstallerController.php https://github.com/alexgeertsen/LimeSurvey.git | PHP | 1,270 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2/*
101    {
102        if (file_exists(APPPATH . 'config/config.php') && empty($_POST['InstallerConfigForm']))
103        {
116    {
117        if (empty(Yii::app()->session['installerLang']))
118            Yii::app()->session['installerLang'] = 'en';
130
131        if (!empty($_POST['installerLang']))
132        {
203        $aData['progressValue'] = 20;
204        $aData['phpVersion'] = phpversion();
205        // variable storing next button link.initially null
1239        } catch(Exception $e) {
1240            if (!empty($aData['model']) && !empty($aData['clang'])) {
1241                $aData['model']->addError('dblocation', $aData['clang']->gT('Try again! Connection with database failed. Reason: ') . $e->message);
install.php https://github.com/alishtory/typecho.git | PHP | 628 lines
191                    <form method="post" action="?config" name="config">
192                    <p class="message error"><?php _e('您没有上传 config.inc.php 文件,请您重新安装!'); ?> <button class="btn primary" type="submit"><?php _e('重新安装 &raquo;'); ?></button></p>
193                    </form>
239                        <li><a href="<?php echo $loginUrl; ?>"><?php _e('点击这里访问您的控制面板'); ?></a></li>
240                        <li><a href="<?php echo _u(); ?>/index.php"><?php _e('点击这里查看您的 Blog'); ?></a></li>
241                    </ul>
553                                <?php if (_p('Mysql')): ?><option value="Mysql"<?php if('Mysql' == $adapter): ?> selected=true<?php endif; ?>><?php _e('Mysql 原生函数适配器') ?></option><?php endif; ?>
554                                <?php if (_p('SQLite')): ?><option value="SQLite"<?php if('SQLite' == $adapter): ?> selected=true<?php endif; ?>><?php _e('SQLite 原生函数适配器 (SQLite 2.x)') ?></option><?php endif; ?>
555                                <?php if (_p('Pgsql')): ?><option value="Pgsql"<?php if('Pgsql' == $adapter): ?> selected=true<?php endif; ?>><?php _e('Pgsql 原生函数适配器') ?></option><?php endif; ?>
555                                <?php if (_p('Pgsql')): ?><option value="Pgsql"<?php if('Pgsql' == $adapter): ?> selected=true<?php endif; ?>><?php _e('Pgsql 原生函数适配器') ?></option><?php endif; ?>
556                                <?php if (_p('Pdo_Mysql')): ?><option value="Pdo_Mysql"<?php if('Pdo_Mysql' == $adapter): ?> selected=true<?php endif; ?>><?php _e('Pdo 驱动 Mysql 适配器') ?></option><?php endif; ?>
557                                <?php if (_p('Pdo_SQLite')): ?><option value="Pdo_SQLite"<?php if('Pdo_SQLite' == $adapter): ?> selected=true<?php endif; ?>><?php _e('Pdo 驱动 SQLite 适配器 (SQLite 3.x)') ?></option><?php endif; ?>
557                                <?php if (_p('Pdo_SQLite')): ?><option value="Pdo_SQLite"<?php if('Pdo_SQLite' == $adapter): ?> selected=true<?php endif; ?>><?php _e('Pdo 驱动 SQLite 适配器 (SQLite 3.x)') ?></option><?php endif; ?>
558                                <?php if (_p('Pdo_Pgsql')): ?><option value="Pdo_Pgsql"<?php if('Pdo_Pgsql' == $adapter): ?> selected=true<?php endif; ?>><?php _e('Pdo 驱动 PostgreSql 适配器') ?></option><?php endif; ?>
559                            </select>
InstallerController.php https://github.com/AnilPainuly/bS.git | PHP | 1,270 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2/*
101    {
102        if (file_exists(APPPATH . 'config/config.php') && empty($_POST['InstallerConfigForm']))
103        {
116    {
117        if (empty(Yii::app()->session['installerLang']))
118            Yii::app()->session['installerLang'] = 'en';
130
131        if (!empty($_POST['installerLang']))
132        {
203        $aData['progressValue'] = 20;
204        $aData['phpVersion'] = phpversion();
205        // variable storing next button link.initially null
1239        } catch(Exception $e) {
1240            if (!empty($aData['model']) && !empty($aData['clang'])) {
1241                $aData['model']->addError('dblocation', $aData['clang']->gT('Try again! Connection with database failed. Reason: ') . $e->message);
admin.php https://github.com/appsoma/oldsite_archive.git | PHP | 925 lines
165	$key_status_strings = array( 
166	 	'empty'   => __( 'Empty' ), 
167		'valid'   => __( 'Valid' ), 
218						<td>
219							<input id="key" name="key" type="text" size="15" maxlength="12" value="<?php echo esc_attr( get_option('wordpress_api_key') ); ?>" class="regular-text code <?php echo $key_status;?>"><div class="under-input key-status <?php echo $key_status;?>"><?php echo isset( $key_status_strings[ $key_status ] ) ? $key_status_strings[ $key_status ] : '';?></div>
220							<p class="need-key description"><?php printf( __('You must enter a valid Akismet API key here. If you need an API key, you can <a href="%s">create one here</a>'), '#' );?></p>
227							<fieldset><legend class="screen-reader-text"><span><?php _e('Settings');?></span></legend>
228							<label for="akismet_discard_month" title="<?php esc_attr_e( 'Auto-detete old spam' ); ?>"><input name="akismet_discard_month" id="akismet_discard_month" value="true" type="checkbox" <?php echo get_option('akismet_discard_month') == 'true' ? 'checked="checked"':''; ?>> <span><?php _e('Auto-delete spam submitted on posts more than a month old.'); ?></span></label><br>
229							<label for="akismet_show_user_comments_approved" title="<?php esc_attr_e( 'Show approved comments' ); ?>"><input name="akismet_show_user_comments_approved" id="akismet_show_user_comments_approved" value="true" type="checkbox" <?php echo get_option('akismet_show_user_comments_approved') == 'true' ? 'checked="checked"':''; ?>> <span><?php _e('Show the number of comments you\'ve approved beside each comment author.'); ?></span></label>
322	if ( !$api_key ) :?>
323	<div id="akismet-warning" class="updated fade"><p><strong><?php _e('Akismet is almost ready.');?></strong> <?php printf( __( 'You must <a href="%1$s">enter your Akismet API key</a> for it to work.' ), $config_link );?></p></div><?php
324	else :?>
324	else :?>
325	<iframe src="<?php echo esc_url( sprintf( '%s://akismet.com/web/1.0/user-stats.php?blog=%s&api_key=%s', is_ssl()?'https':'http', $blog, $api_key ) ); ?>" width="100%" height="2500px" frameborder="0" id="akismet-stats-frame"></iframe><?php
326	endif;?>
admin.php https://github.com/arielbenz/TEDx.git | PHP | 833 lines
145?>
146<?php if ( !empty($_POST['submit'] ) ) : ?>
147<div id="message" class="updated fade"><p><strong><?php _e('Options saved.') ?></strong></p></div>
223		<td><?php echo htmlspecialchars($ip); ?></td>
224		<td style="padding: 0 .5em; font-weight:bold; color: #fff; background-color: <?php echo $color; ?>"><?php echo ($status ? __('Accessible') : __('Re-trying') ); ?></td>
225		
292					<p><?php esc_html_e( $alert['msg'] ); ?></p>
293					<p>More information is available at <a href="https://akismet.com/errors/<?php echo $alert['code']; ?>">https://akismet.com/errors/<?php echo $alert['code']; ?></a></p>
294				</div>
309		return;
310	} elseif ( ( empty($_SERVER['SCRIPT_FILENAME']) || basename($_SERVER['SCRIPT_FILENAME']) == 'edit-comments.php' ) &&  wp_next_scheduled('akismet_schedule_cron_recheck') ) {
311		function akismet_warning() {
749function akismet_add_comment_author_url() {
750    if ( !empty( $_POST['id'] ) && !empty( $_POST['url'] ) && check_admin_referer( 'comment_author_url_nonce' ) ) {
751        global $wpdb;
admin.php https://github.com/arimado/smh-wp.git | PHP | 925 lines
165	$key_status_strings = array( 
166	 	'empty'   => __( 'Empty' ), 
167		'valid'   => __( 'Valid' ), 
218						<td>
219							<input id="key" name="key" type="text" size="15" maxlength="12" value="<?php echo esc_attr( get_option('wordpress_api_key') ); ?>" class="regular-text code <?php echo $key_status;?>"><div class="under-input key-status <?php echo $key_status;?>"><?php echo isset( $key_status_strings[ $key_status ] ) ? $key_status_strings[ $key_status ] : '';?></div>
220							<p class="need-key description"><?php printf( __('You must enter a valid Akismet API key here. If you need an API key, you can <a href="%s">create one here</a>'), '#' );?></p>
227							<fieldset><legend class="screen-reader-text"><span><?php _e('Settings');?></span></legend>
228							<label for="akismet_discard_month" title="<?php esc_attr_e( 'Auto-detete old spam' ); ?>"><input name="akismet_discard_month" id="akismet_discard_month" value="true" type="checkbox" <?php echo get_option('akismet_discard_month') == 'true' ? 'checked="checked"':''; ?>> <span><?php _e('Auto-delete spam submitted on posts more than a month old.'); ?></span></label><br>
229							<label for="akismet_show_user_comments_approved" title="<?php esc_attr_e( 'Show approved comments' ); ?>"><input name="akismet_show_user_comments_approved" id="akismet_show_user_comments_approved" value="true" type="checkbox" <?php echo get_option('akismet_show_user_comments_approved') == 'true' ? 'checked="checked"':''; ?>> <span><?php _e('Show the number of comments you\'ve approved beside each comment author.'); ?></span></label>
322	if ( !$api_key ) :?>
323	<div id="akismet-warning" class="updated fade"><p><strong><?php _e('Akismet is almost ready.');?></strong> <?php printf( __( 'You must <a href="%1$s">enter your Akismet API key</a> for it to work.' ), $config_link );?></p></div><?php
324	else :?>
324	else :?>
325	<iframe src="<?php echo esc_url( sprintf( '%s://akismet.com/web/1.0/user-stats.php?blog=%s&api_key=%s', is_ssl()?'https':'http', $blog, $api_key ) ); ?>" width="100%" height="2500px" frameborder="0" id="akismet-stats-frame"></iframe><?php
326	endif;?>
admin.php https://github.com/arimado/smh-wp-2.git | PHP | 925 lines
165	$key_status_strings = array( 
166	 	'empty'   => __( 'Empty' ), 
167		'valid'   => __( 'Valid' ), 
218						<td>
219							<input id="key" name="key" type="text" size="15" maxlength="12" value="<?php echo esc_attr( get_option('wordpress_api_key') ); ?>" class="regular-text code <?php echo $key_status;?>"><div class="under-input key-status <?php echo $key_status;?>"><?php echo isset( $key_status_strings[ $key_status ] ) ? $key_status_strings[ $key_status ] : '';?></div>
220							<p class="need-key description"><?php printf( __('You must enter a valid Akismet API key here. If you need an API key, you can <a href="%s">create one here</a>'), '#' );?></p>
227							<fieldset><legend class="screen-reader-text"><span><?php _e('Settings');?></span></legend>
228							<label for="akismet_discard_month" title="<?php esc_attr_e( 'Auto-detete old spam' ); ?>"><input name="akismet_discard_month" id="akismet_discard_month" value="true" type="checkbox" <?php echo get_option('akismet_discard_month') == 'true' ? 'checked="checked"':''; ?>> <span><?php _e('Auto-delete spam submitted on posts more than a month old.'); ?></span></label><br>
229							<label for="akismet_show_user_comments_approved" title="<?php esc_attr_e( 'Show approved comments' ); ?>"><input name="akismet_show_user_comments_approved" id="akismet_show_user_comments_approved" value="true" type="checkbox" <?php echo get_option('akismet_show_user_comments_approved') == 'true' ? 'checked="checked"':''; ?>> <span><?php _e('Show the number of comments you\'ve approved beside each comment author.'); ?></span></label>
322	if ( !$api_key ) :?>
323	<div id="akismet-warning" class="updated fade"><p><strong><?php _e('Akismet is almost ready.');?></strong> <?php printf( __( 'You must <a href="%1$s">enter your Akismet API key</a> for it to work.' ), $config_link );?></p></div><?php
324	else :?>
324	else :?>
325	<iframe src="<?php echo esc_url( sprintf( '%s://akismet.com/web/1.0/user-stats.php?blog=%s&api_key=%s', is_ssl()?'https':'http', $blog, $api_key ) ); ?>" width="100%" height="2500px" frameborder="0" id="akismet-stats-frame"></iframe><?php
326	endif;?>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21