1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-17 07:10:48 +03:00
This commit is contained in:
Mzhelskiy Maxim 2010-03-06 16:11:27 +00:00
parent ac94308982
commit 44621f0016
2 changed files with 4 additions and 1 deletions

View file

@ -45,7 +45,7 @@ class ActionLogin extends Action {
/**
* Если нажали кнопку "Войти"
*/
if (isPost('submit_login')) {
if (isPost('submit_login') and is_string(getRequest('login')) and is_string(getRequest('password'))) {
/**
* Проверяем есть ли такой юзер по логину
*/

View file

@ -166,6 +166,9 @@ function func_stripslashes(&$data) {
* @return unknown
*/
function func_check($sValue,$sParam,$iMin=1,$iMax=100) {
if (is_array($sValue)) {
return false;
}
switch($sParam)
{
case 'id': if (preg_match("/^\d{".$iMin.','.$iMax."}$/",$sValue)){ return true; } break;