当前位置: 首页>>代码示例>>PHP>>正文


PHP Flux::message方法代码示例

本文整理汇总了PHP中Flux::message方法的典型用法代码示例。如果您正苦于以下问题:PHP Flux::message方法的具体用法?PHP Flux::message怎么用?PHP Flux::message使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Flux的用法示例。


在下文中一共展示了Flux::message方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: csrfValidate

 /**
  * Check CSRF validity
  * @param string $name identifier
  * @param array $storage check : $_POST / $_GET / ect.
  * @param string $error reference to overwrite if something to say
  * @return bool PASS
  * @access public
  */
 public static function csrfValidate($name, $storage, &$error)
 {
     // Missing session token
     if (!isset(self::$session['CSRF_' . $name])) {
         $error = Flux::message('SecurityNeedSession');
         return false;
     }
     // Missing origin token
     if (!isset($storage[$name])) {
         $error = Flux::message('SecurityNeedToken');
         return false;
     }
     // Get back hash, clean up session
     $hash = self::$session['CSRF_' . $name];
     unset(self::$session['CSRF_' . $name]);
     // Invalid token
     if ($storage[$name] !== $hash) {
         $error = Flux::message('SecuritySessionInvalid');
         return false;
     }
     // PASS
     return true;
 }
开发者ID:Nevercome,项目名称:FluxCP,代码行数:31,代码来源:Security.php

示例2: array

		—
	</p>
		
	<p class="donation-amount-text">Quantidade:
		<span class="donation-amount">
		<?php 
        echo $this->formatCurrency($donationAmount);
        ?>
		R$
		</span>
	</p>
	<p class="reset-amount-text">
		<a href="<?php 
        echo $this->url('doa', 'index', array('resetamount' => true));
        ?>
">(Resetar Quantidade)</a>
	</p>
	<p><?php 
        echo $this->pagSeguroButton($donationAmount);
        ?>
</p>
	<?php 
    }
} else {
    ?>
	<p><?php 
    echo Flux::message('NotAcceptingDonations');
    ?>
</p>
<?php 
}
开发者ID:rborgesds,项目名称:FluxCP,代码行数:31,代码来源:index.php

示例3: htmlspecialchars

		...
		<label for="banned_by">Banned By:</label>
		<input type="text" name="banned_by" id="banned_by" value="<?php 
echo htmlspecialchars($params->get('banned_by'));
?>
" />
		...
		<label for="ban_type">Ban Type:</label>
		<select name="ban_type" id="ban_type">
			<option value=""<?php 
if (!($ban_type = $params->get('ban_type'))) {
    echo ' selected="selected"';
}
?>
><?php 
echo htmlspecialchars(Flux::message('AllLabel'));
?>
</option>
			<option value="unban"<?php 
if ($ban_type == 'unban') {
    echo ' selected="selected"';
}
?>
>Unban</option>
			<option value="ban"<?php 
if ($ban_type == 'ban') {
    echo ' selected="selected"';
}
?>
>Ban</option>
		</select>
开发者ID:mleo1,项目名称:rAFluxCP,代码行数:31,代码来源:ban.php

示例4: VALUES

                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    if (is_null($errorMessage)) {
        $sql = "INSERT INTO {$server->loginDatabase}.{$vfp_sites} VALUES (NULL, ?, ?, ?, ?, ?, ?, ?)";
        $sth = $server->connection->getStatement($sql);
        if ($imageurl === "") {
            $imageurl = NULL;
        }
        if ($uploadimg['error'] > 0) {
            $uploadimg = NULL;
        }
        $bind = array($votename, $voteurl, $voteinterval, $votepoints, $filename, $imageurl, date(Flux::config('DateTimeFormat')));
        if ($sth->execute($bind)) {
            $successMessage = Flux::message("SuccessVoteSite");
        } else {
            $errorMessage = Flux::message("FailedToAdd");
        }
    }
}
开发者ID:Dezeter,项目名称:FluxCP_Addons-VoteForPoints,代码行数:31,代码来源:add.php

示例5:

<?php

if (!defined('FLUX_ROOT')) {
    exit;
}
$this->loginRequired();
$vfp_sites = Flux::config('FluxTables.vfp_sites');
$vfp_logs = Flux::config('FluxTables.vfp_logs');
$errorMessage = NULL;
// delete voting site
if (isset($_POST['id'])) {
    $id = (int) $params->get('id');
    $sql = "DELETE FROM {$server->loginDatabase}.{$vfp_sites} WHERE id = ?";
    $sth = $server->connection->getStatement($sql);
    $sth->execute(array($id));
    if (!$sth->rowCount()) {
        $errorMessage = Flux::message("VoteSiteDeleteFailed");
    }
    $sql = "DELETE FROM {$server->loginDatabase}.{$vfp_logs} WHERE sites_id = ?";
    $sth = $server->connection->getStatement($sql);
    $sth->execute(array($id));
    if (is_null($errorMessage)) {
        $successMessage = Flux::message("VoteSiteDeleteSuccess");
    }
}
// fetch all voting sites
$sql = "SELECT * FROM {$server->loginDatabase}.{$vfp_sites}";
$sth = $server->connection->getStatement($sql);
$sth->execute();
$votesites_res = $sth->fetchAll();
开发者ID:Dezeter,项目名称:FluxCP_Addons-VoteForPoints,代码行数:30,代码来源:list.php

示例6: htmlspecialchars

<?php 
}
?>

<form action="<?php 
echo $this->urlWithQs;
?>
" method="post" class="generic-form">
	<table class="generic-form-table">
		<tr>
			<th><label for="email"><?php 
echo htmlspecialchars(Flux::message('EmailChangeLabel'));
?>
</label></th>
			<td><input type="text" name="email" id="email" /></td>
			<td><p><?php 
echo htmlspecialchars(Flux::message('EmailChangeInputNote'));
?>
</p></td>
		</tr>
		<tr>
			<td colspan="2" align="right">
				<input type="submit" value="<?php 
echo htmlspecialchars(Flux::message('EmailChangeButton'));
?>
" />
			</td>
			<td></td>
		</tr>
	</table>
</form>
开发者ID:mleo1,项目名称:rAFluxCP,代码行数:31,代码来源:changemail.php

示例7: htmlspecialchars

</p>
				<p class="important"><?php 
echo htmlspecialchars(Flux::message('PasswordChangeNote2'));
?>
</p>
			</td>
		</tr>
		<tr>
			<th><label for="newpass"><?php 
echo htmlspecialchars(Flux::message('NewPasswordLabel'));
?>
</label></th>
			<td><input type="password" name="newpass" id="newpass" value="" /></td>
		</tr>
		<tr>
			<th><label for="confirmnewpass"><?php 
echo htmlspecialchars(Flux::message('NewPasswordConfirmLabel'));
?>
</label></th>
			<td><input type="password" name="confirmnewpass" id="confirmnewpass" value="" /></td>
		</tr>
		<tr>
			<td colspan="2" align="right">
				<input type="submit" value="<?php 
echo htmlspecialchars(Flux::message('PasswordChangeButton'));
?>
" />
			</td>
		</tr>
	</table>
</form>
开发者ID:Nevercome,项目名称:FluxCP,代码行数:31,代码来源:changepass.php

示例8: banTypeText

 /**
  *
  */
 public function banTypeText($banType)
 {
     $banType = (int) $banType;
     if (!$banType) {
         return Flux::message('BanTypeUnbanned');
     } elseif ($banType === 2) {
         return Flux::message('BanTypePermBanned');
     } elseif ($banType === 1) {
         return Flux::message('BanTypeTempBanned');
     } else {
         return Flux::message('UnknownLabel');
     }
 }
开发者ID:AcidSlide,项目名称:FluxCP,代码行数:16,代码来源:Template.php

示例9: htmlspecialchars

<?php

if (!defined('FLUX_ROOT')) {
    exit;
}
?>
<h2><?php 
echo htmlspecialchars(Flux::message('ReloadMobSkillsHeading'));
?>
</h2>
<?php 
if (!empty($errorMessage)) {
    ?>
<p class="red"><?php 
    echo htmlspecialchars($errorMessage);
    ?>
</p>
<?php 
} else {
    ?>
<p><?php 
    echo htmlspecialchars(sprintf(Flux::message('ReloadMobSkillsInfo'), number_format(filesize($mobDB))));
    ?>
</p>
<?php 
}
开发者ID:rahuldev345,项目名称:fluxcp,代码行数:26,代码来源:mobskill.php

示例10: htmlspecialchars

" /></td>
			<td><p><?php 
    echo htmlspecialchars(Flux::message('TransferCharNameInfo'));
    ?>
</p></td>
		</tr>
		<tr>
			<td colspan="2" align="right">
				<button type="submit"
					onclick="return confirm('<?php 
    echo htmlspecialchars(str_replace("'", "\\'", Flux::message('TransferConfirm')));
    ?>
')">
					<strong><?php 
    echo htmlspecialchars(Flux::message('TransferButton'));
    ?>
</strong>
				</button>
			</td>
		</tr>
	</table>
</form>
<?php 
} else {
    ?>
<p><?php 
    echo htmlspecialchars(Flux::message('TransferNoCredits'));
    ?>
</p>
<?php 
}
开发者ID:mleo1,项目名称:rAFluxCP,代码行数:31,代码来源:transfer.php

示例11: printf

	<input type="hidden" name="changegender" value="1" />
	<table class="generic-form-table">
		<tr>
			<td>
				<p>
					<?php 
    printf(Flux::message('GenderChangeFormText'), '<strong>' . strtolower($this->genderText($session->account->sex == 'M' ? 'F' : 'M')) . '</strong>');
    ?>
				</p>
			</td>
		</tr>
		<tr>
			<td>
				<p>
					<button type="submit"
						onclick="return confirm('<?php 
    echo str_replace("\\'", "\\'", Flux::message('GenderChangeConfirm'));
    ?>
')">
							<strong><?php 
    echo htmlspecialchars(Flux::message('GenderChangeButton'));
    ?>
</strong>
					</button>
				</p>
			</td>
		</tr>
	</table>
</form>
<?php 
}
开发者ID:rahuldev345,项目名称:fluxcp,代码行数:31,代码来源:changesex.php

示例12: COUNT

<?php

if (!defined('FLUX_ROOT')) {
    exit;
}
$title = Flux::message('NPCLogTitle');
$sql = "SELECT COUNT(npc_id) AS total FROM {$server->logsDatabase}.npclog";
$sth = $server->connection->getStatementForLogs($sql);
$sth->execute();
$paginator = $this->getPaginator($sth->fetch()->total);
$paginator->setSortableColumns(array('npc_id' => 'npc_date', 'account_id', 'char_id', 'char_name', 'map', 'mes'));
$col = 'npc_id, npc_date, account_id, char_id, char_name, map, mes';
$sql = $paginator->getSQL("SELECT {$col} FROM {$server->logsDatabase}.npclog");
$sth = $server->connection->getStatementForLogs($sql);
$sth->execute();
$npcs = $sth->fetchAll();
开发者ID:mleo1,项目名称:rAFluxCP,代码行数:16,代码来源:npc.php

示例13: array

<?php

if (!defined('FLUX_ROOT')) {
    exit;
}
$title = Flux::message('ServerInfoTitle');
$info = array('accounts' => 0, 'characters' => 0, 'guilds' => 0, 'parties' => 0, 'zeny' => 0, 'classes' => array());
// Accounts.
$sql = "SELECT COUNT(account_id) AS total FROM {$server->loginDatabase}.login ";
if (Flux::config('HideTempBannedStats')) {
    $sql .= "WHERE unban_time <= UNIX_TIMESTAMP()";
}
if (Flux::config('HidePermBannedStats')) {
    if (Flux::config('HideTempBannedStats')) {
        $sql .= " AND state != 5";
    } else {
        $sql .= "WHERE state != 5";
    }
}
$sth = $server->connection->getStatement($sql);
$sth->execute();
$info['accounts'] += $sth->fetch()->total;
// Characters.
$sql = "SELECT COUNT(`char`.char_id) AS total FROM {$server->charMapDatabase}.`char` ";
if (Flux::config('HideTempBannedStats')) {
    $sql .= "LEFT JOIN {$server->loginDatabase}.login ON login.account_id = `char`.account_id ";
    $sql .= "WHERE login.unban_time <= UNIX_TIMESTAMP()";
}
if (Flux::config('HidePermBannedStats')) {
    if (Flux::config('HideTempBannedStats')) {
        $sql .= " AND login.state != 5";
开发者ID:Cavalero,项目名称:fluxcp-renewal,代码行数:31,代码来源:info.php

示例14:

    ?>
			<i><?php 
    echo Flux::message('BANNER_IS_UPLOADED');
    ?>
.
			<?php 
}
?>
			<i style="color:red">Allowed file types for file upload: <?php 
echo $file_types;
?>
</i>
		</td>
	</tr>
	<tr>
		<th align="left">
			<?php 
echo Flux::message('BLOCK_TIME_LABEL');
?>
		
		</th>
		<td>
			<select name="blocking_hours" id="id_blocking_hours">
				<?php 
for ($i = 1; $i <= 24; $i++) {
    ?>
				<option value="<?php 
    echo $i;
    ?>
" <?php 
    if ($hours == $i) {
开发者ID:rborgesds,项目名称:FluxCP,代码行数:31,代码来源:edit.php

示例15: printf

        ?>
</a></strong>
				</div>
			</td>
			<?php 
    }
    ?>
		</tr>
		<?php 
}
?>
		
		<tr>
			<td></td>
			<td>
				<div style="margin-bottom: 5px">
					<?php 
printf(htmlspecialchars(Flux::message('AccountCreateInfo2')), '<a href="' . $this->url('service', 'tos') . '">' . Flux::message('AccountCreateTerms') . '</a>');
?>
				</div>
				<div>
					<button type="submit"><strong><?php 
echo htmlspecialchars(Flux::message('AccountCreateButton'));
?>
</strong></button>
				</div>
			</td>
		</tr>
	</table>
</form>
开发者ID:mleo1,项目名称:rAFluxCP,代码行数:30,代码来源:create.php


注:本文中的Flux::message方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。