当前位置: 首页>>代码示例>>PHP>>正文


PHP c_get_config函数代码示例

本文整理汇总了PHP中c_get_config函数的典型用法代码示例。如果您正苦于以下问题:PHP c_get_config函数的具体用法?PHP c_get_config怎么用?PHP c_get_config使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了c_get_config函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $this->log("Model Mod_Eco_Member loaded.");
     $this->_config = c_get_config();
     // load models
     $this->_load_models();
 }
开发者ID:centaurustech,项目名称:collaborate-usa,代码行数:8,代码来源:mod_eco_member.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     // get config and store to private var
     $this->_config = c_get_config();
     // load all my voice models
     $this->_load_models();
     $this->log("Controller Search loaded.");
 }
开发者ID:centaurustech,项目名称:collaborate-usa,代码行数:9,代码来源:search.php

示例3: merge_to_ocean

 public function merge_to_ocean()
 {
     $result = array("status" => false, "message" => "");
     if (is_logged_in()) {
         $mr_id = $this->input->post('m_strm', true);
         $or_id = $this->input->post('o_strm', true);
         $logged_id = $this->get_logged_uid();
         $mr_data = $this->get_single_river($mr_id);
         $or_data = $this->get_single_river($or_id);
         if ($mr_data['status'] == true) {
             $mr = $mr_data['data'];
             #$ms_sys_id = $ms['eco_sys_id'];
             if ($or_data['status'] == true) {
                 $or = $or_data['data'];
                 #$os_sys_id = $os['eco_sys_id'];
                 if (!$this->is_already_merged($mr['id'])) {
                     if (!$this->is_already_merged($or['id'])) {
                         if (!$this->is_already_requested($logged_id, $mr['id'], $or['id'])) {
                             if (!$this->is_ready_for_ocean($logged_id, $mr['id'], $or['id'])) {
                                 $merge_request = $this->add_request_to_merge($logged_id, $mr['id'], $or['id']);
                                 if ($merge_request['status'] == true) {
                                     $config = c_get_config();
                                     $user = $this->is_valid_user($this->get_logged_uid());
                                     $other_user = $this->Mod_User->get_user($or['moderator_id']);
                                     $mr_link = "<a href='" . base_url() . $config['single_river_url'] . "/{$mr[id]}'>{$mr[question_text]}</a>";
                                     $or_link = "<a href='" . base_url() . $config['single_river_url'] . "/{$or[id]}'>{$or[question_text]}</a>";
                                     $notif_details = "{$user[name]}<br />\n                                                          Invite Request for Creating Ocean<br />\n                                                          Hi {$other_user[name]}, I would like to merge my river \n                                                          {$mr_link} with your river {$or_link} \n                                                          due to our cause and awareness message and I would like to<br /> \n                                                          <br />\n                                                          promote it mutually.<br />\n                                                          Approval required, thanks.<br />";
                                     $notif_data = array('template_id' => "6", 'user_id' => "{$or['moderator_id']}", 'from_user_id' => "{$logged_id}", 'objects' => "River:River", 'object_id' => "{$merge_request[data][id]}", 'object_location' => 'eco_merge_requests', 'visit_url' => "ecosystem/invitation", 'notif_details' => $notif_details);
                                     generate_notification($notif_data, true);
                                     $result['status'] = true;
                                     $result['message'] = "Request sent.";
                                 } else {
                                     $result['message'] = $merge_request['message'];
                                 }
                             } else {
                                 $result['message'] = "River already ready for creating ocean.";
                             }
                         } else {
                             $result['message'] = "Request already sent.";
                         }
                     } else {
                         $result['message'] = "River already merged.";
                     }
                 } else {
                     $result['message'] = "River already merged.";
                 }
             } else {
                 $result['message'] = "Invalid river.";
             }
         } else {
             $result['message'] = "Invalid your river.";
         }
     } else {
         $result['message'] = "Login first.";
     }
     return $result;
 }
开发者ID:centaurustech,项目名称:collaborate-usa,代码行数:57,代码来源:mod_river.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     // get config and store to private var
     $this->_config = c_get_config();
     // write log
     $this->log("Model Mod_Create_River loaded.");
     // load file system model
     $this->load->model("Mod_File_System");
 }
开发者ID:centaurustech,项目名称:collaborate-usa,代码行数:10,代码来源:mod_create_river.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     #$this->log("Model Mod_Voice_Checker loaded.");
     $this->_config = c_get_config();
 }
开发者ID:centaurustech,项目名称:collaborate-usa,代码行数:6,代码来源:mod_voice_checker.php

示例6: exit

<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
$config = c_get_config();
?>

<div class="leftcont brdrnone"> 
    <span class="mainbanner">
        <img src="<?php 
echo c_get_assets_url();
?>
images/my_river.jpg" alt="My Voice" />
    </span>
    <div class="container_588 bkgrnd">
        <form  name="river_post" id="river_post" action="<?php 
echo base_url() . $config['river_create_url'];
?>
" method="post" enctype="multipart/form-data">
        <div class="voiceimgcont"> <span class="voiceimg"><img src="<?php 
echo c_get_assets_url();
?>
images/image.jpg" class="vpp" alt="" /></span> 
            <div id="file-upload-cont">
                <input id="original" name="userfile" type="file" accept="image/*" />
                <div id="my-button" class="mainbrowse">Browse</div>
            </div>    
        </div>
        <div class="starheadsev">
                              
开发者ID:centaurustech,项目名称:collaborate-usa,代码行数:30,代码来源:create_river.php

示例7: river_to_ocean

 public function river_to_ocean()
 {
     $result = array("status" => false, "message" => "");
     if (is_logged_in()) {
         $caller_sys_id = $this->input->post('csid', true);
         $receiver_sys_id = $this->input->post('rsid', true);
         $merged_request = $this->get_merged_request_by_cr($caller_sys_id, $receiver_sys_id);
         if ($merged_request) {
             if ($merged_request['verification_str'] == '') {
                 $caller_eco_system = $this->get_eco_system_by_user($caller_sys_id, $merged_request['requested_by']);
                 if ($caller_eco_system) {
                     $receiver_eco_system = $this->get_eco_system_by_user($receiver_sys_id, $this->get_logged_uid());
                     if ($receiver_eco_system) {
                         $sql = "SELECT * FROM eco_merge_requests WHERE (caller_eco_sys_id=? OR caller_eco_sys_id=? OR receiver_eco_sys_id=? OR receiver_eco_sys_id=?)";
                         $rsl = $this->db->query($sql, array($caller_sys_id, $receiver_sys_id, $receiver_sys_id, $caller_sys_id));
                         $rows = $rsl->result_array();
                         foreach ($rows as $mr) {
                             // delete notification
                             $this->db->where('object_id', $mr['id']);
                             $this->db->delete('user_notifications');
                         }
                         $rc_key = md5(uniqid(rand())) . md5(uniqid(rand())) . md5(uniqid(rand()));
                         $data = array("verification_str" => $rc_key);
                         $this->db->where('id', $merged_request['id']);
                         $this->db->update('eco_merge_requests', $data);
                         // delete other request to merge request table
                         $this->db->where("((caller_eco_sys_id='{$caller_sys_id}' OR caller_eco_sys_id='{$receiver_sys_id}' OR receiver_eco_sys_id='{$caller_sys_id}' OR receiver_eco_sys_id='{$receiver_sys_id}') AND verification_str='')");
                         $this->db->delete('eco_merge_requests');
                         $rec_river = $this->get_single_river($receiver_sys_id);
                         if ($rec_river['status'] == true) {
                             $config = c_get_config();
                             $notif_details = "Your request to create a Ocean is accepted successfully by the moderator of \"River " . $rec_river['data']['title'] . "\". Please follow the steps below:<br />\n                                                 1. Go to your invited river: \"River <a href='" . base_url() . $config['single_stream_url'] . '/' . $rec_river['data']['id'] . "'>" . $rec_river['data']['title'] . "</a>\"<br />\n                                                 2. Click on Create Ocean button<br />\n                                                 3. Fill the form and submit.<br />";
                             $notif_data = array('template_id' => "8", 'user_id' => "{$caller_eco_system[moderator_id]}", 'from_user_id' => "{$receiver_eco_system[moderator_id]}", 'objects' => "River:River", 'object_id' => "{$merged_request[id]}", 'object_location' => 'eco_merge_requests', 'visit_url' => "ecosystem/notification", 'notif_details' => $notif_details);
                             generate_notification($notif_data, true);
                         }
                         $result['status'] = true;
                         $result['message'] = "Request accepted.";
                     } else {
                         $result['message'] = 'Receiver invalid.';
                     }
                 } else {
                     $result['message'] = 'Caller invalid.';
                 }
             } else {
                 $result['message'] = "Request already accepted.";
             }
         } else {
             $result['message'] = "Invalid caller and receiver.";
         }
     } else {
         $result['message'] = "Login first.";
     }
     return $result;
 }
开发者ID:centaurustech,项目名称:collaborate-usa,代码行数:54,代码来源:mod_merger.php


注:本文中的c_get_config函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。