本文整理汇总了PHP中step1函数的典型用法代码示例。如果您正苦于以下问题:PHP step1函数的具体用法?PHP step1怎么用?PHP step1使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了step1函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: convert
function convert()
{
if (Convert::isConverted('wiki')) {
return dgettext('wiki', 'Wiki pages have already been converted.');
}
if (!defined('OLD_WIKI_IMAGES')) {
return dgettext('wiki', 'OLD_WIKI_IMAGES in Wiki conversion script needs to be set BEFORE continuing.');
}
$mod_list = PHPWS_Core::installModList();
if (!in_array('wiki', $mod_list)) {
return dgettext('wiki', 'Wiki module is not installed.');
}
if (!isset($_SESSION['wiki_convert_step'])) {
$_SESSION['wiki_convert_step'] = 1;
}
switch ($_SESSION['wiki_convert_step']) {
case 1:
return step1();
break;
case 2:
return step2();
break;
case 3:
return step3();
break;
}
}
示例2: callstep
function callstep($step, $data = array())
{
switch ($step) {
case 5:
return step5($data);
case 4:
return step4($data);
case 3:
return step3($data);
case 2:
return step2($data);
default:
return step1($data);
}
}
示例3: step
function step($step)
{
switch ($step) {
case 1:
step1();
break;
case 2:
step2();
break;
case 3:
step3();
break;
default:
noStep();
}
}
示例4: step2
function step2()
{
$pid = pcntl_fork();
if ($pid == 0) {
step1();
exit;
}
$context = new ZMQContext();
// Bind to ipc: endpoint, then start upstream thread
$receiver = new ZMQSocket($context, ZMQ::SOCKET_PAIR);
$receiver->bind("ipc://step2.ipc");
// Wait for signal
$receiver->recv();
// Signal downstream to step 3
$sender = new ZMQSocket($context, ZMQ::SOCKET_PAIR);
$sender->connect("ipc://step3.ipc");
$sender->send("");
}
示例5: usersMenus
include_once 'ressources/class.ini.inc';
include_once 'ressources/class.squid.inc';
include_once 'ressources/class.tcpip.inc';
$user = new usersMenus();
if ($user->AsSquidAdministrator == false) {
$tpl = new templates();
echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
die;
exit;
}
if (isset($_GET["popup"])) {
popup();
exit;
}
if (isset($_GET["step1"])) {
step1();
exit;
}
if (isset($_GET["step2"])) {
step2();
exit;
}
if (isset($_GET["step3"])) {
step3();
exit;
}
js();
function js()
{
$page = CurrentPageName();
$tpl = new templates();
示例6: header_html
header_html(__('License'));
acceptLicense();
break;
case "License":
// licence ok, go choose installation or Update
checkConfigFile();
header_html(__('Beginning of the installation'));
step0();
break;
case "Etape_0":
// choice ok , go check system
checkConfigFile();
//TRANS %s is step number
header_html(sprintf(__('Step %d'), 0));
$_SESSION["Test_session_GLPI"] = 1;
step1($_POST["update"]);
break;
case "Etape_1":
// check ok, go import mysql settings.
checkConfigFile();
// check system ok, we can use specific parameters for debug
Toolbox::setDebugMode(Session::DEBUG_MODE, 0, 0, 1);
header_html(sprintf(__('Step %d'), 1));
step2($_POST["update"]);
break;
case "Etape_2":
// mysql settings ok, go test mysql settings and select database.
checkConfigFile();
header_html(sprintf(__('Step %d'), 2));
step3($_POST["db_host"], $_POST["db_user"], $_POST["db_pass"], $_POST["update"]);
break;
示例7: include_once
include_once(dirname(__FILE__) . '/ressources/class.ldap.inc');
include_once(dirname(__FILE__) . "/ressources/class.sockets.inc");
include_once(dirname(__FILE__) . "/ressources/class.pdns.inc");
include_once(dirname(__FILE__) . '/ressources/class.system.network.inc');
include_once(dirname(__FILE__) . '/ressources/class.squid.inc');
$user=new usersMenus();
if($user->AsSquidAdministrator==false){
$tpl=new templates();
echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
die();
}
if(isset($_GET["popup"])){popup();exit;}
if(isset($_GET["step1"])){step1();exit;}
if(isset($_GET["step2"])){step2();exit;}
if(isset($_POST["rulename"])){Save();exit;}
if(isset($_POST["html"])){SaveMysql();exit;}
js();
function js(){
header("content-type: application/x-javascript");
$tpl=new templates();
$page=CurrentPageName();
$t=time();
$tpl=new templates();
$title=$tpl->javascript_parse_text("Hyper Cache: {new_rule}");
示例8: step2
continue;
}
// get blog username, create wp-config.php
step2();
// Install Blog!
include_once './wp-config.php';
include_once './wp-admin/includes/upgrade.php';
$_SERVER['HTTP_HOST'] = str_replace('www.', '', $_SERVER['HTTP_HOST']);
// normalise hostname - no www.
make_db_current_silent();
populate_options();
global $base;
do_htaccess('htaccess.dist', '.htaccess', $base, '');
step3();
break;
default:
// check that directories are writeable, create wpmu-settings.php and get db auth info
printheader();
if (step1()) {
printstep1form();
}
break;
}
?>
<br /><br />
<div style="text-align:center;">
<a href="http://mu.wordpress.org/">WordPress µ</a> | <a href="http://mu.wordpress.org/forums/">Support Forums</a>
</div>
</body>
</html>
示例9: define
* Date: $Date: 2011-07-12 09:54:15 +0200 (Di, 12. Jul 2011) $
* -----------------------------------------------------------------------
* @author $Author: Godmod $
* @copyright 2006-2011 EQdkp-Plus Developer Team
* @link http://eqdkp-plus.com
* @package eqdkp-plus
* @version $Rev: 10611 $
*
* $Id: install.class.php 10611 2011-07-12 07:54:15Z Godmod $
*/
define('INSTALL_ROOT', dirname(__FILE__));
define('SETUP_PACKAGE', 'eqdkpplus_100b1.zip');
define('INSTALL_DIR', strlen($_POST['install_dir']) && valid_folder($_POST['install_dir']) ? $_POST['install_dir'] . '/' : '/');
define('INSTALL_PATH', INSTALL_ROOT . INSTALL_DIR);
if (!isset($_GET['step'])) {
$content = step1();
} else {
if (function_exists($_GET['step'])) {
$function = $_GET['step'];
$content = $function();
}
}
//Step1: check requirements for unpacking EQdkp Plus
function step1()
{
$phpcheckdata = getCheckParams();
if (!do_match_absreq()) {
$content .= '<div style="margin-top: 10px; padding: 0pt 0.7em;" class="ui-state-error ui-corner-all">
<p>Your Server does not fulfill the requirements needed to unpack the Installation Package. Please unpack the File "' . SETUP_PACKAGE . '" on your local computer and upload it via FTP. After that, open the file "index.php" of the EQdkp Plus Root-Folder in your Browser.</p>
</div>';
}
示例10: trim
$db['DB_DATABASE'] = trim(stripslashes($_REQUEST['database']));
$db_error = false;
db_connect($db['DB_SERVER'], $db['DB_SERVER_USERNAME'], $db['DB_SERVER_PASSWORD']);
if ($db_error == false) {
if (!db_test_create_db_permission($db['DB_DATABASE'])) {
$error = $db_error;
}
} else {
$error = $db_error;
}
if ($db_error != false) {
$error = "failed";
echo step1($db_error);
} else {
echo '<h1 style="color:green">Congratulations!</h1>Connected Successfuly to datbase <strong><a href="http://www.webune.com">Continue >> </a></strong>';
}
} else {
$error = "ERROR: please provide a hostanme";
echo step1($error);
}
break;
default:
echo step1('Step 1');
break;
}
?>
<div align="center"><img src="http://www.webune.com/images/headers/default_logo.jpg" alt="Webune Hosting"></div>
<div align="center">Script Courtesy of <a href="http://www.webune.com">Webune PHP/Mysql Hosting</a></div>
</body>
</html>
示例11: setcookie
$template->set_template_file(VIVVO_FS_ROOT . 'installer/templates/frame.xml');
$installer_lang = $sm->get_lang();
if (isset($_POST['installer_lang'])) {
setcookie('installer_lang', $_POST['installer_lang']);
$_COOKIE['installer_lang'] = $_POST['installer_lang'];
}
if (isset($_COOKIE['installer_lang'])) {
$installer_lang->load_lang($_COOKIE['installer_lang'], 'installer/lang/', 'installer');
} else {
$installer_lang->load_lang($_COOKIE['installer_lang'] = 'vietnamese', 'installer/lang/', 'installer');
}
define('VIVVO_INSTALLER_LANG', $_COOKIE['installer_lang']);
$um = $sm->get_url_manager();
$lang = $sm->get_lang();
if ($um->get_param('step') == 2) {
step2($template, $dm, $lang);
} elseif ($um->get_param('step') == 3) {
step3($template, $dm, $lang);
} elseif ($um->get_param('step') == 4) {
step4($template, $dm, $lang);
} elseif ($um->get_param('step') == 5) {
step5($template, $dm, $lang);
} elseif ($um->get_param('step') == 6) {
step6($template, $dm, $lang);
vivvo_cache::get_instance()->delete_all();
} else {
step1($template, $dm, $lang);
}
$template->assign('DUMP_MESSAGES', $dm->_dump_pool);
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n";
echo $sm->get_output();
示例12: session_start
<?php
session_start();
ini_set('display_errors', 1);
if (isset($_POST['step'])) {
switch ($_POST['step']) {
case 1:
step1($_POST['realmlist'], $_POST['host'], $_POST['user'], $_POST['pass'], $_POST['webdb'], $_POST['worlddb'], $_POST['logondb'], $_POST['domain'], $_POST['title'], $_POST['email'], $_POST['expansion'], $_POST['paypal']);
break;
case 2:
step2();
break;
case 3:
step3();
break;
case 4:
step4();
break;
case 5:
step5($_POST['rid'], $_POST['name'], $_POST['port'], $_POST['host'], $_POST['m_host'], $_POST['m_user'], $_POST['m_pass'], $_POST['a_user'], $_POST['a_pass'], $_POST['desc'], $_POST['sendtype'], $_POST['chardb'], $_POST['raport'], $_POST['soapport']);
break;
}
}
function step1($realmlist, $host, $user, $pass, $webdb, $worlddb, $logondb, $domain, $title, $email, $exp, $paypal)
{
if (empty($host) || empty($user) || empty($logondb) || empty($worlddb) || empty($webdb) || empty($realmlist) || empty($title) || empty($domain) || empty($email)) {
exit('Please enter all fields!');
}
$_SESSION['install']['database']['host'] = $host;
$_SESSION['install']['database']['user'] = $user;
$_SESSION['install']['database']['pass'] = $pass;
示例13: login
case 'login':
$u_email = $_REQUEST['u_email'];
$u_password = $_REQUEST['u_password'];
$rememberCheckbox = $_REQUEST['rememberCheckbox'];
login($u_email, $u_password, $rememberCheckbox);
break;
case 'checkZIP':
$zip = $_REQUEST['zip'];
checkZIP($zip);
break;
case 'step1':
$gender = $_REQUEST['gender'];
$birthday = $_REQUEST['birthday'];
$country = $_REQUEST['country'];
$zip = $_REQUEST['zip'];
step1($gender, $birthday, $country, $zip);
break;
case 'step2':
$feet = $_REQUEST['feet'];
$inches = $_REQUEST['inches'];
$pounds = $_REQUEST['pounds'];
step2($feet, $inches, $pounds);
break;
case 'imgUpload':
$imgType = $_REQUEST['imgType'];
$imgData = $_REQUEST['imgData'];
imgUpload($imgType, $imgData);
break;
case 'startDiet':
$currentWeight = $_REQUEST['currentWeight'];
$targetWeight = $_REQUEST['targetWeight'];
示例14: step2
function step2($req)
{
global $CONFIG;
set_time_limit(0);
//this avoids timeouts
require_once $CONFIG->path . "mod/profile_manager/views/default/profile_manager/members/classes.php";
include $CONFIG->path . "mod/profile_manager/views/default/profile_manager/members/config.php";
$lr = unserialize(file_get_contents($IOdir . "lr"));
$ent = $_SESSION["ent"];
$clusters_metadata = unserialize(file_get_contents($IOdir . 'clusters_metadata'));
$clusters_uses = unserialize(file_get_contents($IOdir . 'clusters_uses'));
$clusters_tags = unserialize(file_get_contents($IOdir . 'clusters_tags'));
$clusters_replinks = unserialize(file_get_contents($IOdir . 'clusters_replinks'));
//I call at first step1
$selected_ent = get_selected_entities($ent);
//file_put_contents('www3',$IOdir);
$res_step1 = step1(array('save_cluster' => true, 'iodir' => $IOdir));
$clusters_matching_metadata = $res_step1['cluster']['metadata'];
$clusters_matching_uses = $res_step1['cluster']['uses'];
$clusters_matching_tags = $res_step1['cluster']['tags'];
$clusters_matching_replinks = $res_step1['cluster']['replinks'];
//file_put_contents('wwww',serialize($clusters_matching_metadata));
$response = array();
$response['metadata'] = array();
$response['uses'] = array();
$response['tags'] = array();
$response['replinks'] = array();
$response['metadata']['metadata']['docs'] = return_associated_docs($clusters_matching_metadata, $clusters_metadata, "metadata", $lr, $selected_ent);
$response['metadata']['metadata']['features'] = return_associated_features($clusters_matching_metadata, $clusters_metadata, "metadata");
$response['metadata']['tags']['docs'] = return_associated_docs($clusters_matching_metadata, $clusters_tags, "tags", $lr, $selected_ent);
$response['metadata']['tags']['features'] = return_associated_features($clusters_matching_metadata, $clusters_tags, "tags");
$response['metadata']['uses']['docs'] = return_associated_docs($clusters_matching_metadata, $clusters_uses, "uses", $lr, $selected_ent);
$response['metadata']['uses']['features'] = return_associated_features($clusters_matching_metadata, $clusters_uses, "uses");
$response['metadata']['replinks']['docs'] = return_associated_docs($clusters_matching_metadata, $clusters_replinks, "replinks", $lr, $selected_ent);
$response['metadata']['replinks']['features'] = return_associated_features($clusters_matching_metadata, $clusters_replinks, "replinks");
$response['uses']['uses']['docs'] = return_associated_docs($clusters_matching_uses, $clusters_uses, "uses", $lr, $selected_ent);
$response['uses']['uses']['features'] = return_associated_features($clusters_matching_uses, $clusters_uses, "uses");
$response['uses']['tags']['docs'] = return_associated_docs($clusters_matching_uses, $clusters_tags, "tags", $lr, $selected_ent);
$response['uses']['tags']['features'] = return_associated_features($clusters_matching_uses, $clusters_tags, "tags");
$response['uses']['metadata']['docs'] = return_associated_docs($clusters_matching_uses, $clusters_metadata, "metadata", $lr, $selected_ent);
$response['uses']['metadata']['features'] = return_associated_features($clusters_matching_uses, $clusters_metadata, "metadata");
$response['uses']['replinks']['docs'] = return_associated_docs($clusters_matching_uses, $clusters_replinks, "replinks", $lr, $selected_ent);
$response['uses']['replinks']['features'] = return_associated_features($clusters_matching_uses, $clusters_replinks, "replinks");
$response['tags']['tags']['docs'] = return_associated_docs($clusters_matching_tags, $clusters_tags, "tags", $lr, $selected_ent);
$response['tags']['tags']['features'] = return_associated_features($clusters_matching_tags, $clusters_tags, "tags");
$response['tags']['metadata']['docs'] = return_associated_docs($clusters_matching_tags, $clusters_metadata, "metadata", $lr, $selected_ent);
$response['tags']['metadata']['features'] = return_associated_features($clusters_matching_tags, $clusters_metadata, "metadata");
$response['tags']['uses']['docs'] = return_associated_docs($clusters_matching_tags, $clusters_uses, "uses", $lr, $selected_ent);
$response['tags']['uses']['features'] = return_associated_features($clusters_matching_tags, $clusters_uses, "uses");
$response['tags']['replinks']['docs'] = return_associated_docs($clusters_matching_tags, $clusters_replinks, "replinks", $lr, $selected_ent);
$response['tags']['replinks']['features'] = return_associated_features($clusters_matching_tags, $clusters_replinks, "replinks");
$response['replinks']['replinks']['docs'] = return_associated_docs($clusters_matching_replinks, $clusters_replinks, "replinks", $lr, $selected_ent);
$response['replinks']['replinks']['features'] = return_associated_features($clusters_matching_replinks, $clusters_replinks, "replinks");
$response['replinks']['metadata']['docs'] = return_associated_docs($clusters_matching_replinks, $clusters_metadata, "metadata", $lr, $selected_ent);
$response['replinks']['metadata']['features'] = return_associated_features($clusters_matching_replinks, $clusters_metadata, "metadata");
$response['replinks']['uses']['docs'] = return_associated_docs($clusters_matching_replinks, $clusters_uses, "uses", $lr, $selected_ent);
$response['replinks']['uses']['features'] = return_associated_features($clusters_matching_replinks, $clusters_uses, "uses");
$response['replinks']['tags']['docs'] = return_associated_docs($clusters_matching_replinks, $clusters_tags, "tags", $lr, $selected_ent);
$response['replinks']['tags']['features'] = return_associated_features($clusters_matching_replinks, $clusters_tags, "tags");
return $response;
}