Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Pagalbos.

Parašė SkyName· 2011 Kov. 23 11:03:51
#1

Sveiki, gal galite pasakyti kaip reikia padaryti per maintenance.php kad rodytu mano teksta ? o webo nerodytu pvz: tmgyvenimas.lt paziurekit, ten iskarto rodo tik serveri webo nerodo, gal galite pasakyti kaip man padaryti kad ten butu mano informacija parasyta ant mano tinklapio ?

Ant php v7

Parašė minimukas· 2011 Kov. 23 14:03:55
#2

Taigi kaip pats pasidarei maintenance.php taip ir yra tai ji redeguok ir irasyk savo pranesima ir sio.

Parašė SkyName· 2011 Kov. 23 14:03:45
#3

NU že dabar tame maintenance.php faile yra :


<?php
/*-------------------------------------------------------+
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
+--------------------------------------------------------+
| Filename: maintenance.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "maincore.php";
include THEME."theme.php";
 
if (!$settings['maintenance']) { redirect("index.php"); }
 
echo "<!DOCTYPE <span style="border-bottom: 1px dotted black;">html</span> PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\n";
echo "<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='".$locale['xml_lang']."' lang='".$locale['xml_lang']."'>\n";
echo "<head>\n";
echo "<title>".$settings['sitename']."</title>\n";
echo "<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."' />\n";
echo "<meta name='description' content='".$settings['description']."' />\n";
echo "<meta name='keywords' content='".$settings['keywords']."' />\n";
echo "<style type='text/css'>html, body { height:100%; }</style>\n";
echo "<link rel='stylesheet' href='".THEME."styles.css' type='text/css' media='screen'/>\n";
echo "<link rel='shortcut icon' href='".IMAGES."favicon.ico' type='image/x-icon' />\n";
echo "</head>\n<body class='tbl2'>\n";
 
echo "<table style='width:100%;height:100%'>\n<tr>\n<td>\n";
 
echo "<table cellpadding='0' cellspacing='1' width='80%' class='tbl-border center'>\n<tr>\n";
echo "<td class='tbl1'>\n<div style='text-align:center'><br />\n";
echo "<img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' /><br /><br />\n";
echo stripslashes(nl2br($settings['maintenance_message']))."<br /><br />\n";
echo "Powered by <a href='http://www.php-fusion.co.uk'>PHP-Fusion</a> &copy; 2003 - ".date("Y")."<br /><br />\n";
echo "</div>\n</td>\n</tr>\n</table>\n";
 
if (!iMEMBER) {
	echo "<div align='center'><br />\n";
	echo "<form name='loginform' method='post' action='".FUSION_SELF."'>\n";
	echo $locale['global_101'].": <input type='text' name='user_name' class='textbox' style='width:100px' />\n";
	echo $locale['global_102'].": <input type='password' name='user_pass' class='textbox' style='width:100px' />\n";
	echo "<input type='checkbox' name='remember_me' value='y' title='".$locale['global_103']."' />\n";
	echo "<input type='submit' name='login' value='".$locale['global_104']."' class='button' />\n";
	echo "</form>\n</div>\n";
}
 
echo "</td>\n</tr>\n</table>\n";
 
echo "</body>\n</html>\n";
 
ob_end_flush();
?>
 


O, tai kur man dabar jame rašyti savo norima tekstą? ar visa ištrinta tą koda?

Parašė Deiviux· 2011 Kov. 23 15:03:44
#4

Man atrodo, reikia maintenance.php išsisaugoti kur nors kompe, tada pačiame FTP ištrink viską iš maintenance ir rašyk savo tekstą. Bet po atnaujinimų turėsi vėl sudėti tikrą maintenance atgal į vietą. Bet šiuo atveju manau pats neprisijungsi į webą.

Parašė SkyName· 2011 Kov. 23 15:03:07
#5

Tai ką man siūlai daryti? viską ištrinti ir irašyti savo norima tekstą ?

Parašė Deiviux· 2011 Kov. 23 15:03:33
#6

Taip. Tik tiek, kad negalėsi tvarkyti savo tinklapio, nes nebus kur prisijungti, na bet susiradęs prisijungimo kodą, kur nors apačioj įterpti galėtum, tuomet galėsi prisijungt.

Parašė SkyName· 2011 Kov. 23 16:03:11
#7

Že ištryniau visa šita koda :


<?php
/*-------------------------------------------------------+
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
+--------------------------------------------------------+
| Filename: maintenance.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "maincore.php";
include THEME."theme.php";
 
if (!$settings['maintenance']) { redirect("index.php"); }
 
echo "<!DOCTYPE <span style="border-bottom: 1px dotted black;">html</span> PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\n";
echo "<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='".$locale['xml_lang']."' lang='".$locale['xml_lang']."'>\n";
echo "<head>\n";
echo "<title>".$settings['sitename']."</title>\n";
echo "<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."' />\n";
echo "<meta name='description' content='".$settings['description']."' />\n";
echo "<meta name='keywords' content='".$settings['keywords']."' />\n";
echo "<style type='text/css'>html, body { height:100%; }</style>\n";
echo "<link rel='stylesheet' href='".THEME."styles.css' type='text/css' media='screen'/>\n";
echo "<link rel='shortcut icon' href='".IMAGES."favicon.ico' type='image/x-icon' />\n";
echo "</head>\n<body class='tbl2'>\n";
 
echo "<table style='width:100%;height:100%'>\n<tr>\n<td>\n";
 
echo "<table cellpadding='0' cellspacing='1' width='80%' class='tbl-border center'>\n<tr>\n";
echo "<td class='tbl1'>\n<div style='text-align:center'><br />\n";
echo "<img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' /><br /><br />\n";
echo stripslashes(nl2br($settings['maintenance_message']))."<br /><br />\n";
echo "Powered by <a href='http://www.php-fusion.co.uk'>PHP-Fusion</a> &copy; 2003 - ".date("Y")."<br /><br />\n";
echo "</div>\n</td>\n</tr>\n</table>\n";
 
if (!iMEMBER) {
	echo "<div align='center'><br />\n";
	echo "<form name='loginform' method='post' action='".FUSION_SELF."'>\n";
	echo $locale['global_101'].": <input type='text' name='user_name' class='textbox' style='width:100px' />\n";
	echo $locale['global_102'].": <input type='password' name='user_pass' class='textbox' style='width:100px' />\n";
	echo "<input type='checkbox' name='remember_me' value='y' title='".$locale['global_103']."' />\n";
	echo "<input type='submit' name='login' value='".$locale['global_104']."' class='button' />\n";
	echo "</form>\n</div>\n";
}
 
echo "</td>\n</tr>\n</table>\n";
 
echo "</body>\n</html>\n";
 
ob_end_flush();
?>
[/gesh
 
ir įrašiau tik : 
 
[geshi=php]Sveiki


Tai dabar eiti į Pagrindinius Nustatymus ir poto padaryti, kad atidarytu šita ir rodys Sveiki ?