Jump to content
Sign in to follow this  
spax

[Contribution] RC2 Admin Login for MS2

Recommended Posts

I don't think this contribution will need it, but here is the support thread for RC2 Admin Login for MS2

 

http://addons.oscommerce.com/info/6203

 

This will add the RC2 admin login into your MS2 Update 051113 and Update 060817 stores.

Hi Spax, sounds good. One question before I try it, does this introduce that wretched admin time out annoyance that the RC stores have?


The Coopco Underwear Shop

 

If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

Share this post


Link to post
Share on other sites

Leslie,

 

To be honest, I don't use RC2 (yet) so I haven't experienced it. Certainly when I have been messing with it on my PC I haven't noticed it but, if the problem exists within the code, it will exist with this. I haven't done anything to the code, just brought the changes over to MS2. I just noticed someone asking for it and I thought, like you, that's a good idea.

 

Now you mention it though, I will check it out.

Share this post


Link to post
Share on other sites

i have the fallowing error:

 

Administrator Login

Fatal error: Call to undefined function: tep_hide_session_id() in /home/sencos/public_html/osadaminlogin/admin/login.php on line 115

Share this post


Link to post
Share on other sites

My apologies Andrea, I didn't include admin/includes/functions/html_output.php to the Vanilla-osC package. You need to open admin/includes/functions/html_output.php in a text editor and at the end of that file, before the closing php tag ?>, you need to add this function:

 

////
// Hide form elements
 function tep_hide_session_id() {
$string = '';

if (defined('SID') && tep_not_null(SID)) {
  $string = tep_draw_hidden_field(tep_session_name(), tep_session_id());
}

return $string;
 }

 

It was covered in the instructions but you wouldn't have seen that, doing a Vanilla install.

 

For anyone considering this mod, a new package has been uploaded, which now includes the missing file.

 

http://addons.oscommerce.com/info/6203

Share this post


Link to post
Share on other sites

Hello Spax, not sure if you still can help on this one.

I downloaded and install exactly as you instructed and after that when I try to log on admin section I get blank page, I check and recheck instructions and to the same.

Can you help, is an old template that use MS2.

 

Thanks

Share this post


Link to post
Share on other sites

When you say a blank page, do you mean just that - nothing at all? No warnings or messages at all?

Share this post


Link to post
Share on other sites

Hi

 

I can't use fopen with my host.

 

In administrator.php there are eight instances of fopen.

 

One of them is:

 

if (filesize(DIR_FS_ADMIN . '.htaccess') > 0) {
	$fg = fopen(DIR_FS_ADMIN . '.htaccess', 'rb');
	$data = fread($fg, filesize(DIR_FS_ADMIN . '.htaccess'));
	fclose($fg);

 

My question is how do I convert fopen to curl, which is allowed for me?

 

The Knowledge Base at my host says that this could be of use:

 

<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://exempel.com/filnamn.php");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
?>

Share this post


Link to post
Share on other sites

It should have been posted in the thread for FIMBLE:s contribution but I could not find a thread for that contribution. Anyway, I use the two together so I guess the question fits here anyway?!

 

 

Hi

 

I can't use fopen with my host.

 

In administrator.php there are eight instances of fopen.

 

One of them is:

 

if (filesize(DIR_FS_ADMIN . '.htaccess') > 0) {
	$fg = fopen(DIR_FS_ADMIN . '.htaccess', 'rb');
	$data = fread($fg, filesize(DIR_FS_ADMIN . '.htaccess'));
	fclose($fg);

 

My question is how do I convert fopen to curl, which is allowed for me?

 

The Knowledge Base at my host says that this could be of use:

 

<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://exempel.com/filnamn.php");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
?>

Share this post


Link to post
Share on other sites

I have the same problem, also a blank page with no errors :(

Decided to get back to MS2 because tons of contributions dont work with the new ones.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×