Message: | Trying to access array offset on value of type null |
File: | /home/romarekl/public_html/sosyallift.com/ow_plugins/forum/controllers/topic.php |
Line: | 136 |
Oxwall CMS'ye göre bitirirken istediğimi yapmayı başardım.
İşte yaptığım şey:
<?php
define('_OW_', true);
define('DS', DIRECTORY_SEPARATOR);
define('OW_DIR_ROOT', $_SERVER['DOCUMENT_ROOT'] .'/dating/');// test site
require_once(OW_DIR_ROOT . 'ow_includes' . DS . 'init.php');
OW::getSession()->start();
$isLogged = logUserin(); // returns Json response
$isLogged = json_decode($isLogged);
if($isLogged->res && $isLogged->user){
try
{
BOL_UserService::getInstance()->createUser( $isLogged->user->username , $isLogged->user->password , $isLogged->user->email , null, true );
}
catch ( Exception $e )
{
// here to show err to clients
}
}
?>
Eğer kullanıcı geliştirme aşamasındayken tüm sisteminize girerse, bu kullanıcı onun şifresiyle ve kullanıcı adı ile kayıt olur.
Umarım bu gelecekte birilerine yardımcı olur.