display_information("Upgrading from 0.1.6 to 0.1.7"); execute_sql_file("sql/017.sql", $dbprefix, $con); $current_version = '0.1.7'; } if ($current_version == '0.1.7') { display_information("Upgrading from 0.1.7 to 0.1.8"); execute_sql_file("sql/018.sql", $dbprefix, $con); $current_version = '0.1.8'; } if ($current_version == '0.1.8') { display_information("Upgrading from 0.1.8 to 0.1.9"); execute_sql_file("sql/019.sql", $dbprefix, $con); $current_version = '0.1.9'; } if ($current_version == '0.1.9') { display_information("Upgrading from 0.1.9 to 0.2.0"); execute_sql_file("sql/020.sql", $dbprefix, $con); $current_version = '0.2.0'; } } ?> <div class="alert alert-info" style="margin-top: 20px; padding: 0.7em;"> <?php echo $display_message; ?> </div> <div class="form_style"> <a class="btn btn-success square-btn-adjust" title="Goto Application" href="<?php echo application_url() . "index.php/login/cleardata"; ?>
display_information("Upgrading from 0.2.0 to 0.2.1"); execute_sql_file("sql/021.sql", $dbprefix, $con); $current_version = '0.2.1'; } if ($current_version == '0.2.1') { display_information("Upgrading from 0.2.1 to 0.2.2"); execute_sql_file("sql/022.sql", $dbprefix, $con); $current_version = '0.2.2'; } if ($current_version == '0.2.2') { display_information("Upgrading from 0.2.2 to 0.2.3"); execute_sql_file("sql/023.sql", $dbprefix, $con); $current_version = '0.2.3'; } if ($current_version == '0.2.3') { display_information("Upgrading from 0.2.3 to 0.2.4"); execute_sql_file("sql/024.sql", $dbprefix, $con); $current_version = '0.2.4'; } } ?> <div class="alert alert-info" style="margin-top: 20px; padding: 0.7em;"> <?php echo $display_message; ?> </div> <div class="form_style"> <div class="alert alert-success"> Use Username / Password : admin/admin to login </div> <a class="btn btn-success square-btn-adjust" title="Goto Application" href="<?php echo application_url() . "index.php/login/cleardata"; ?>
} break; case 'log-in': case '': if (!check_logged_in()) { display_login_form($action); } break; case 'show-all-lists': display_items('All Lists', get_all_lists(), 'information', 'show-archive', ''); break; case 'show-archive': display_items('Archive For ' . get_list_name($HTTP_GET_VARS['id']), get_archive($HTTP_GET_VARS['id']), 'view-html', 'view-text', ''); break; case 'information': display_information($HTTP_GET_VARS['id']); break; } //all other actions require user to be logged in if (check_logged_in()) { switch ($action) { case 'account-settings': display_account_form(get_email(), get_real_name(get_email()), get_mimetype(get_email())); break; case 'show-other-lists': display_items('Unsubscribed Lists', get_unsubscribed_lists(get_email()), 'information', 'show-archive', 'subscribe'); break; case 'subscribe': subscribe(get_email(), $HTTP_GET_VARS['id']); display_items('Subscribed Lists', get_subscribed_lists(get_email()), 'information', 'show-archive', 'unsubscribe'); break;
} break; case 'log-in': case '': if (!check_logged_in()) { display_login_form($action); } break; case 'show-all-lists': display_items('All Lists', get_all_lists(), 'information', 'show-archive', ''); break; case 'show-archive': display_items('Archive For ' . get_list_name($_GET['id']), get_archive($_GET['id']), 'view-html', 'view-text', ''); break; case 'information': display_information($_GET['id']); break; default: if (!check_logged_in()) { display_login_form($action); } break; } //all other actions require user to be logged in if (check_logged_in()) { switch ($action) { case 'account-settings': display_account_form(get_email(), get_real_name(get_email()), get_mimetype(get_email())); break; case 'show-other-lists': display_items('Unsubscribed Lists', get_unsubscribed_lists(get_email()), 'information', 'show-archive', 'subscribe');
/** *Ejecuto el controlador correspondiente */ execute_controller($actual_controller); /** * Lee los filtros que se deben ejecutar despues del procesamiento de la variable config y delega trabajo a archivo filtros.php * En caso de que no haya filtros asignados no delega ningun trabajo */ if (count($filtros_despues) > 0) { execute_filters($filtros_despues); } } else { //Analizo si se pasa por lo menos un parametros (nombre cron), el primer parametros es el nombre del archivo por eso //pregunta por >= 2 if ($argc >= 2) { require PATHFRA . 'modules/cron.php'; execute_cron_controller($argv); } else { general_error('Cron Controller', 'There isent define any cron controller name'); } } /* * Si se esta calculando el tiempo, realiza el calculo y envia la respuesta */ if ($performance != NULL) { $performance->terminate(); $mensaje = 'The execution time of the APP is: ' . $performance->elapsed(); $titulo = 'Performance'; //Muestra la informacion al usuario display_information($titulo, $mensaje); }