<?php
// Guard against false config variables being passed via the URL
// if the register_globals php setting is turned on
if (isset($_REQUEST["CFG"]))
{
echo "Hacking attempt.";
die();
}
$CFG["MOA_PATH"] = str_replace( "\\", "/", dirname(realpath(__FILE__)))."/";
include_once("sources/_db_funcs.php");
include_once("sources/id.php");
include_once("sources/common.php");
include_once("sources/_template_parser.php");
if (isset($_REQUEST["action"]))
{
if (strcmp($_REQUEST["action"], "dbcheck") == 0)
{
dbcheck();
die();
}
}
$APACHE_MIN_VERSION = ARRAY( 2, 0, 0);
$PHP_MIN_VERSION = ARRAY( 5, 2, 0);
$GD_MIN_VERSION = ARRAY( 2, 0, 0);
$MYSQL_MIN_VERSION = ARRAY( 5, 0, 0);
$template_name = "MoaDefault";
session_start();
session_unset();
session_destroy();
function get_apache_version() {
$apache_info = @apache_get_version();
$next = false;
$found = false;
$result = "";
$version = array();
$tok = strtok( $apache_info, "/ ");
while (false != $tok) {
if (($next == true) && ($found == false)) {
$result = $tok;
$found = true;
$next = false;
}
if (0 == strcasecmp($tok, "Apache")) {
$next = true;
}
$tok = strtok( "/ ");
}
if (false == $found) {
return false;
}
$tok = strtok( $result, ".");
$version[0] = (int)$tok;
$tok = strtok( ".");
$version[1] = (int)$tok;
$tok = strtok( ".");
$version[2] = (int)$tok;
return $version;
}
function get_gd_version() {
$gd_info = @gd_info();
$gd_version = $gd_info["GD Version"];
$found = false;
$result = "";
$version = array();
$tok = strtok( $gd_version, "() ");
while (false != $tok) {
if (false == $found) {
$first = strpos( $tok, ".");
if (false != $first)
{
$second = strpos( $tok, ".", $first + 1);
if (false != $second)
{
$result = $tok;
$found = true;
}
}
}
$tok = strtok( "() ");
}
if (false == $found) {
return false;
}
$tok = strtok( $result, ".");
$version[0] = (int)$tok;
$tok = strtok( ".");
$version[1] = (int)$tok;
$tok = strtok( ".");
$version[2] = (int)$tok;
return $version;
}
function get_php_version() {
$php_version = @phpversion();
$tok = strtok( $php_version, ".");
$version[0] = (int)$tok;
$tok = strtok( ".");
$version[1] = (int)$tok;
$tok = strtok( ".");
$version[2] = (int)$tok;
return $version;
}
function get_mysql_version() {
$mysql_version = @mysql_get_server_info();
$tok = strtok( $mysql_version, ".");
$version[0] = (int)$tok;
$tok = strtok( ".");
$version[1] = (int)$tok;
$tok = strtok( ".");
$version[2] = (int)$tok;
return $version;
}
function ShowProgressStart($p_stage, $p_processing)
{
// Set up stages
$stages1 = array();
$stages1[-1] = "Welcome";
$stages1[0] = "Check environment";
$stages1[1] = "Get server info";
$stages1[2] = "Create Moa user";
$stages1[3] = "Finish";
$stages2 = array();
$stages2[-1] = "Welcome";
$stages2[0] = "Checking environment";
$stages2[1] = "Initialise server config";
$stages2[2] = "Setting up server";
$stages2[3] = "Finished";
// Draw progress box
echo "<table class='normal_text' style='width:100%;'><tr><td valign='top' style='width:250px;'>\n";
echo "<table class='area' width='250' cellspacing='0' cellpadding='5'>\n";
echo "<tr>\n";
echo "<td class='box_header'>\n";
echo "Progress\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td align='left' class='pale_area_nb'>\n";
echo"<img src='media/trans-pixel.png' width='250' height='1' alt=''/>";
echo "<br/>\n";
// For each line in the box
for ($loop = -1; $loop < count($stages1) - 1; $loop++)
{
if ($loop < $p_stage)
{
echo "<img src='media/progress-blank.png' alt=''/> <span style='color: grey'>".$stages2[$loop]." - Done<br/></span>\n";
}
if ($loop == $p_stage)
{
if (!$p_processing)
{
echo "<img src='media/progress-arrow.png' width='21' height='10' alt=''/> ".$stages1[$loop]."<br/>\n";
} else
{
echo "<img src='media/progress-arrow.png' width='21' height='10' alt=''/> ".$stages2[$loop]."<br/>\n";
}
}
if ($loop > $p_stage)
{
echo "<img src='media/progress-blank.png' alt=''/> ".$stages1[$loop]."<br/>\n";
}
echo"<img src='media/trans-pixel.png' height='15' width='1' alt=''/>";
}
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";
echo "<td>\n";
echo"<img src='media/trans-pixel.png' width='10' height='1' alt=''/>\n";
echo "</td>\n";
echo "<td valign='top'>\n";
}
function ShowProgressEnd()
{
echo "</td>\n";
echo "<td>\n";
echo"<img src='media/trans-pixel.png' width='10' height='1' alt=''/>\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
}
// Stage 0 = Welcome message
function Stage0()
{
ShowProgressStart(-1, true);
echo "<div style='width:200px; margin-left:auto; margin-right:auto; font-size:30px;'><b>Moa install</b></div><br/>\n";
echo "<br/><br/>\n";
echo "<table width='600'><tr><td>\n";
echo "<form id='install_1b' method='post' action='install.php?stage=stage1b' enctype='multipart/form-data'>\n";
echo "<p><input type='submit' value='Start install -->'></input></p>\n";
echo "</form>\n";
echo "</td></tr></table>\n";
ShowProgressEnd();
}
// Stage 1B = Version checks
function Stage1B()
{
global $APACHE_MIN_VERSION;
global $PHP_MIN_VERSION;
global $GD_MIN_VERSION;
$check = false;
ShowProgressStart(0, true);
echo "<b><div style='width:200px; margin-left:auto; margin-right:auto; font-size:30px;'>Moa install</div></b><br/>\n";
echo "<span style='font-size:20px;'>Checking server environment to see if Moa will work...</span></b><br/><br/>\n";
// Check the Apache version
echo "Checking for Apache version ".$APACHE_MIN_VERSION[0]." or later - ";
$apache_version = false;
if (function_exists("apache_get_version"))
{
$apache_version = get_apache_version();
}
if (false == $apache_version)
{
echo "<span style='color: red'>Failed (Cannot determine version)</span><br/>\n";
echo "<span style='color: red'>Installation will continue. Please check Apache version manually.</span><br/>\n";
} else
{
$passed = false;
// Major version
if ($apache_version[0] > $APACHE_MIN_VERSION[0])
{
$passed = true;
} else
{ if ($apache_version[0] == $APACHE_MIN_VERSION[0])
{
// Now check minor version
if ($apache_version[1] > $APACHE_MIN_VERSION[1])
{
$passed = true;
} else
{ if ($apache_version[1] == $APACHE_MIN_VERSION[1])
{
// Now check revision version
if ($apache_version[2] >= $APACHE_MIN_VERSION[2])
{
$passed = true;
}
}
}
}
}
if (false == $passed)
{
echo "<span style='color: red'>Failed (".$apache_version[0].".".$apache_version[1].".".$apache_version[2].")</span><br/>\n";
$check = true;
} else
{
echo "<span style='color: green'>Success (".$apache_version[0].".".$apache_version[1].".".$apache_version[2].")</sp
没有合适的资源?快使用搜索试试~ 我知道了~
基于PHP的moa image gallery 轻量级易于使用的个人画廊系统.zip
共333个文件
php:235个
png:49个
js:19个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 155 浏览量
2023-07-22
00:03:54
上传
评论
收藏 508KB ZIP 举报
温馨提示
基于PHP的moa image gallery 轻量级易于使用的个人画廊系统.zip
资源推荐
资源详情
资源评论
收起资源包目录
基于PHP的moa image gallery 轻量级易于使用的个人画廊系统.zip (333个子文件)
Changelog 6KB
CREDITS 829B
style.css 16KB
style.css 14KB
style.css 13KB
style.css 6KB
loading.gif 3KB
barshadow-right.gif 465B
barshadow-left.gif 333B
footer-seperator.gif 169B
barshadow.gif 111B
backgroundcolumns.gif 104B
manual.html 6KB
favicon.ico 4KB
INSTALL 2KB
jquery.js 72KB
overlib.js 33KB
mod_upgrade.js 10KB
mod_taglist.js 8KB
mod_image.js 8KB
mod_userlist.js 6KB
mod_gallery.js 6KB
formcheck.js 4KB
mod_bulkupload.js 4KB
mod_slideshow.js 3KB
common.js 2KB
overlib_adaptive_width.js 2KB
mod_main.js 2KB
settings.js 1KB
_request.js 1015B
pngfix.js 957B
mod_ui.js 850B
mod_login.js 452B
mod_settings.js 162B
LICENSE 912B
delete.me 2B
delete.me 0B
delete.me 0B
install.php 35KB
mod_gallery_funcs.php 19KB
mod_image_funcs.php 17KB
mod_upgrade_funcs.php 15KB
common.php 14KB
mod_tag_funcs.php 13KB
_template_component_gallery.php 13KB
_template_component_admin.php 12KB
mod_image.php 10KB
_template_component_image.php 10KB
mod_gallery.php 8KB
page_admin_settings_submit.php 8KB
_settings.php 8KB
page_admin_settings.php 8KB
page_admin_settings.php 8KB
page_admin_settings.php 8KB
mod_upgrade.php 7KB
component_db_settings.php 7KB
component_db_settings.php 7KB
component_db_settings.php 7KB
mod_user.php 7KB
_template_component_settings.php 6KB
_template_component_popup_help.php 6KB
_template_parser.php 6KB
page_admin_ftp.php 6KB
index.php 6KB
mod_user_funcs.php 6KB
page_admin_maintain_image.php 6KB
_template_component_header.php 6KB
_integrity_funcs.php 5KB
mod_tag.php 5KB
page_gallery_view.php 5KB
mod_bulkupload_funcs.php 4KB
page_image_view.php 4KB
page_gallery_add.php 3KB
page_gallery_add.php 3KB
page_gallery_add.php 3KB
component_gallery_form_edit.php 3KB
mod_bulkupload.php 3KB
page_image_add.php 3KB
page_image_add.php 3KB
_image_scaler.php 3KB
page_slideshow.php 3KB
page_admin_ftp.php 3KB
page_admin_ftp.php 3KB
page_image_add.php 3KB
page_admin_ftp.php 3KB
page_image_add.php 3KB
component_gallery_form_edit.php 3KB
component_gallery_form_edit.php 3KB
id.php 3KB
_template_component_sitemap.php 3KB
_login.php 2KB
_db_funcs.php 2KB
page_gallery_add.php 2KB
page_admin_users.php 2KB
page_login.php 2KB
component_admin_user_form.php 2KB
page_admin_tags.php 2KB
component_admin_user_form.php 2KB
component_admin_user_form.php 2KB
mod_main.php 2KB
共 333 条
- 1
- 2
- 3
- 4
资源评论
助力毕业
- 粉丝: 2182
- 资源: 5146
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功