</div> </div> <h2 class="render-title separate-top"><?php _e('Cron Settings'); ?> </h2> <div class="form-row"> <div class="form-label"><?php _e('Automatic cron process'); ?> </div> <div class="form-controls"> <div class="form-label-checkbox"> <label> <input type="checkbox" <?php echo osc_auto_cron() ? 'checked="checked"' : ''; ?> name="auto_cron" /> <?php printf(__('Allow Osclass to run a built-in <a href="%s" target="_blank">cron</a> automatically without setting crontab'), 'http://en.wikipedia.org/wiki/Cron'); ?> </label> </div> <span class="help-box"><?php _e('It is <b>recommended</b> to have this option enabled, because some features require it.'); ?> </span> </div> </div> <?php if (osc_market_api_connect() != '') {
<div id="settings_form" style="border: 1px solid #ccc; background: #eee; "> <div style="padding: 20px;"> <form action="<?php echo osc_admin_base_url(true); ?> " method="post"> <input type="hidden" name="page" value="settings" /> <input type="hidden" name="action" value="cron_post" /> <div style="float: left; width: 100%;"> <fieldset> <legend><?php _e('Cron system'); ?> </legend> <input style="height: 20px; padding-left: 4px;padding-top: 4px;" type="checkbox" <?php echo osc_auto_cron() ? 'checked="true"' : ''; ?> name="auto_cron" id="auto_cron" /> <label for="auto_cron"><?php _e('Auto-cron'); ?> </label> <br/> <label><?php _e('Some OSClass functionalities require a cron in order to work. Check if your host isn\'t able to do them. Uncheck if you want to set up your cron manually. Refer to the manual to know more about the OSClass cron system.'); ?> </label> </fieldset> </div> <div style="clear: both;"></div> <input id="button_save" type="submit" value="<?php
case 'language': // set language require_once osc_base_path() . 'language.php'; $do = new CWebLanguage(); $do->doModel(); break; case 'contact': //contact require_once osc_base_path() . 'contact.php'; $do = new CWebContact(); $do->doModel(); break; case 'custom': //contact require_once osc_base_path() . 'custom.php'; $do = new CWebCustom(); $do->doModel(); break; default: // home and static pages that are mandatory... require_once osc_base_path() . 'main.php'; $do = new CWebMain(); $do->doModel(); break; } if (!defined('__FROM_CRON__')) { if (osc_auto_cron()) { osc_doRequest(osc_base_url(), array('page' => 'cron')); } } /* file end: ./index.php */
<div class="form-controls"> <div class="form-label-checkbox"> <label> <input type="checkbox" <?php echo ( osc_contact_attachment() ? 'checked="checked"' : '' ); ?> name="enabled_attachment" value="1" /> <?php _e('Allow people to attach a file to the contact form'); ?> </label> </div> </div> </div> <h2 class="render-title separate-top"><?php _e('Cron Settings'); ?></h2> <div class="form-row"> <div class="form-label"><?php _e('Automatic cron process'); ?></div> <div class="form-controls"> <div class="form-label-checkbox"> <label> <input type="checkbox" <?php echo ( osc_auto_cron() ? 'checked="checked"' : '' ); ?> name="auto_cron" /> <?php printf(__('Allow Osclass to run a built-in <a href="%s" target="_blank">cron</a> automatically without setting crontab'), 'http://en.wikipedia.org/wiki/Cron' ); ?> </label> </div> <span class="help-box"><?php _e('It is <b>recommended</b> to have this option enabled, because some features require it.'); ?></span> </div> </div> <h2 class="render-title separate-top"><?php _e('Software updates'); ?></h2> <div class="form-row"> <div class="form-label"><?php _e('Core updates'); ?></div> <div class="form-controls"> <select name="auto_update[]" id="auto_update_core"> <option value="disabled" ><?php _e('Disabled'); ?></option> <option value="branch" <?php if(strpos(osc_auto_update(),'branch')!==false) { ?>selected="selected"<?php } ?>><?php _e('Branch - big changes'); ?></option> <option value="major" <?php if(strpos(osc_auto_update(),'major')!==false) { ?>selected="selected"<?php } ?>><?php _e('Major - new features'); ?></option> <option value="minor" <?php if(strpos(osc_auto_update(),'minor')!==false) { ?>selected="selected"<?php } ?>><?php _e('Minor - bug fixes'); ?></option>