示例#1
0
<?php

require_once "includes/functions.php";
if ($_GET) {
    if (isset($_GET["lang"])) {
        motor::change_language($_GET["lang"]);
    }
}
motor::back_page();
示例#2
0
文件: index.php 项目: rgllm/Diary
<?php

if (!isset($_SESSION)) {
    session_start();
}
require_once "includes/functions.php";
new motor(true);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php 
echo motor::sitename();
?>
</title>
</head>

<body>
<?php 
if (isset($_SESSION["login_reactivated"])) {
    echo member_activate;
    unset($_SESSION["login_reactivated"]);
}
?>
Hello world.
</body>
</html>
示例#3
0
文件: confirm.php 项目: rgllm/Diary
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php 
echo page_confirm_title . " | " . motor::sitename();
?>
</title>
</head>

<body>
<?php 
include_once "header.php";
if ($_GET) {
    if (isset($_GET["c"])) {
        if (strlen($_GET["c"]) > 0) {
            if (motor::confirm_signup($_GET["c"]) == true) {
                echo message_confirm_confirmation;
            } else {
                echo message_confirm_incorrect_code;
            }
        } else {
            echo message_confirm_incorrect_code;
        }
    } else {
        echo message_confirm_incorrect_code;
    }
} else {
    echo message_confirm_incorrect_code;
}
include_once "footer.php";
?>
示例#4
0
文件: signup.php 项目: rgllm/Diary
            }
        }
    }
    echo ">" . $year . "</option>";
}
?>
</select>
<br />
<?php 
echo country;
?>
: <select name="cmbcountry"><option value="0"><?php 
echo select_country;
?>
:</option><?php 
foreach (motor::countries() as $country) {
    echo "<option value=\"" . $country->getid() . "\"";
    if ($_POST) {
        if (isset($_POST["btnsignup"])) {
            if ($_POST["cmbcountry"] == $country->getid()) {
                echo " selected=\"selected\"";
            }
        }
    }
    echo ">" . $country->getcountry() . "</option>";
}
?>
</select>
<br />
<input name="btnsignup" type="submit" value="<?php 
echo button_signup;
示例#5
0
文件: footer.php 项目: rgllm/Diary
<?php

require_once "includes/functions.php";
?>
<table style="width: 100%; background-color: #999999;">
  <tr>
    <td><?php 
echo motor::sitename() . " &copy; 2012 - ";
foreach (motor::languages() as $language) {
    echo "<a href=\"change_lang.php?lang=" . $language->getlang() . "\">" . $language->getlanguage() . "</a> ";
}
?>
</td>
  </tr>
</table>
示例#6
0
文件: recover.php 项目: rgllm/Diary
        if (!preg_match('/^[^0-9][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}$/', $_POST["txtrecover_email"])) {
            $error_recover_email = incorrect_recover_email;
        } else {
            motor::recover($_POST["txtrecover_email"]);
            $_SESSION["recover_email"] = $_POST["txtrecover_email"];
            header("Location: recover_ok.php");
        }
    }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php 
echo page_recover_title . " | " . motor::sitename();
?>
</title>
</head>

<body>
<?php 
include_once "header.php";
?>
<form action="<?php 
echo $_SERVER["PHP_SELF"];
?>
" method="post">
<table border="1">
  <tr>
    <td align="right">E-mail:</td>
示例#7
0
文件: signup_ok.php 项目: rgllm/Diary
if (!isset($_SESSION)) {
    session_start();
}
require_once "includes/functions.php";
if (motor::authenticated(false) == true) {
    motor::back_page();
}
new motor(false);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php 
echo page_signup_thanks . " | " . motor::sitename();
?>
</title>
</head>

<body>
<?php 
if (isset($_SESSION["signup_thanks"])) {
    echo message_signup_thanks . $_SESSION["signup_thanks"];
    unset($_SESSION["signup_thanks"]);
} else {
    header("Location: welcome.php");
}
?>
</body>
</html>
示例#8
0
文件: redefine.php 项目: rgllm/Diary
                echo message_recover_incorrect_code;
            }
        } else {
            header("Location: welcome.php");
        }
    } else {
        header("Location: welcome.php");
    }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php 
echo page_recover_new_password . " | " . motor::sitename();
?>
</title>
</head>

<body>
<?php 
include_once "header.php";
?>
<form action="<?php 
echo $_SERVER["PHP_SELF"];
?>
" method="post">
<table border="1">
  <tr>
    <td align="right"><?php