Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bug fix log and gen table

  • Loading branch information...
commit b2cc2bd4a960d916793520d37d0285a2dea137b7 1 parent 37f5907
@fborraccetti authored
View
9 application/core/MY_Exceptions.php
@@ -41,7 +41,14 @@ function log_exception($severity, $message, $filepath, $line)
$CI =& get_instance();
log_message('error', 'Severity: '.$severity.' --> '.$message. ' '.$filepath.' '.$line, TRUE);
$CI->load->model("admin/logger");
- $message = date("d/m/Y H:i:s",time()). ' Severity: '.$severity.' --> '.$message. ' '.$filepath.' '.$line.' url: '.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];;
+ if(!isset($_SERVER['SERVER_NAME']))
+ $_SERVER['SERVER_NAME']="local";
+ if(!isset($_SERVER['REQUEST_URI']))
+ $_SERVER['REQUEST_URI']="php-cli";
+
+ $message = date("d/m/Y H:i:s",time()). ' Severity: '.$severity.' --> '.$message. ' '.$filepath.' '.$line.' url: '.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
+ $CI->db = null;
+ $CI->db = $CI->load->database("default",TRUE);
$CI->logger->line($message);
/*
View
4 application/helpers/my_text_helper.php
@@ -534,7 +534,7 @@ function reverseConvertSize($str)
return $bytes;
}
-
+/*
//esempio di chiamata della funzione
//gen_table($result,"id_page","title",array("active","pub_date","last_mod"),"/cms/pagine",array("Titolo","Pubblicato","Data di pubblicazione","Ultima modifica"));
function gen_table($items,$id,$title,$cols,$module,$thead=null){
@@ -649,7 +649,7 @@ function gen_table_a($items,$id,$title,$cols,$action,$actionname){
}
-
+*/
function _sanitize_filename($name) {
$special_chars = array ("#","$","%","^","&","*","!","~","","\"","","'","=","?","/","[","]","(",")","|","<",">",";","\\",",",".");
$name = preg_replace("/^[.]*/","",$name); // remove leading dots
View
4 euphoria/admin/assets/css/edit.css
@@ -17,6 +17,10 @@
opacity: 0.5; */
}
+td{
+ white-space: nowrap !important;
+}
+
#fullloading .fullloadingcnt {
background: none;
View
2  euphoria/admin/models/bug.php
@@ -117,7 +117,7 @@ function get($limit=20, $offset=0,$field=null){
order by ordine,last_mod DESC
LIMIT ".$offset.", ".$limit;
$que = "select ".$field." FROM (`bugs`) ".$where."
- order by last_mod DESC
+ ORDER BY FIELD(stato,'in lavorazioni','aperto','chiuso') ASC,last_mod DESC
LIMIT ".$offset.", ".$limit;
$q=$this->db->query($que);
return $q->result_array();
View
1  euphoria/admin/views/header.php
@@ -28,6 +28,7 @@
<script type="text/javascript" src="<?php echo base_url();?>/euphoria/admin/assets/js/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>/euphoria/admin/assets/js/daterangepicker.jQuery.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>/euphoria/admin/assets/js/date.js"></script>
+ <script type="text/javascript" src="<?php echo base_url();?>/euphoria/admin/assets/js/jquery.base64.min.js"></script>
<!--
<link rel="stylesheet" href="<?php echo base_url();?>/themes/admin/multiselect/css/common.css" type="text/css" /> -->
Please sign in to comment.
Something went wrong with that request. Please try again.