ELŽ
Narys
Kapitonas
Pranešimai: 532
Įstojęs: 2010 Gru. 22 17:12:09
Labas dar kartą !
Turiu klausimą, kaip padaryti kad prisijungiant php fusion v7,01,05 nerodytu
Prisijungta kaip.... atsijungiant pasidariau kad nerodytu buvo setuser.php faile. O vat prisijungiant neradu sensenėse versyjose tai maicore.php o čia nerandu www.hostgate.lt // www.bangafm.lt //
avice
Narys
Terminatorius
Pranešimai: 1441
Įstojęs: 2010 Bir. 25 20:06:33
istrink visus html kodus is setuser.php ir pries ?> ikisk header('Location: index.php');
ELŽ
Narys
Kapitonas
Pranešimai: 532
Įstojęs: 2010 Gru. 22 17:12:09
Gal galėtumei padaryti? nes žinok nelabai kertu. ką turėjai galvoje mano setuser.php
<?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: setuser.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" ;
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>\n <head>\n " ;
echo "<title>" . $settings [ 'sitename' ] . "</title>\n " ;
echo "<meta http-equiv='Content-Type' content='text/html; charset=" . $locale [ 'charset' ] . "' />\n " ;
echo "<meta http-equiv='refresh' content='2; url=" . $settings [ 'opening_page' ] . "' />\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' />\n " ;
if ( function_exists ( "get_head_tags" ) ) { echo get_head_tags( ) ; }
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%' c lass='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 " ;
if ( iMEMBER && ( isset ( $_REQUEST [ 'logout' ] ) && $_REQUEST [ 'logout' ] == "yes" ) ) {
header ( "P3P: CP='NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM'" ) ;
setcookie ( COOKIE_PREFIX. "user" , "" , time ( ) - 7200 , "/" , "" , "0" ) ;
setcookie ( COOKIE_PREFIX. "lastvisit" , "" , time ( ) - 7200 , "/" , "" , "0" ) ;
$result = dbquery( "DELETE FROM " . DB_ONLINE. " WHERE online_ip='" . USER_IP. "'" ) ;
redirect( BASEDIR. "index.php" ) ;
} else {
if ( isset ( $_GET [ 'error' ] ) && $_GET [ 'error' ] == 1 ) {
echo "<strong>" . $locale [ 'global_194' ] . "</strong><br /><br />\n " ;
} elseif ( isset ( $_GET [ 'error' ] ) && $_GET [ 'error' ] == 2 ) {
echo "<strong>" . $locale [ 'global_195' ] . "</strong><br /><br />\n " ;
} elseif ( isset ( $_GET [ 'error' ] ) && $_GET [ 'error' ] == 3 ) {
echo "<strong>" . $locale [ 'global_196' ] . "</strong><br /><br />\n " ;
} else {
if ( isset ( $_COOKIE [ COOKIE_PREFIX. 'user' ] ) ) {
$cookie_vars = explode ( "." , $_COOKIE [ COOKIE_PREFIX. 'user' ] ) ;
$user_pass = preg_check( "/^[0-9a-z]{32}$/" , $cookie_vars [ '1' ] ) ? $cookie_vars [ '1' ] : "" ;
$user_name = preg_replace ( array ( "/\=/" , "/\#/" , "/\sOR\s/" ) , "" , stripinput( $_GET [ 'user' ] ) ) ;
if ( ! dbcount( "(user_id)" , DB_USERS, "user_name='" . $user_name . "' AND user_password='" . md5 ( $user_pass ) . "'" ) ) {
echo "<strong>" . $locale [ 'global_196' ] . "</strong><br /><br />\n " ;
} else {
$result = dbquery( "DELETE FROM " . DB_ONLINE. " WHERE online_user='0' AND online_ip='" . USER_IP. "'" ) ;
echo "<strong>" . $locale [ 'global_193' ] . $_GET [ 'user' ] . "</strong><br /><br />\n " ;
}
}
}
}
echo $locale [ 'global_197' ] . "<br /><br />\n " ;
echo "</div>\n </td>\n </tr>\n </table>\n " ;
echo "</td>\n </tr>\n </table>\n " ;
echo "</body>\n </html>\n " ;
mysql_close ( ) ;
ob_end_flush ( ) ;
?>
www.hostgate.lt // www.bangafm.lt //
switz
Narys
Tankas
Pranešimai: 2261
Įstojęs: 2009 Lap. 7 14:11:14
<?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: setuser.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" ;
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>\n <head>\n " ;
echo "<title>" . $settings [ 'sitename' ] . "</title>\n " ;
echo "<meta http-equiv='Content-Type' content='text/html; charset=" . $locale [ 'charset' ] . "' />\n " ;
echo "<meta http-equiv='refresh' content='2; url=" . $settings [ 'opening_page' ] . "' />\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' />\n " ;
if ( function_exists ( "get_head_tags" ) ) { echo get_head_tags( ) ; }
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%' c lass='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 " ;
if ( iMEMBER && ( isset ( $_REQUEST [ 'logout' ] ) && $_REQUEST [ 'logout' ] == "yes" ) ) {
header ( "P3P: CP='NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM'" ) ;
setcookie ( COOKIE_PREFIX. "user" , "" , time ( ) - 7200 , "/" , "" , "0" ) ;
setcookie ( COOKIE_PREFIX. "lastvisit" , "" , time ( ) - 7200 , "/" , "" , "0" ) ;
$result = dbquery( "DELETE FROM " . DB_ONLINE. " WHERE online_ip='" . USER_IP. "'" ) ;
redirect( BASEDIR. "index.php" ) ;
if ( isset ( $_COOKIE [ COOKIE_PREFIX. 'user' ] ) ) {
$cookie_vars = explode ( "." , $_COOKIE [ COOKIE_PREFIX. 'user' ] ) ;
$user_pass = preg_check( "/^[0-9a-z]{32}$/" , $cookie_vars [ '1' ] ) ? $cookie_vars [ '1' ] : "" ;
$user_name = preg_replace ( array ( "/\=/" , "/\#/" , "/\sOR\s/" ) , "" , stripinput( $_GET [ 'user' ] ) ) ;
if ( ! dbcount( "(user_id)" , DB_USERS, "user_name='" . $user_name . "' AND user_password='" . md5 ( $user_pass ) . "'" ) ) {
echo "<strong>" . $locale [ 'global_196' ] . "</strong><br /><br />\n " ;
} else {
$result = dbquery( "DELETE FROM " . DB_ONLINE. " WHERE online_user='0' AND online_ip='" . USER_IP. "'" ) ;
echo "<strong>" . $locale [ 'global_193' ] . $_GET [ 'user' ] . "</strong><br /><br />\n " ;
}
}
}
}
echo $locale [ 'global_197' ] . "<br /><br />\n " ;
echo "</div>\n </td>\n </tr>\n </table>\n " ;
echo "</td>\n </tr>\n </table>\n " ;
echo "</body>\n </html>\n " ;
mysql_close ( ) ;
ob_end_flush ( ) ;
?>
Bandyk/// M3
ELŽ
Narys
Kapitonas
Pranešimai: 532
Įstojęs: 2010 Gru. 22 17:12:09
Atsijungiant gaunu šitą error`ą
Parse error: syntax error, unexpected '}' in /home/mradijas/domains/mradijas.lt/public_html/setuser.php on line 227www.hostgate.lt // www.bangafm.lt //
Peršokti į forumą:
Žaliems
Nebeegzistuojančios svetainės
Bendri PHP-F klausimai
WordPress
Kiti PHP, HTML, MySQL klausimai
Expert PHP, MySQL klausimai
Kitos TVS
C#, Python, Java, JS, C++ klausimai
Naujų modų pristatymai
Mods, Panels & Infusions
Themes
Dalinuosi, dovanoju!
Jūsų saitai
Klausimai apie domenus ir hostingus
VPS/DS serverių konfigūravimas ir valdymas
Viskas apie skaitliukus, top'us ir lankomumą
Dizaino konkursai
Parduodu - perku dizainą, banerį
Parduodu - perku - keičiuosi reklama
Parduodu - perku domeną, tinklapį
Siūlau - ieškau hostingo/VPS serverio
Parduodu - perku skriptą, modifikaciją, tvs
Socialiniai tinklai - Facebook ir kiti
Legalus verslas, teisiniai klausimai
Visa kita kas susiję su darbu ir pinigais
LTStartups.com - Lietuvos startuolių bendruomenė
Off-Topic diskusijos
IT naujienos
Portalo informacija
Narių pasiūlymai
Geležis ir programinė įranga
Grafika
Out Of Place
Su e-verslu nesusijęs darbas ir prekyba
Dalinuosi, dovanoju!