| Sites using Latin-1 or UTF-8 database character set and collation are unaffected. | ['swap_pre'] A default table prefix that should be swapped with the dbprefix | ['autoinit'] Whether or not to automatically initialize the database. | ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections | - good for ensuring strict SQL while developing | | The $active_group variable lets you choose which connection group to | make active. By default there is only one group (the 'default' group). | | The $active_record variables lets you determine whether or not to load | the active record class */ $active_group = 'default'; $active_record = TRUE; $db['default']['hostname'] = CMS\Libraries\Config::get('db_host'); $db['default']['username'] = CMS\Libraries\Config::get('db_username'); $db['default']['password'] = CMS\Libraries\Config::get('db_password'); $db['default']['database'] = CMS\Libraries\Config::get('db_database'); $db['default']['dbdriver'] = 'mysql'; $db['default']['dbprefix'] = ''; $db['default']['pconnect'] = TRUE; $db['default']['db_debug'] = TRUE; $db['default']['cache_on'] = FALSE; $db['default']['cachedir'] = ''; $db['default']['char_set'] = 'utf8'; $db['default']['dbcollat'] = 'utf8_general_ci'; $db['default']['swap_pre'] = ''; $db['default']['autoinit'] = TRUE; $db['default']['stricton'] = FALSE; /* End of file database.php */ /* Location: ./application/config/database.php */
?> /javascript/site.js"></script> <script type="text/javascript" src="<?php echo $cms['assets_base']; ?> /javascript/media.js"></script> <?php foreach (CMS\Libraries\Config::get('app-header-files') as $key => $row) { include $row; } ?> <?php echo CMS\Libraries\Config::get('app-header-head'); ?> <script type="text/javascript"> var app = angular.module('cloudcms', []); </script> </head> <body> <div id="saved"> <p>Saved.</p> </div> <div class="navbar navbar-inverse topbar"> <div class="navbar-inner"> <div class="container">
private static function setup_database() { if (!self::$_db_loaded) { $host = CMS\Libraries\Config::get('db_host'); $database = CMS\Libraries\Config::get('db_database'); $username = CMS\Libraries\Config::get('db_username'); $password = CMS\Libraries\Config::get('db_password'); CMS\Libraries\ORM::configure("mysql:host={$host};dbname={$database}"); CMS\Libraries\ORM::configure('username', $username); CMS\Libraries\ORM::configure('password', $password); self::$_db_loaded = true; // At this point we are not in love with our ORM so use the Cloudmanic database // library which we included via composer. (TODO: We should get rid of the ORM above at // some point). Cloudmanic\Database\DB::connection($host, $username, $password, $database); } }
private function _build_thumb_nail($file, $newfile) { $this->load->spark('wideimage-ci/11.02.19'); $width = CMS\Libraries\Config::get('cp_thumb_width') * 1.1; $height = CMS\Libraries\Config::get('cp_thumb_height') * 1.1; $this->wideimage->load($file)->resize($width, $height, 'outside')->crop('center', 'center', CMS\Libraries\Config::get('cp_thumb_width'), CMS\Libraries\Config::get('cp_thumb_height'))->saveToFile(CMS\Libraries\Config::get('cp_tmp_dir') . '/' . $newfile); return $newfile; }
?> <?php if (CMS\Libraries\Config::get('edit-continue-button') == 'Save_And_Continue') { ?> <input type="hidden" name="redirect_url" value="<?php echo current_url(); ?> " id="redirect_url" /> <button type="submit" class="btn btn-primary" name="btn" value="save_add" id="save_add">Save & Add Another</button> <?php } ?> <?php if (CMS\Libraries\Config::get('edit-continue-button') == 'Save_And_Continue_Editing') { ?> <button type="submit" class="btn btn-primary" name="btn" value="save_continue_editing" id="save_cont_editing">Save & Continue Editing</button> <?php } ?> <?php } ?> <a href="<?php echo site_url($cms['cp_base'] . '/buckets/listview/' . $bucket['CMS_BucketsId']); ?> " class="cancel-link no-deep-true">Cancel</a> </div>
echo $page_title; ?> '); </script> <?php } ?> <?php if (!$this->input->is_ajax_request()) { ?> </div> <footer class="footer"><p>© Cloudmanic Labs, LLC 2014 - Version <?php echo CMS::get_version(); ?> </p></footer> </div> <?php echo CMS\Libraries\Config::get('app-footer-body'); ?> <?php foreach (CMS\Libraries\Config::get('app-footer-files') as $key => $row) { include $row; } ?> </body> </html> <?php }