本文整理汇总了PHP中runtime_csfr::Token方法的典型用法代码示例。如果您正苦于以下问题:PHP runtime_csfr::Token方法的具体用法?PHP runtime_csfr::Token怎么用?PHP runtime_csfr::Token使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类runtime_csfr
的用法示例。
在下文中一共展示了runtime_csfr::Token方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getCreateCron
static function getCreateCron()
{
global $zdbh;
global $controller;
$currentuser = ctrl_users::GetUserDetail();
$line = "<h2>Create a new task</h2>";
$line .= "<form action=\"./?module=cron&action=CreateCron\" method=\"post\">";
$line .= "<table class=\"table table-striped\">";
$line .= "<tr valign=\"top\">";
$line .= "<th>" . ui_language::translate("Script") . ":</th>";
$line .= '<td><input name="inScript" type="text" id="inScript" size="50" /><br />' . ui_language::translate("example") . ': /folder/task.php<br>' . ui_language::translate('Note 1 : Script path is relative to your sentora-user root directory:') . '<br>' . ' <b>' . ctrl_options::GetSystemOption('hosted_dir') . $currentuser['username'] . '/public_html/</b><br>' . ui_language::translate('Note 2 : Each file access in your script must use absolute directory path as above.') . '</td>';
$line .= "</tr>";
$line .= "<tr>";
$line .= "<th>" . ui_language::translate("Comment") . ":</th>";
$line .= "<td><input name=\"inDescription\" type=\"text\" id=\"inDescription\" size=\"50\" maxlength=\"50\" /></td>";
$line .= "</tr>";
$line .= "<tr>";
$line .= "<th>" . ui_language::translate("Executed") . ":</th>";
$line .= "<td><select name=\"inTiming\" id=\"inTiming\">";
$line .= "<option value=\"* * * * *\">" . ui_language::translate("Every 1 minute") . "</option>";
$line .= "<option value=\"0,5,10,15,20,25,30,35,40,45,50,55 * * * *\">" . ui_language::translate("Every 5 minutes") . "</option>";
$line .= "<option value=\"0,10,20,30,40,50 * * * *\">" . ui_language::translate("Every 10 minutes") . "</option>";
$line .= "<option value=\"0,30 * * * *\">" . ui_language::translate("Every 30 minutes") . "</option>";
$line .= "<option value=\"0 * * * *\">" . ui_language::translate("Every 1 hour") . "</option>";
$line .= "<option value=\"0 0,2,4,6,8,10,12,14,16,18,20,22 * * *\">" . ui_language::translate("Every 2 hours") . "</option>";
$line .= "<option value=\"0 0,8,16 * * *\">" . ui_language::translate("Every 8 hours") . "</option>";
$line .= "<option value=\"0 0,12 * * *\">" . ui_language::translate("Every 12 hours") . "</option>";
$line .= "<option value=\"0 0 * * *\">" . ui_language::translate("Every 1 day") . "</option>";
$line .= "<option value=\"0 0 * * 0\">" . ui_language::translate("Every week") . "</option>";
$line .= "<option value=\"0 0 1 * *\">" . ui_language::translate("Every month") . "</option>";
$line .= "</select></td>";
$line .= "</tr>";
$line .= "<tr>";
$line .= "<th colspan=\"2\" align=\"right\"><input type=\"hidden\" name=\"inReturn\" value=\"GetFullURL\" />";
$line .= "<input type=\"hidden\" name=\"inUserID\" value=\"" . $currentuser['userid'] . "\" />";
$line .= runtime_csfr::Token();
$line .= "<button class=\"button-loader btn btn-primary\" type=\"submit\" id=\"button\">" . ui_language::translate("Create") . "</button></th>";
$line .= "</tr>";
$line .= "</table>";
$line .= "</form>";
return $line;
}
示例2: getCreateCron
static function getCreateCron()
{
global $zdbh;
global $controller;
$currentuser = ctrl_users::GetUserDetail();
$line = "<h2>Create a new task</h2>";
$line .= "<form action=\"./?module=cron&action=CreateCron\" method=\"post\">";
$line .= "<table class=\"table table-striped\">";
$line .= "<tr valign=\"top\">";
$line .= "<th>" . ui_language::translate("Script") . ":</th>";
$line .= "<td><input name=\"inScript\" type=\"text\" id=\"inScript\" size=\"50\" /><br />" . ui_language::translate("example") . ": /folder/task.php</td>";
$line .= "</tr>";
$line .= "<tr>";
$line .= "<th>" . ui_language::translate("Comment") . ":</th>";
$line .= "<td><input name=\"inDescription\" type=\"text\" id=\"inDescription\" size=\"50\" maxlength=\"50\" /></td>";
$line .= "</tr>";
$line .= "<tr>";
$line .= "<th>" . ui_language::translate("Executed") . ":</th>";
$line .= "<td><select name=\"inTiming\" id=\"inTiming\">";
$line .= "<option value=\"* * * * *\">" . ui_language::translate("Every 1 minute") . "</option>";
$line .= "<option value=\"0,5,10,15,20,25,30,35,40,45,50,55 * * * *\">" . ui_language::translate("Every 5 minutes") . "</option>";
$line .= "<option value=\"0,10,20,30,40,50 * * * *\">" . ui_language::translate("Every 10 minutes") . "</option>";
$line .= "<option value=\"0,30 * * * *\">" . ui_language::translate("Every 30 minutes") . "</option>";
$line .= "<option value=\"0 * * * *\">" . ui_language::translate("Every 1 hour") . "</option>";
$line .= "<option value=\"0 0,2,4,6,8,10,12,14,16,18,20,22 * * *\">" . ui_language::translate("Every 2 hours") . "</option>";
$line .= "<option value=\"0 0,8,16 * * *\">" . ui_language::translate("Every 8 hours") . "</option>";
$line .= "<option value=\"0 0,12 * * *\">" . ui_language::translate("Every 12 hours") . "</option>";
$line .= "<option value=\"0 0 * * *\">" . ui_language::translate("Every 1 day") . "</option>";
$line .= "<option value=\"0 0 * * 0\">" . ui_language::translate("Every week") . "</option>";
$line .= "<option value=\"0 0 1 * *\">" . ui_language::translate("Every month") . "</option>";
$line .= "</select></td>";
$line .= "</tr>";
$line .= "<tr>";
$line .= "<th colspan=\"2\" align=\"right\"><input type=\"hidden\" name=\"inReturn\" value=\"GetFullURL\" />";
$line .= "<input type=\"hidden\" name=\"inUserID\" value=\"" . $currentuser['userid'] . "\" />";
$line .= runtime_csfr::Token();
$line .= "<button class=\"button-loader btn btn-primary\" type=\"submit\" id=\"button\">" . ui_language::translate("Create") . "</button></th>";
$line .= "</tr>";
$line .= "</table>";
$line .= "</form>";
return $line;
}
示例3: getCSFR_Tag
static function getCSFR_Tag()
{
return runtime_csfr::Token();
}
示例4: DisplayApacheVhost
static function DisplayApacheVhost()
{
global $zdbh;
global $controller;
$line = "<h2>" . ui_language::translate("Virtual Host Override") . "</h2>";
$line .= ui_language::translate("Set options for virtual host") . ": <b>" . $controller->GetControllerRequest('FORM', 'inVhost') . "</b>";
$line .= "<br><br>";
$line .= "<form action=\"./?module=apache_admin&action=SaveVhost\" method=\"post\">";
$line .= "<table class=\"zform\">";
$sql = "SELECT COUNT(*) FROM x_vhosts WHERE vh_name_vc=:vhost AND vh_deleted_ts IS NULL";
$inVhost = $controller->GetControllerRequest('FORM', 'inVhost');
$numrows = $zdbh->prepare($sql);
$numrows->bindParam(':vhost', $inVhost);
$numrows->execute();
if ($numrows) {
if ($numrows->fetchColumn() != 0) {
$inVhost2 = $controller->GetControllerRequest('FORM', 'inVhost');
$sql = $zdbh->prepare("SELECT * FROM x_vhosts WHERE vh_name_vc=:vhost AND vh_deleted_ts IS NULL");
$sql->bindParam(':vhost', $inVhost2);
$sql->execute();
$row = $sql->fetch();
$line .= "<tr><th>" . ui_language::translate("Domain Enabled") . ":</th><td><input type=\"checkbox\" name=\"vh_enabled_in\" id=\"vh_enabled_in\" value=\"1\" " . fs_director::IsChecked($row['vh_enabled_in']) . "/></td></tr>";
$line .= "<tr><th>" . ui_language::translate("Suhosin Enabled") . ":</th><td><input type=\"checkbox\" name=\"vh_suhosin_in\" id=\"vh_suhosin_in\" value=\"1\" " . fs_director::IsChecked($row['vh_suhosin_in']) . "/></td></tr>";
$line .= "<tr><th>" . ui_language::translate("OpenBase Enabled") . ":</th><td><input type=\"checkbox\" name=\"vh_obasedir_in\" id=\"vh_obasedir_in\" value=\"1\" " . fs_director::IsChecked($row['vh_obasedir_in']) . "/></td></tr>";
$line .= "<tr><th>" . ui_language::translate("Port Override") . "</th><td><input type=\"text\" name=\"vh_custom_port_in\" id=\"vh_custom_port_in\" maxlength=\"6\" value=\"" . $row['vh_custom_port_in'] . "\"/>";
$line .= "<tr><th>" . ui_language::translate("Forward Port 80 to Overriden Port") . ":</th><td><input type=\"checkbox\" name=\"vh_portforward_in\" id=\"vh_portforward_in\" value=\"1\" " . fs_director::IsChecked($row['vh_portforward_in']) . "/>" . ui_language::translate("Warning requires Apache mod_rewrite to be installed on the server.") . "</td></tr>";
$line .= "<tr><th>" . ui_language::translate("IP Override") . "</th><td><input type=\"text\" name=\"vh_custom_ip_vc\" id=\"vh_custom_ip_vc\" maxlength=\"20\" value=\"" . $row['vh_custom_ip_vc'] . "\"/>";
$line .= "<tr valign=\"top\"><th>" . ui_language::translate("Custom Entry") . ":</th><td><textarea cols=\"60\" rows=\"10\" name=\"vh_custom_tx\">" . $row['vh_custom_tx'] . "</textarea></td></tr>";
}
}
$line .= "<tr><td colspan=\"2\">";
$line .= "<button class=\"button-loader btn btn-primary\" type=\"submit\" id=\"button\" name=\"vh_id_pk\" value=\"" . $row['vh_id_pk'] . "\">" . ui_language::translate("Save Vhost") . "</button><button class=\"button-loader btn btn-default\" type=\"button\" onclick=\"window.location.href='./?module=apache_admin';return false;\">" . ui_language::translate("Cancel") . "</button>";
$line .= "</td></tr>";
$line .= "</table>";
$line .= runtime_csfr::Token();
$line .= "</form>";
return $line;
}