private function _get_about_us()
 {
     $val_return = GeneralFunc::CB_Receive_Service_Request("CB_Ressphere_Home:get_about_us");
     $about_us = json_decode($val_return, TRUE);
     $text = "<strong>Ressphere</strong> is founded on 17th of March, 2014.<BR> \r\n           Ressphere's vision is to create a platform that joins people from different background, different location, having different interest, mastering different expertise together to communicate and collaborate. \r\n           <br> \r\n           Its name is derived from “Resonance/Resolution” and “Sphere” which symbolizes a society that contains people from all around the world where they can work together to achieve consensus that bring the best solution to each other.\r\n           <br><br> \r\n           <B>We strike to achieve 4 missions that is aligned with our vision</B><br>\r\n           <ol><li>Affiliate join forces by creating a boundaryless environment</li>\r\n               <li>Communicate - prepare an effective and efficient communication channel via internet</li>\r\n               <li>Enhance - build an online society that complement daily life</li>\r\n               <li>Secure - create a safe and trustworthy virtual online platform</li>\r\n            </ol><br>\r\n            <B>We aim to complete our A.C.E.S missions with </B><br>\r\n            <ul>\r\n            <li>Superior competency</li>\r\n            <li>Passionate attitude</li>\r\n            <li>Intelligent solution</li>\r\n            <li>Contemporary style</li>\r\n            <li>Endless creativity</li>\r\n            </ul><br>\r\n            The company now offers a circle binding platform, property circle and service circle. <br>\r\n            In the future, where there will be more circles that touch on different parts of our life to be launched.";
     if (count($about_us["data"]["result"]) > 0) {
         $text = html_entity_decode($about_us["data"]["result"][0]['content']);
         $text = html_entity_decode($text);
     }
     $news = array();
     array_push($news, array('text', $text));
     return $news;
 }
Exemple #2
0
 public function get_list_of_currency()
 {
     $val_return = GeneralFunc::CB_Receive_Service_Request("CB_Currency:get_currency_list");
     $this->_print($val_return);
 }
 protected function _get_wsdl_base_url()
 {
     $val_return = GeneralFunc::CB_Receive_Service_Request("CB_Info:base_url");
     $wsdl_base_url = json_decode($val_return, TRUE)["data"]["result"];
     return $wsdl_base_url;
 }
 public function activate()
 {
     //$this->extemplate->set_extemplate('default');
     $user_id = $this->uri->segment(3);
     $new_email_key = $this->uri->segment(4);
     $content = "Circle Properties activation";
     $title = "Activate my account ";
     $this->SEO_Tags($content);
     $this->set_title($title);
     $this->extemplate->add_css('css/bootstrap.min.css');
     $this->extemplate->add_css('css/properties_base.css');
     //$this->extemplate->add_css('css/base.css');
     // Load necessary js
     $this->extemplate->add_js('js/jquery.min.js');
     $this->extemplate->add_js('js/bootstrap.min.js');
     $this->extemplate->add_js('js/_utils/jquery.makeclass.min.js');
     // Load wsdl base.js as the login related stuft is at there
     $this->wsdl = $this->session->userdata('wsdl_base_url');
     if ($this->wsdl === FALSE) {
         $this->wsdl = $this->_get_wsdl_base_url();
         $this->session->set_userdata('wsdl_base_url', $this->wsdl);
     }
     $this->extemplate->add_css($this->wsdl . 'css/base.css', 'link', FALSE, FALSE);
     $this->extemplate->add_js($this->wsdl . 'js/base.js', 'import', FALSE, FALSE);
     // Activate user
     $member["user_id"] = $user_id;
     $member["new_email_key"] = $new_email_key;
     $val_return = GeneralFunc::CB_SendReceive_Service_Request("CB_Member:activate_user", json_encode($member));
     $result = json_decode($val_return, TRUE);
     $result = $result["data"]["result"];
     if ($result) {
         // success
         GeneralFunc::CB_Receive_Service_Request("CB_Member:begin_logout");
         $activate_content["msg"] = "<B>Congratulation</B> your account is activate, please proceed to login";
     } else {
         $activate_content["msg"] = "<B>Sorry</B> we fail to activate your account.";
     }
     if (!is_null($this->logo)) {
         $activate_content["Logo"] = $this->logo;
     }
     $this->extemplate->write_view('contents', '_usercontrols/cb_user_registration', $activate_content, TRUE);
     $this->extemplate->render();
 }
 public function Receive_Service($service)
 {
     // Benchmark the function required time
     $this->benchmark->mark("ws_code_start");
     $val_return = GeneralFunc::CB_Receive_Service_Request($service);
     $this->benchmark->mark("ws_code_end");
     $data = "{$service} - " . $this->benchmark->elapsed_time('ws_code_start', 'ws_code_end');
     $this->benchmark_dump_file($data);
     return $val_return;
 }