24 |
file_put_contents('/home/garrattpublishin/public_html/modules/cms/controllers/cms_settings/stats.htm', '<? Phpr_View::beginBlock("head") ?>
<link rel="stylesheet" href="modules/cms/resources/css/cms.css?<?= module_build('cms') ?>" type="text/css"/>
<? Phpr_View::endBlock() ?>
<? Phpr_View::beginBlock("view") ?>
<ul class="breadcrumbs">
<li><a href="<?= url('/system/settings') ?>">Settings</a></li>
<li><?= $this->app_page_title ?></li>
</ul>
<div class="form500">
<?= Phpr_Form::openTag(array('id'=>'settings_form')) ?>
<? $this->formRender($settings) ?>
<?= backend_ajax_button('Save', 'stats_onSave', array(), "update: 'multi', loadIndicator: {hideOnSuccess: true}, preCheckFunction: function(){
if (Number($('prev_pageviews').value) > Number($('Cms_Stats_Settings_keep_pageviews').get('value')))
return confirm('New pageviews number is less than the previous value. Obsolete pageviews data will be deleted. Continue?');
return true;
}") ?>
<?= backend_button('Cancel', url('system/settings')) ?>
<input type="hidden" id="prev_pageviews" value="<?= $settings->keep_pageviews ?>"/>
<div class="clear"></div>
</form>
<script type="text/javascript">
window.addEvent('domready', function(){
$('Cms_Stats_Settings_ga_enabled').addEvent('toggle', function(state){
if (state)
$('form_field_ga_enabledCms_Stats_Settings').addClass('separatedField');
else
$('form_field_ga_enabledCms_Stats_Settings').removeClass('separatedField');
var fields = ['form_field_ga_siteidCms_Stats_Settings', 'form_field_ga_usernameCms_Stats_Settings', 'form_field_ga_property_idCms_Stats_Settings', 'ga_hint', 'form_field_ga_site_speed_sample_rateCms_Stats_Settings', 'form_field_ga_domain_nameCms_Stats_Settings', 'form_field_ga_enable_doubleclick_remarketingCms_Stats_Settings', 'form_field_ga_client_idCms_Stats_Settings', 'form_field_ga_client_secretCms_Stats_Settings', 'form_field_ga_redirect_urlCms_Stats_Settings','form_field_ga_debugCms_Stats_Settings'];
fields.each(function(element){
console.log(element);
if (state)
$(element).show();
else
$(element).hide();
})
})
$('Cms_Stats_Settings_enable_builtin_statistics').addEvent('toggle', function(state){
if (state)
$('form_field_enable_builtin_statisticsCms_Stats_Settings').addClass('separatedField');
else
$('form_field_enable_builtin_statisticsCms_Stats_Settings').removeClass('separatedField');
var fields = ['form_field_keep_pageviewsCms_Stats_Settings', 'ip_filters'];
fields.each(function(element){
if (state)
$(element).show();
else
$(element).hide();
});
});
});
</script>
</div>
<? Phpr_View::endBlock() ?>') |
/modules/googleanalytics/classes/googleanalytics_module.php |
56 |
23 |
GoogleAnalytics_Module::autoloader('Db_Base') |
|
|
22 |
spl_autoload_call('Db_Base') |
/phproad/modules/db/classes/db_wherebase.php |
3 |
21 |
include('/home/garrattpublishin/public_html/phproad/modules/db/classes/db_wherebase.php') |
/phproad/system/classloader.php |
57 |
20 |
Phpr_ClassLoader->lookup_module('/home/garrattpublishin/public_html/phproad/modules/db', 'Db_WhereBase', 'db_wherebase') |
/phproad/system/classloader.php |
157 |
19 |
Phpr_ClassLoader->load('Db_WhereBase') |
/phproad/system/initialize.php |
79 |
18 |
Phpr_InternalAutoload('Db_WhereBase') |
|
|
17 |
spl_autoload_call('Db_WhereBase') |
/phproad/modules/db/classes/db_sqlbase.php |
3 |
16 |
include('/home/garrattpublishin/public_html/phproad/modules/db/classes/db_sqlbase.php') |
/phproad/system/classloader.php |
57 |
15 |
Phpr_ClassLoader->lookup_module('/home/garrattpublishin/public_html/phproad/modules/db', 'Db_SqlBase', 'db_sqlbase') |
/phproad/system/classloader.php |
157 |
14 |
Phpr_ClassLoader->load('Db_SqlBase') |
/phproad/system/initialize.php |
79 |
13 |
Phpr_InternalAutoload('Db_SqlBase') |
|
|
12 |
spl_autoload_call('Db_SqlBase') |
/phproad/modules/db/classes/db_sql.php |
3 |
11 |
include('/home/garrattpublishin/public_html/phproad/modules/db/classes/db_sql.php') |
/phproad/system/classloader.php |
57 |
10 |
Phpr_ClassLoader->lookup_module('/home/garrattpublishin/public_html/phproad/modules/db', 'Db_Sql', 'db_sql') |
/phproad/system/classloader.php |
157 |
9 |
Phpr_ClassLoader->load('Db_Sql') |
/phproad/system/initialize.php |
79 |
8 |
Phpr_InternalAutoload('Db_Sql') |
|
|
7 |
spl_autoload_call('Db_Sql') |
/phproad/modules/db/classes/db_dbhelper.php |
35 |
6 |
Db_DbHelper::scalar('select session_data from db_session_data where session_id=:session_id and client_ip=:client_ip', array(2) [session_id => 'rkpqfdh126vrgtick7s0pu6u32', client_ip => '52.14.48.90']) |
/phproad/modules/phpr/classes/phpr_session.php |
224 |
5 |
Phpr_Session->restore('rkpqfdh126vrgtick7s0pu6u32') |
/phproad/modules/phpr/classes/phpr_session.php |
81 |
4 |
Phpr_Session->restoreDbData(()) |
/phproad/system/initialize.php |
193 |
3 |
include('/home/garrattpublishin/public_html/phproad/system/initialize.php') |
/phproad/system/phproad.php |
24 |
2 |
include('/home/garrattpublishin/public_html/phproad/system/phproad.php') |
/boot.php |
113 |
1 |
require_once('/home/garrattpublishin/public_html/boot.php') |
/index.php |
3 |