Home
Login | Register
Welcome, Guest
Please Login or Register.    Lost Password?

I'm totally screwed by this problem..please help
(1 viewing) (1) Guest
Go to bottomPage: 123
TOPIC: I'm totally screwed by this problem..please help
#28
I'm totally screwed by this problem..please help 3 Years, 5 Months ago Karma: 0
i have installed Jsecure in my joomla 1.0, and following every direction and adding lines in the login.php in administration template as proposed in the manual....when i went to the administration section, i see this error line...


"Parse error: syntax error, unexpected T_DNUMBER, expecting ',' or ';' in /home/a7173582/public_html/administrator/templates/joomla_admin/login.php on line 19"


now i have uninstalled the jsecure through FTP and deleted the line that i pasted from the jsecure menual from the start of my login.php...and i think my login code looks like it used to be before..but as i went to my admin login again, the problem still persists...please help me out...
ivertobson
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#31
Re:I'm totally screwed by this problem..please help 3 Years, 5 Months ago Karma: 2
1) require_once( $mosConfig_absolute_path . '/administrator/includes/admin.php' );
2) mosLoadAdminModules( 'left' );

Write this two lines after line number 18 in login.php file of administration templates.
bhavin.shah
Moderator
Posts: 393
graph
User Offline Click here to see the profile of this user
Gender: Male bhavin.r.shah Location: Mumbai Birthday: 12/24
The administrator has disabled public write access.
 
#35
Re:I'm totally screwed by this problem..please help 3 Years, 5 Months ago Karma: 0
the below is the code from my admin login.php...please tell me where should i enter the line you have gave me....i would be very grateful

Code:

<?php
/**
* @version $Id: login.php 5975 2006-12-11 01:26:33Z robs $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Restricted access' );

$tstart = mosProfiler::getmicrotime();
?>
<?php echo "<?xml version="1.0"?>rn"; ?>
<!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>
<title><?php echo $mosConfig_sitename; ?> - Administration [Joomla!]</title>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<style type="text/css">
@import url(templates/joomla_admin/css/admin_login.css);
</style>
<script language="javascript" type="text/javascript">
function setFocus() {
document.loginForm.usrname.select();
document.loginForm.usrname.focus();
}
</script>
<link rel="shortcut icon" href="<?php echo $mosConfig_live_site .'/images/favicon.ico';?>" />
</head>
<body onload="setFocus();">
<div id="wrapper">
<div id="header">
<div id="joomla"><img src="templates/joomla_admin/images/header_text.png" alt="Joomla! Logo" /></div>
</div>
</div>
<div id="ctr" align="center">
<?php
// handling of mosmsg text in url
include_once( $mosConfig_absolute_path .'/administrator/modules/mod_mosmsg.php' );
?>
<div class="login">
<div class="login-form">
<img src="templates/joomla_admin/images/login.gif" alt="Login" />
<form action="index.php" method="post" name=""""loginForm"""" id="loginForm">
<div class="form-block">
<div class="inputlabel">Username</div>
<div><input name=""""usrname"""" type="text" class="inputbox" size="15" /></div>
<div class="inputlabel">Password</div>
<div><input name=""""pass"""" type="password" class="inputbox" size="15" /></div>
<div align="left"><input type="submit" name=""""submit"""" class="button" value="Login" /></div>
</div>
</form>
</div>
<div class="login-text">
<div class="ctr"><img src="templates/joomla_admin/images/security.png" width="64" height="64" alt="security" /></div>
<p>Welcome to Joomla!</p>
<p>Use a valid username and password to gain access to the administration console.</p>
</div>
<div class="clr"></div>
</div>
</div>
<div id="break"></div>
<noscript>
!Warning! Javascript must be enabled for proper operation of the Administrator
</noscript>
<div class="footer" align="center">
<div align="center">
<?php echo $_VERSION->URL; ?>
</div>
</div>
</body>
</html>

ivertobson
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#36
Re:I'm totally screwed by this problem..please hel 3 Years, 5 Months ago Karma: 0
Hi,

Add the code after line:
defined( '_VALID_MOS' ) or die( 'Restricted access' );

which is line no 16.

and the code should start working with charm.

Note: Please don't use numeric key, use only alphanumeric key.

Regards,
Ajay Lulia.
webtech2
Fresh Boarder
Posts: 0
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#72
Re:I'm totally screwed by this problem..please hel 3 Years, 5 Months ago Karma: 0
i did like you said sir, but the same problem is still there...now i have deleted the jsecure files through fTp again and deleted the code that you told me to past in the line 16..everything is back to the initial stage but i dont know why there is same problem...please help me it wont stop showing the same error...
thank you..
ivertobson
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#74
Re:I'm totally screwed by this problem..please hel 3 Years, 5 Months ago Karma: 0
It should work fine, I can help you install if you need. Let me know.
webtech2
Fresh Boarder
Posts: 0
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 123