From frik85@svn.reactos.com Mon Dec 12 21:39:06 2005 From: frik85@svn.reactos.com To: ros-diffs@reactos.org Subject: [ros-diffs] [frik85] 20115: RosCMS update: Date: Mon, 12 Dec 2005 21:40:02 +0100 Message-ID: <000001c5ff5c$3a26c2a0$6b01a8c0@PENELOPE> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2018508598384030230==" --===============2018508598384030230== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit RosCMS update: * content edit interface: content type bug fixed * login function: add a link to the "too many sessions" error message -> this link allow user to delete their old sessions (and reset their password) * website status page: fix the language detection routine Modified: trunk/web/reactos.org/htdocs/roscms/inc/admin_content_edit.php Modified: trunk/web/reactos.org/htdocs/roscms/inc/login.php Modified: trunk/web/reactos.org/htdocs/roscms/inc/website_status.php _____ Modified: trunk/web/reactos.org/htdocs/roscms/inc/admin_content_edit.php --- trunk/web/reactos.org/htdocs/roscms/inc/admin_content_edit.php 2005-12-12 20:30:09 UTC (rev 20114) +++ trunk/web/reactos.org/htdocs/roscms/inc/admin_content_edit.php 2005-12-12 20:39:52 UTC (rev 20115) @@ -405,7 +405,7 @@ `content_visible` = '". mysql_escape_string($content_vis) ."', `content_active` = '". mysql_escape_string($content_act) ."', `content_description` = '". mysql_escape_string($content_description) ."', - `content_type` = '". mysql_escape_string($content_description) ."' + `content_type` = '". mysql_escape_string($content_typea) ."' WHERE `content_id` = '$rpm_db_id' LIMIT 1 ;"; //`content_active` = '1', //`content_usrname_id` = '$roscms_intern_account_id', _____ Modified: trunk/web/reactos.org/htdocs/roscms/inc/login.php --- trunk/web/reactos.org/htdocs/roscms/inc/login.php 2005-12-12 20:30:09 UTC (rev 20114) +++ trunk/web/reactos.org/htdocs/roscms/inc/login.php 2005-12-12 20:39:52 UTC (rev 20115) @@ -93,7 +93,7 @@ $roscms_intern_timeout_option = $result_usr['user_setting_timeout']; } else { // only hacker/cracker/script kiddy/brute force script/bot/etc. is able to reach this part - die("No valid user session found!

You are a hacker/cracker/script kiddy/brute force script/bot/etc.

RosCMS does not like you, anymore! Your ip address, etc. has been saved and you are on the watch list!
"); + die("No valid user session found!

Delete all old sessions and login again! (this function will also allow you to set a new password)

"); // TODO: add it to the watchlist! } _____ Modified: trunk/web/reactos.org/htdocs/roscms/inc/website_status.php --- trunk/web/reactos.org/htdocs/roscms/inc/website_status.php 2005-12-12 20:30:09 UTC (rev 20114) +++ trunk/web/reactos.org/htdocs/roscms/inc/website_status.php 2005-12-12 20:39:52 UTC (rev 20115) @@ -214,7 +214,7 @@ $query_lang_page_name_trans = mysql_query("SELECT * FROM `pages` WHERE `page_name` = '". $result_page['content_name'] ."' - AND (`page_language` = 'all' OR `page_language` = 'en') + AND (`page_language` = 'all' OR `page_language` = 'en' OR `page_language` = '". $result_page['content_lang'] ."') AND `page_active` = 1 AND `page_visible` = 1 ;") ; $result_lang_page_name_trans = mysql_fetch_array($query_lang_page_name_trans); @@ -238,10 +238,10 @@ ?>
done'; + echo ''. $result_page['content_date'] .''; } else { - echo "done"; + echo $result_page['content_date']; } ?>
done'; + echo ''. $result_page['content_date'] .''; } else { - echo "done"; + echo $result_page['content_date']; } } - ?>