Jump to content
php.lv forumi

SOCIAL ENGINE


kalabox

Recommended Posts

Sveiki, taatad novilku gatavu social engine kodu, uzinstaleeju uz xampp pie instalaacijas paraadiija ka viss ok, peedeejaa solii izmeta taadus errorus

Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\tests1\include\functions_general.php on line 138

Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\tests1\include\functions_general.php on line 138

Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\tests1\include\functions_general.php on line 138

Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\tests1\include\functions_general.php on line 138

Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\tests1\include\functions_general.php on line 138

Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\tests1\include\functions_general.php on line 138

Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\tests1\include\functions_general.php on line 138

Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\tests1\include\functions_general.php on line 138

Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\tests1\include\functions_general.php on line 138

Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\tests1\include\functions_general.php on line 138

Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\tests1\include\functions_general.php on line 138

Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\tests1\include\functions_general.php on line 138

Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\tests1\include\functions_general.php on line 138

Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\tests1\include\functions_general.php on line 138

Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\tests1\include\functions_general.php on line 138

Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\tests1\include\functions_general.php on line 138

Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\tests1\include\functions_general.php on line 138

 

Un luuk ir taa 138 rindinja

 

while( !ereg("[a-zA-Z0-9]", $char) )

 

kur shaize??

Link to comment
Share on other sites

Funkcija ereg ir deprecated, tas nozīmē, ka vēlākā versijā vispār viņa netiks atbalstīta...

 

Labi, skaidrs, ka pats neko nesaporti un nevēlies iemācīties/saprast...

 

!ereg("[a-zA-Z0-9]", $char)

 

aizstāj ar

 

!preg_match("/[a-zA-Z0-9]/", $char)

Link to comment
Share on other sites

taatad tagat admin.php ir kljuda nomainiiju uz preg_match un tagat taads errors

 

Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in C:\xampp\htdocs\tests1\include\functions_general.php on line 55

 

un reku 55 rinda

 

if( preg_match("Microsoft", $_SERVER['SERVER_SOFTWARE']) )

 

 

Nomainiiju tagat to rindu uz

if( preg_match('|(Microsoft-IIS/7)|', $_SERVER['SERVER_SOFTWARE']) )

 

paraadiijaaas taadi errori

Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\tests1\include\xmlrpc\xmlrpc.inc on line 1410

 

 

Toties zem tiem erroriem ir jau admin kontrolpanelis.. kur kljuuda??

Edited by kalabox
Link to comment
Share on other sites

jauna kljuuda pie regjistraacijas raada shaadu textu

Please ensure your username is alphanumeric.

 

Un nevar pieregjistreeties..

 

 

Username: kalabox

database_query("SELECT user_username FROM se_users WHERE user_username='$username' LIMIT 1"); $existing_users = $database->database_num_rows($existing_users); echo check_username($existing_users,$username); function check_username($existing_users,$username){ $username=strtolower($username); if ($username == ""){ return 'Please Select a Username'; } if(ereg('[^A-Za-z0-9]', $username)){ return 'Please ensure your username is alphanumeric.'; } elseif ($existing_users > 0) { return 'Username is Unavailable'; } return 'Username is Available'; } ?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...