Thanks - followed directions exactly. When trying to log in, I still get a "wrong username or password" error message.   https://cutephp.com/forum/style_emoticons/default/mellow.gif

To log in use step 2 from this post:
https://cutephp.com/forum/index.php?s=&...st&p=154951
To move your data from one cutenews install to another move the data folder.
(Make backups first)


Anyone? I seriously am not looking forward to redoing the script again. Besides how do you get all the data that's already in your present Cutephp system in my website? https://cutephp.com/forum/style_emoticons/default/blink.gif

I have seem to forgotten my password to access the admin account of my cutephp script in my website. I tried using the "lost password"command but the passwords that were sent do not work. I also search the forum and tried the solution mentioned in this thread: https://cutephp.com/forum/index.php?showtopic=284

It didn't work either. I just keep on getting the wrong username and password message. Any other suggestions on how I can solve my problem? Thanks in advance!

@Damoor
Thanks for helping me out. It finally works   https://cutephp.com/forum/style_emoticons/default/laugh.gif

Line 20 should look like this:

if( isset($template) and $template != "" and !preg_match("/^[_a-zA-Z0-9-]{1,}$/", $template)){ die("invalid template characters"); }


Thanks for the quick reply. After changing the code and adding "/". I got this error message:

Warning: preg_match() [function.preg-match]: Unknown modifier '$' in inc/functions.inc.php on line 20

Do we take out "$" sign?

preg_match needs a delimiter and you have not used one, eregi does not.
Usually / is used. You need to put one at each end of the values you are using like this:
/^[_a-zA-Z0-9-]{1,}$/

So

eregi("^[_a-zA-Z0-9-]{1,}$"

becomes

preg_match("/^[_a-zA-Z0-9-]{1,}$/"

Initially had the function eregi errors and going over the stickied thread - I was able to replace them with preg_match commands. Now I am getting the following errors:

Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in

Warning: preg_match() [function.preg-match]: No ending matching delimiter '>' found in

How do I go about this? They are errors in pages: inc/functions.inc.php and inc/shows.inc.php

Thanks