当前位置: 首页>>代码示例>>PHP>>正文


PHP debug_message函数代码示例

本文整理汇总了PHP中debug_message函数的典型用法代码示例。如果您正苦于以下问题:PHP debug_message函数的具体用法?PHP debug_message怎么用?PHP debug_message使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了debug_message函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: require_once

 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 * http://www.gnu.org/copyleft/gpl.html
 *
 */
require_once('includes/common.php');
require_once('includes/SI_ProjectStatus.php');

checkLogin("admin");

$project_status = new SI_ProjectStatus();
$project_statuses = $project_status->retrieveSet();
if($project_statuses === FALSE){
	$error_msg .= "Error getting project statuses!\n";
	debug_message($project_status->getLastError());
}

$title = "Project Status Administration";

require('header.php') ?>
<div class="tableContainer">
<a href="javascript:;" class="tCollapse" onclick="toggleGrid(this)"><img src="images/arrow_down.jpg" alt="Hide table" />Project Statuses</a><div>
	<div class="gridToolbar">
		  <a href="project_status.php?mode=add" style="background-image:url(images/new_invoice.png);">New Project Status</a>
	</div>
		<table border="0" cellspacing="0" cellpadding="0">
			<tr>
				<th><a href="" onclick="return sortTable('bodyId', 0, 1, false)">ID</a></th>
				<th><a href="" onclick="return sortTable('bodyId', 1, 1, false)">Name</a></th>
				<th><a href="" onclick="return sortTable('bodyId', 2, 1, false)">Completed</a></th>
开发者ID:nanoprime,项目名称:sureinvoice,代码行数:31,代码来源:project_statuses.php

示例2: strtolower

				$error_msg .= "Error adding user transaction";
				debug_message($ut->getLastError());
			}else{
				$check->trans_id = $ut->id;
				if($check->update() === FALSE){
					$error_msg .= "Error updating transaction id for check";
					debug_message($check->getLastError());
				}
			}
			
			if(empty($error_msg)){
				goBack();
			}
		}else{
			$error_msg .= "Error adding Check!\n";
			debug_message($check->getLastError());
		}
	}
}

$url = $_SERVER['PHP_SELF']."?user_id=".$_REQUEST['user_id']."&";
$_REQUEST['detail'] = strtolower(substr($_REQUEST['detail'],0,1)) == "y" ? TRUE : FALSE;
$title = "Create Check";
$total_time = 0;

require('header.php') ?>
<FORM ACTION="<?php 
echo $_SERVER['PHP_SELF'];
?>
" METHOD="POST" NAME="chk">
<div class="tableContainer">
开发者ID:nanoprime,项目名称:sureinvoice,代码行数:31,代码来源:check.php

示例3: mode

			}else{
				$error_msg .= "Error deleting Payment Schedule!\n";
			}
		}else{
			goBack();
		}
	}
}else{
	fatal_error("Invalid mode ({$_REQUEST['mode']}) for this page!");
}

$company =& $project->getCompany();
$item_codes = $item_code->getCompanyPricedCodes($company->id);
if($item_codes === FALSE){
	$error_msg .= "Could not get item codes for company!\n";
	debug_message($item_code->getLastError());	
}
?>
<? require('header.php'); ?>
<script>
	function ItemCode(id, description, cost, price){
		this.id = id;
		this.description = description;
		this.cost = cost;
		this.price = price;	
	}
	
	var item_prices = new Array();
<?	for($i = 0; $i <= count($item_codes); $i++){
		if(!empty($item_codes[$i]->id)){
			print("item_prices[".$item_codes[$i]->id."] = new ItemCode(\"".$item_codes[$i]->id."\",\"".$item_codes[$i]->description."\", \"".$item_codes[$i]->cost."\", \"".$item_codes[$i]->price."\");\n");
开发者ID:nanoprime,项目名称:sureinvoice,代码行数:31,代码来源:payment_schedule.php

示例4: if

	if($_POST['save']){
		$company->updateFromAssocArray($_POST);
		if($company->update()){
			goBack();
		}else{
			$error_msg .= "Error updating Company!\n";
			debug_message($company->getLastError());
		}
	}
}else if($_REQUEST['mode'] == 'delete'){
	$title = "Delete Company";

	if(!$company->get($_REQUEST['id'])){
		$error_msg .= "Error retrieving company information!\n";
		debug_message($company->getLastError());
	}

	if($_POST['confirm']){
		if($_POST['confirm'] == "Yes"){
			if($company->delete($_REQUEST['id'])){
				goBack();
			}else{
				$error_msg .= "Error deleting Company!\n";
			}
		}else{
			goBack();
		}
	}
}else{
	$title = "Invalid Mode";
开发者ID:nanoprime,项目名称:sureinvoice,代码行数:30,代码来源:company.php

示例5: join

    $propertyAddress2 = join($arr_property_address2, ' ');
    $arr_property_details = array('propertyID' => $property_id, 'versionID' => 1, 'languageID' => 1, 'propertyName' => $property_name, 'propertyAddress1' => $result['address'], 'propertyAddress2' => $propertyAddress2, 'propertyDescription' => $propertyDescription, 'propertyLocality' => $ap_details[0]['locality'], 'propertyMetaTitle' => $propertyDescription, 'propertyMetaKeyword' => $propertyDescription, 'propertyMetaDescription' => $propertyDescription, 'propertyShortDescription' => $propertyDescription, 'propertySpecifications' => $property_name, 'propertyCurrentStatus' => '');
    $arr_property_prices = array('propertyID' => $property_id, 'currencyID' => 3, 'propertyPrice' => $ap_details[0]['rentAmount']);
    $app_data = array();
    // Get appointment mapping
    $app_data['app_details'] = $ap_details;
    $app_data['app_kitchens'] = $ak_details;
    $app_data['app_images'] = $ai_details;
    $app_data['app_livingroom'] = $al_details;
    $app_data['app_toilets'] = $at_details;
    $app_data['app_bedrooms'] = $ab_details;
    //$app_data['app_washdry_area'] = $aw_details;
    $attributes_map = $ob_map->get_attributes_map();
    $attributes = $ob_property->prepare_property_attributes($attributes_map, $app_data);
    $amenities_map = $ob_map->get_amenities_map();
    $amenities = $ob_property->prepare_property_amenities($amenities_map, $app_data);
    // Save all amenities
    $ob_property::save_amenities($property_id, $amenities);
    debug_message('Create data for property data.');
    $property_details_id = $ob_property::save_data('rp_property_details', $arr_property_details);
    $property_price_id = $ob_property::save_data('rp_property_price', $arr_property_prices);
    // Save all attributes
    $ob_property::save_attributes($property_id, $attributes);
    // Update the property appointment relationship
    $ob_appointment::save_data('rp_appointment_property', array('APID' => $result['appointmentID'], 'LPID' => $property_id));
    $ob_log->write("A new property with id {$property_id} is created.");
}
$app_db = NULL;
$admin_dbh = NULL;
$ob_log->write("Script execution complete.");
exit('Script execution complete.');
开发者ID:junctiontech,项目名称:dbho,代码行数:31,代码来源:index.php

示例6: debug_message

                    $error_msg .= "Error updating user rights!\n";
                    debug_message($user->getLastError());
                }
            } else {
                $error_msg .= "Error updating User!\n";
                debug_message($user->getLastError());
            }
        }
    } else {
        if ($_REQUEST['mode'] == 'delete') {
            $title = "Delete User";
            if ($user->delete($_REQUEST['id'])) {
                goBack();
            } else {
                $error_msg .= "Error deleting User!\n";
                debug_message($user->getLastError());
            }
        } else {
            $title = "Invalid Mode";
            $error_msg .= "Error: Invalid mode!\n";
        }
    }
}
$js_onLoad = "setRateType()";
require 'header.php';
?>
<script>
function setRateType(){
	var rate_type = document.user.rate_type.options[document.user.rate_type.selectedIndex].value;
	if(rate_type == 'SALARY'){
		document.user.salary.disabled = false;
开发者ID:nanoprime,项目名称:sureinvoice,代码行数:31,代码来源:user.php

示例7: debug_message

            }
            if (count($ex_ids) > 0) {
                if ($invoice->addExpenses($ex_ids, SI_EXPENSE_AGGREGATION_DESC) === FALSE) {
                    $error_msg .= "Error adding expenses to invoice!\n";
                    debug_message($invoice->getLastError());
                }
            }
            // Add the company transaction
            if (empty($error_msg)) {
                $ct = new SI_CompanyTransaction();
                $ct->amount = $invoice->getTotal();
                $ct->company_id = $invoice->company_id;
                $ct->description = "Invoice #" . $invoice->id;
                $ct->timestamp = $invoice->timestamp;
                if ($ct->add() === FALSE) {
                    $error_msg .= "Error adding company transaction!\n";
                    debug_message($ct->getLastError());
                }
                $invoice->trans_id = $ct->id;
                if ($invoice->update() === FALSE) {
                    $error_msg .= "Error updating invoice with company transaction id!\n";
                    debug_message($invoice->getLastError());
                }
            }
        } else {
            $echo("Error adding Invoice!\n");
            debug_message($invoice->getLastError());
        }
    }
}
echo "\n\nEnd of AutoInvoice.\n";
开发者ID:nanoprime,项目名称:sureinvoice,代码行数:31,代码来源:autoinvoice.php

示例8: if

	if($_POST['save']){
		$account->updateFromAssocArray($_POST);
		if($account->update()){
			goBack();
		}else{
			$error_msg .= "Error updating Account!\n";
			debug_message($account->getLastError());
		}
	}
}else if($_REQUEST['mode'] == 'delete'){
	$title = "Delete Account";

	if(!$account->get($_REQUEST['id'])){
		$error_msg .= "Error retrieving account information!\n";
		debug_message($account->getLastError());
	}

	if($_POST['confirm']){
		if($_POST['confirm'] == "Yes"){
			if($account->delete($_REQUEST['id'])){
				goBack();
			}else{
				$error_msg .= "Error deleting Account!\n";
			}
		}else{
			goBack();
		}
	}
}else{
	$title = "Invalid Mode";
开发者ID:nanoprime,项目名称:sureinvoice,代码行数:30,代码来源:account.php

示例9: SI_Config

	debug_message($task_status->getLastError());
}


$title = "Priority & Status Configuration";

if($_POST['save']){
	if(is_array($_POST['params'])){
		foreach($_POST['params'] as $param_name => $param_value){
			if(!empty($param_name)){
				$modified_config = new SI_Config();
				$modified_config->name = $param_name;
				$modified_config->value = $param_value;
				if($modified_config->update() === FALSE){
					$error_msg .= "Error updating configuration paramenter: $param_name\n";
					debug_message($modified_config->getLastError());
					break;
				}
			}
		}
	}
	if(empty($error_msg)){
		header("Location: ".getCurrentURL()."\r\n");
		exit();
	}
}

require('header.php') ?>
<form action="<?php 
echo $_SERVER['PHP_SELF'];
?>
开发者ID:nanoprime,项目名称:sureinvoice,代码行数:31,代码来源:setup_statuses.php

示例10: require_once

 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 * http://www.gnu.org/copyleft/gpl.html
 *
 */
require_once('includes/common.php');
require_once('includes/SI_ProjectPriority.php');

checkLogin("admin");

$project_priority = new SI_ProjectPriority();
$project_prioirities = SI_ProjectPriority::retrieveSet();
if($project_prioirities === FALSE){
	$error_msg .= "Error getting project priorities!\n";
	debug_message($project_priority->getLastError());
}

$title = "Project Priority Administration";

require('header.php') ?>
<div class="tableContainer">
<a href="javascript:;" class="tCollapse" onclick="toggleGrid(this)"><img src="images/arrow_down.jpg" alt="Hide table" />Project Priorities</a><div>
	<div class="gridToolbar">
		  <a href="project_priority.php?mode=add" style="background-image:url(images/new_invoice.png);">New Project Priority</a>
	</div>
<table border="0" cellspacing="0" cellpadding="0">
	<tr>
		<th><a href="" onclick="return sortTable('bodyId', 0, 1, false)">ID</a></th>
		<th><a href="" onclick="return sortTable('bodyId', 1, 1, false)">Name</a></th>
		<th><a href="" onclick="return sortTable('bodyId', 2, 1, false)">Level</a></th>
开发者ID:nanoprime,项目名称:sureinvoice,代码行数:31,代码来源:project_priorities.php

示例11: xpath2

 /**
  * Returns the node at the end of the path $path.
  * @deprecated
  * @since 0.1.4
  * @param $path The path to the node (can be an array), separated by '/' (not needed if an array)
  * @param $separator The separator between the segments, default: '/'
  * @param $root The lft of the node to be root in the query, default: 1
  * @note The path to the rootnode is only a '/', so
  * the path to a child is '/childtitle', and to a grandchild:
  * '/childtitle/grandchildtitle'
  * @return An array with the requested node's data
  */
 function xpath2($path, $separator = '/', $root = 1)
 {
     if (is_array($path)) {
         $segments = $path;
     } else {
         // split the segments
         $segments = explode($separator, $path);
     }
     // load the rootnode
     $this->db->select($this->left_col . ', ' . $this->right_col);
     $query = $this->db->get_where($this->tree_table, array($this->left_col => $root));
     if (!$query->num_rows()) {
         debug_message('xpath2() cannot find node with ' . $this->left_col . ': ' . $root . ', aborting xpath2().');
         return false;
     }
     $current_node = $query->row_array();
     // iterate the segments
     foreach ($segments as $part) {
         if ($part != null || $part != '') {
             // We have a segment, try to match it to the children
             // Almost the same as in get_children_where(), but it selects only the needed data (lft and title)
             $this->db->select('*');
             // Circumvent the db escaping to enable a subquery
             $this->db->ar_from[] = "(SELECT node.{$this->left_col},\r\nnode.{$this->title_col}, (COUNT(parent.{$this->id_col}) - (sub_tree.depth + 1)) AS depth\r\nFROM {$this->tree_table} AS node,\r\n{$this->tree_table} AS parent,\r\n{$this->tree_table} AS sub_parent,\r\n(\r\n\tSELECT node.{$this->id_col}, (COUNT(parent.{$this->id_col}) - 1) AS depth\r\n\tFROM {$this->tree_table} AS node,\r\n\t{$this->tree_table} AS parent\r\n\tWHERE node.{$this->left_col} BETWEEN parent.{$this->left_col}\r\n\t\tAND parent.{$this->right_col} AND node.{$this->left_col} = {$current_node[$this->left_col]}\r\n\tGROUP BY node.{$this->id_col}\r\n\tORDER BY node.{$this->left_col}\r\n)AS sub_tree\r\nWHERE node.{$this->left_col} BETWEEN parent.{$this->left_col} AND parent.{$this->right_col}\r\n\tAND node.{$this->left_col} BETWEEN sub_parent.{$this->left_col} AND sub_parent.{$this->right_col}\r\n\tAND sub_parent.{$this->id_col} = sub_tree.{$this->id_col}\r\nGROUP BY node.{$this->id_col}\r\nHAVING depth = 1\r\nORDER BY node.{$this->left_col}) as a";
             $this->db->where($this->title_col, $part);
             $query = $this->db->get();
             // Have we got a result?
             if (!$query->num_rows()) {
                 debug_message('xpath2() cannot find node with ' . $this->title_col . ' : ' . $part . ' in path:' . $path . ', aborting.');
                 return false;
             }
             $current_node = $query->row_array();
         }
     }
     return $this->get_node($current_node[$this->left_col]);
 }
开发者ID:kevin50406418,项目名称:nested-menu-for-codeigniter,代码行数:48,代码来源:mpttree.php

示例12: debug_echo

function debug_echo($cmd, $msg)
{
    return debug_message($cmd, $msg, 'echo');
}
开发者ID:simpl,项目名称:datapipe,代码行数:4,代码来源:messages.php

示例13: array

		} else {
			//display the project name only
			$labels[$act->_task->project_id] = $act->project_name;
		}
	}else{
		$error_msg .= "Invalid report type!\n";
	}
}
$data_array = array();
$label_array = array();
foreach($data as $key => $item){
	$data_array[] = $item;
	$label_array[] = $labels[$key];
}
	
debug_message(print_r($data_array, TRUE).print_r($label_array,TRUE));
// Create the Pie Graph.
$graph = new PieGraph(500,325);
$graph->SetShadow();

// Set A title for the plot
$graph->title->Set($title);
#$graph->title->SetFont(FF_VERDANA,FS_BOLD,18); 
$graph->title->SetColor("darkblue");
//$graph->legend->Pos(0.1,0.2);

// Create pie plot
$p1 = new PiePlot3d($data_array);
$p1->SetTheme("earth");
$p1->SetCenter(0.35, 0.6);
$p1->SetAngle(30);
开发者ID:nanoprime,项目名称:sureinvoice,代码行数:31,代码来源:graph.php

示例14: require_once

 * http://www.gnu.org/copyleft/gpl.html
 *
 */
require_once('includes/common.php');
require_once('includes/SI_User.php');

checkLogin("admin");

require_once('includes/Notify.php');

$notification = new Notification();
$notifications = $notification->retrieveSet("ORDER BY name");
if($notifications === FALSE){
	$error_msg .= "Error getting notifications!\n";
	var_dump($notification);
	debug_message($notification->getLastError());
}

$title = "Notification Administration";

require('header.php') ?>
<div class="tableContainer">
<a href="javascript:;" class="tCollapse" onclick="toggleGrid(this)"><img src="images/arrow_down.jpg" alt="Hide table" />Notifications</a><div>
	<div class="gridToolbar">
		  <a href="notification.php?mode=add" style="background-image:url(images/new_invoice.png);">New Notification</a>
	</div>
<table border="0" cellspacing="0" cellpadding="0">
	<tr>
		<th><a href="" onclick="return sortTable('bodyId', 0, 1, false)">ID</a></th>
		<th><a href="" onclick="return sortTable('bodyId', 1, 1, false)">Name</a></th>
		<th><a href="" onclick="return sortTable('bodyId', 2, 1, false)">Active</a></th>
开发者ID:nanoprime,项目名称:sureinvoice,代码行数:31,代码来源:notifications.php

示例15: exit

    $maxItems = MAXIDS;
} else {
    exit("Check " . __FILE__ . " " . __LINE__ . ", there is something wrong.");
}
$maxrec = min($num_rows - $deliveredrecords, $maxItems);
if ($num_rows - $deliveredrecords > $maxItems) {
    $cursor = (int) $deliveredrecords + $maxItems;
    $restoken = createResumToken($cursor, $extquery, $metadataPrefix);
    $expirationdatetime = gmstrftime('%Y-%m-%dT%TZ', time() + TOKEN_VALID);
} elseif (isset($args['resumptionToken'])) {
    $restoken = $args['resumptionToken'];
    // just used as an indicator
    unset($expirationdatetime);
}
if (isset($args['resumptionToken'])) {
    debug_message("Try to resume because a resumptionToken supplied.");
    $record = $res->fetch(PDO::FETCH_ASSOC, PDO::FETCH_ORI_ABS, $deliveredrecords);
}
// Record counter
$countrec = 0;
// Publish a batch to $maxrec number of records
$outputObj = new ANDS_Response_XML($args);
while ($countrec++ < $maxrec) {
    $record = $res->fetch(PDO::FETCH_ASSOC);
    if ($record === false) {
        if (SHOW_QUERY_ERROR) {
            echo __FILE__ . "," . __LINE__ . "<br />";
            print_r($db->errorInfo());
            exit;
        }
    }
开发者ID:kostastzo,项目名称:openeclass,代码行数:31,代码来源:listrecords.php


注:本文中的debug_message函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。