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


PHP dieLog函数代码示例

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


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

示例1: send_email_template

function send_email_template($template, $data)
{
    $sql = "SELECT * FROM `cs_email_templates` WHERE `et_name` = '{$template}'";
    $result = mysql_query($sql) or dieLog(mysql_errno() . ": " . mysql_error() . "<BR>");
    if (mysql_num_rows($result)) {
        $emailInfo = mysql_fetch_assoc($result);
        foreach ($data as $key => $item) {
            $emailInfo['et_htmlformat'] = str_replace("[" . $key . "]", $item, stripslashes($emailInfo['et_htmlformat']));
            $emailInfo['et_textformat'] = str_replace("[" . $key . "]", $item, stripslashes($emailInfo['et_textformat']));
            $emailInfo['et_subject'] = str_replace("[" . $key . "]", $item, stripslashes($emailInfo['et_subject']));
        }
        $mail = new PHPMailer();
        $mail->From = $emailInfo['et_from'];
        $mail->FromName = $emailInfo['et_from_title'];
        $mail->Subject = $emailInfo['et_subject'];
        $mail->Host = "smtp.etelegate.com";
        $mail->Mailer = "smtp";
        // HTML body
        $body = $emailInfo['et_htmlformat'];
        // Plain text body (for mail clients that cannot read HTML)
        $text_body = $emailInfo['et_textformat'];
        $mail->Body = $body;
        $mail->AltBody = $text_body;
        $mail->AddAddress($data["email"], $data["full_name"]);
        if (!$mail->Send()) {
            echo "There has been a mail error sending to " . $row["email"] . "<br>";
        }
        // Clear all addresses and attachments for next loop
        $mail->ClearAddresses();
        $mail->ClearAttachments();
    } else {
        die('Error: Email Template Not Found');
    }
}
开发者ID:juliogallardo1326,项目名称:proc,代码行数:34,代码来源:emailtemplates.php

示例2: smart_updateMarkup

function smart_updateMarkup($values, $action)
{
    global $companyInfo;
    $userid = $values['append'];
    $res_disc = $_POST['res_disc_' . $userid];
    $res_trans = $_POST['res_trans_' . $userid];
    $sql = "select merchant_contract_agree,cb_ID\n\t\t\tFROM \n\t\t\t\tcs_companydetails as cd\n\t\t\tLEFT JOIN \n\t\t\t\tcs_entities as ce ON (cd.userId = ce.en_type_ID  AND ce.en_type = 'merchant')\n\t\t\tLEFT JOIN \n\t\t\t\tcs_entities_affiliates as ea ON (ea.ea_en_ID = ce.en_ID)\n\t\t\tLEFT JOIN \n\t\t\t\tcs_company_banks as cb ON (cb.userId = cd.userId AND cb.bank_id = 0)\n\t\t\tWHERE\n\t\t\t\tea.ea_affiliate_ID = '" . $companyInfo['en_ID'] . "' and cd.userId = '{$userid}'";
    $result = sql_query_read($sql) or dieLog(mysql_error() . " ~ {$sql}");
    if (!mysql_num_rows($result)) {
        return array("action" => "Merchant Not Found.", "status" => "fail");
    }
    $markupInfo = mysql_fetch_assoc($result);
    if ($markupInfo['merchant_contract_agree']) {
        return array("action" => "Merchant Already Signed Contract. If you would like more information, please contact the Sales Department.", "status" => "fail");
    }
    if (!$markupInfo['cb_ID']) {
        $sql = "insert into cs_company_banks set userId = '" . intval($userid) . "',bank_id=0;";
        $result = sql_query_write($sql) or dieLog(mysql_error() . " ~ {$sql}");
        $cb_ID = mysql_insert_id();
    } else {
        $cb_ID = $markupInfo['cb_ID'];
    }
    $update = array('default' => array('Processor' => array('disct' => $res_disc, 'trans' => $res_trans)));
    if (etel_update_serialized_field('cs_company_banks', 'cb_config', " cb_ID = '{$cb_ID}'", $update)) {
        return array("action" => "Merchant Rates Updated Successfully.", "status" => "success");
    }
    return array("action" => "Error, Please contact support.", "status" => "fail");
}
开发者ID:juliogallardo1326,项目名称:proc,代码行数:28,代码来源:Portfolio2.php

示例3: sites_getSiteInfo

function sites_getSiteInfo($site_id)
{
    $site_id = quote_smart($site_id);
    $sql = "\n\t\tSELECT\n\t\t\t*\n\t\tFROM\n\t\t\tcs_company_sites\n\t\tWHERE\n\t\t\tcs_id = '{$site_id}';\n\t";
    $res = sql_query_read($sql) or dieLog(mysql_error() . "<pre>{$sql}</pre>");
    return mysql_fetch_assoc($res);
}
开发者ID:juliogallardo1326,项目名称:proc,代码行数:7,代码来源:db.sites.php

示例4: ch_check_previous_decline

function ch_check_previous_decline($transInfo, $hours = 24)
{
    return 0;
    $sql = "\n\t\tSELECT \n\t\t\t*\n\t\tFROM \n\t\t\t`cs_transactiondetails`\n\t\tWHERE \n\t\t\t`bankaccountnumber` = '" . etelEnc($transInfo['bankaccountnumber']) . "' \n\t\t\tAND transactionDate > DATE_SUB(Now(),Interval {$hours} HOUR)\n\t\t\tAND (`status` != 'A' or `cancelstatus` = 'Y' or `td_is_chargeback`=1) \n\t\t\tAND (`td_bank_recieved` = 'yes' or `td_bank_recieved` = 'fraudscrubbing')\n\t\t";
    $result = sql_query_read($sql) or dieLog(mysql_errno() . ": " . mysql_error() . "<pre>{$sql}</pre>");
    $numrows = mysql_num_rows($result);
    return $numrows > 0;
}
开发者ID:juliogallardo1326,项目名称:proc,代码行数:8,代码来源:int.check.php

示例5: get_entity_id_by_name

 function get_entity_id_by_name($type, $name)
 {
     $type = quote_smart($type);
     $name = quote_smart($name);
     $sql = "\n\t\t\tSELECT\n\t\t\t\tet_ID\n\t\t\tFROM\n\t\t\t\tcs_entities\n\t\t\tWHERE\n\t\t\t\tet_type = '{$type}'\n\t\t\t\tAND et_username = '{$name}'\n\t\t";
     $res = sql_query_read($sql) or dieLog(mysql_error() . "<pre>{$sql}</pre>");
     $r = mysql_fetch_assoc($res);
     return $r['et_ID'];
 }
开发者ID:juliogallardo1326,项目名称:proc,代码行数:9,代码来源:entities.class.php

示例6: get_page_summary

 function get_page_summary($date_from, $date_to)
 {
     $date_from = date("Y-m-d 00:00:00", $date_from);
     $date_to = date("Y-m-d 23:59:59", $date_to);
     $sql = "\n\t\t\tSELECT\t\n\t\t\t\tiv_page_name,\n\t\t\t\tcount(*) AS views\n\t\t\tFROM\n\t\t\t\tcs_ivr_log\n\t\t\tWHERE\n\t\t\t\tiv_datetime BETWEEN '{$date_from}' AND '{$date_to}'\n\t\t\tGROUP BY\n\t\t\t\tiv_page_name\n\t\t\tORDER BY\n\t\t\t\tLOWER(iv_page_name) ASC\n\t\t";
     $res = sql_query_read($sql) or dieLog(mysql_error() . "<pre>{$sql}</pre>");
     $sum = array();
     while ($r = mysql_fetch_assoc($res)) {
         $sum[] = $r;
     }
     return $sum;
 }
开发者ID:juliogallardo1326,项目名称:proc,代码行数:12,代码来源:ivr.class.php

示例7: bank_ChooseSupported

function bank_ChooseSupported($bk_trans_types, $en_ID, $suggested_bank = NULL)
{
    $sql = "SELECT * FROM cs_bank as bk left join cs_company_banks as cb on cb.bank_id = bk.bank_id \n\t\t\tWhere cb.cb_en_ID = '{$en_ID}' and bk.bk_trans_types = '{$bk_trans_types}'\n\t;";
    $bank_details = sql_query_read($sql) or dieLog(mysql_error() . "<p>{$sql}</p>");
    $list = array();
    while ($r = mysql_fetch_assoc($bank_details)) {
        if ($r['bank_id']) {
            $chosen_bank = $r['bank_id'];
        }
        $list['banks'][$r['bank_id']] = $r;
    }
    if ($list['banks'][$suggested_bank]) {
        $chosen_bank = $suggested_bank;
    }
    $list['chosen'] = $chosen_bank;
    return $list;
}
开发者ID:juliogallardo1326,项目名称:proc,代码行数:17,代码来源:db.bank.php

示例8: smart_updateMarkup

function smart_updateMarkup($values, $action, $updateall = false)
{
    global $curUserInfo;
    $en_ID = $values['append'];
    if ($updateall) {
        $res_disc = $_POST['default_disc'];
        $res_trans = $_POST['default_trans'];
    } else {
        $res_disc = $_POST['res_disc_' . $userid];
        $res_trans = $_POST['res_trans_' . $userid];
    }
    $sql = "select cb_ID,cb_config\n\t\t\tFROM \n\t\t\t\tcs_entities as ce\n\t\t\tLEFT JOIN \n\t\t\t\tcs_entities_affiliates as ea ON (ea.ea_en_ID = ce.en_ID)\n\t\t\tLEFT JOIN \n\t\t\t\tcs_company_banks as cb ON (ce.en_ID = cb.cb_en_ID AND cb.bank_id = 0)\n\t\t\tWHERE\n\t\t\t\tea.ea_affiliate_ID = '" . $curUserInfo['en_ID'] . "'";
    if ($en_ID || !$updateall) {
        $sql .= " and ce.en_ID = '{$en_ID}'";
    }
    $markupResult = sql_query_read($sql) or dieLog(mysql_error() . " ~ {$sql}");
    if (!mysql_num_rows($markupResult)) {
        return array("action" => "Affiliate(s) Not Found.", "status" => "fail");
    }
    while ($markupInfo = mysql_fetch_assoc($markupResult)) {
        if (!$markupInfo['cb_ID']) {
            $sql = "insert into cs_company_banks set cb_en_ID = '" . intval($markupInfo['merchant_en_ID']) . "',bank_id=0;";
            $result = sql_query_write($sql) or dieLog(mysql_error() . " ~ {$sql}");
            $cb_ID = mysql_insert_id();
        } else {
            $cb_ID = $markupInfo['cb_ID'];
            $markupInfo['cb_config'] = etel_unserialize($markupInfo['cb_config']);
        }
        $update = array('default' => array('Reseller' => array('disct' => $res_disc, 'trans' => $res_trans, 'en_ID' => $curUserInfo['en_ID'])));
        if ($updateall && $markupInfo['cb_config']['default']['Reseller']) {
            $update = NULL;
        }
        if ($update) {
            $updated = etel_update_serialized_field('cs_company_banks', 'cb_config', " cb_ID = '{$cb_ID}'", $update);
            if (!$updateall) {
                if ($updated) {
                    return array("action" => "Merchant Rates Updated Successfully.", "status" => "success");
                }
                return array("action" => "Error, Please contact support.", "status" => "fail");
            }
        }
    }
    return array("action" => "Merchant(s) Rates Updated Successfully.", "status" => "success");
}
开发者ID:juliogallardo1326,项目名称:proc,代码行数:44,代码来源:manage_affiliate.php

示例9: get_merchant_quick_status

function get_merchant_quick_status($id)
{
    $sql = "SELECT cd.userId, companyname,  \n\t\tsum( amount*(status='A') ) AS Sales, \n\t\tsum( amount*(status='A' AND transactionDate > now() - interval 1 DAY)) AS Sales_Today, \n\t\tsum( amount*(status='A' AND transactionDate > now() - interval cd_payperiod DAY)) AS Sales_ThisPeriod, \n\t\tsum( amount*(status='A' AND transactionDate between now() - interval cd_payperiod*2 DAY AND now() - interval cd_payperiod DAY )) AS Sales_LastPeriod, \n\t\tsum( amount*(status='A' AND transactionDate between now() - interval cd_payperiod*3 DAY AND now() - interval cd_payperiod*2 DAY )) AS Sales_Last2Period, \n\t\tsum( amount ) AS Total, \n\t\tcount(*) AS Total_Cnt,\n\t\tsum( amount*(cancelstatus='Y') ) AS Refunds, \n\t\tmax( `transactionDate` ) AS last_transaction, \n\t\tmin( `transactionDate` ) AS first_transaction, \n\t\t(UNIX_TIMESTAMP( max( `transactionDate` ) ) - UNIX_TIMESTAMP( min( `transactionDate` ) )) / ( 24 *60 *60 )+1 AS Days_Processing\n\t\t\n\t\tFROM `cs_companydetails` AS cd\n\t\tLEFT JOIN `cs_transactiondetails` AS td ON td.`userId` = cd.`userId`\n\t\twhere cd.`userId` = '{$id}'\n\t\tGROUP BY cd.`userId`\n\t\tLIMIT 1";
    $result = mysql_query($sql) or dieLog(mysql_errno() . ": " . mysql_error() . " ~ {$sql}");
    $list = mysql_fetch_assoc($result);
    $score = array();
    $score['actual'] = 0;
    $score['possible'] = 0;
    $score['summmary'] = "Score Summary:\n";
    // Is processing?
    if ($list['Total_Cnt'] && $list['Days_Processing'] > 0) {
        $avg = $list['Total'] / $list['Days_Processing'];
        if ($avg > 0) {
            $cur_score = $list['Sales_Today'] / $avg;
            $score['summmary'] .= "Today Company is processing at %" . formatMoney($cur_score * 100) . " of Daily Average.\n";
            if ($cur_score > 1) {
                $cur_score = 1;
            }
            $score['possible'] += 30;
            $score['actual'] += intval(30 * $cur_score);
        }
        $tot = $list['Sales_ThisPeriod'] + $list['Sales_LastPeriod'] + $list['Sales_Last2Period'];
        if ($tot) {
            $cur_score = $list['Sales_ThisPeriod'] * 3 / ($list['Sales_ThisPeriod'] + $list['Sales_LastPeriod'] + $list['Sales_Last2Period']);
            $score['summmary'] .= "For This Sales Period, Company is processing at %" . formatMoney($cur_score * 100) . " of 3 Period Average.\n";
            if ($cur_score > 1) {
                $cur_score = 1;
            }
            $score['possible'] += 50;
            $score['actual'] += intval(50 * $cur_score);
        }
    }
    $score['percent'] = 0;
    if ($score['possible']) {
        $score['percent'] = 100 * formatMoney($score['actual'] / $score['possible']);
    }
    return $score;
}
开发者ID:juliogallardo1326,项目名称:proc,代码行数:38,代码来源:report.php

示例10: smart_issueRefund

function smart_issueRefund($values, $action)
{
    global $adminInfo;
    $sql = "Select * FROM `cs_callnotes` WHERE note_id = '" . $values['append'] . "'";
    $result = sql_query_read($sql) or dieLog(mysql_error() . " ~ {$sql}");
    $callNoteInfo = mysql_fetch_assoc($result);
    if ($adminInfo['li_level'] == 'full') {
        require_once '../includes/int.refund.php';
        $sql = "Select * FROM `cs_callnotes` WHERE note_id = '" . $values['append'] . "'";
        $result = sql_query_read($sql) or dieLog(mysql_error() . " ~ {$sql}");
        $callNoteInfo = mysql_fetch_assoc($result);
        $sql = "Select * from `cs_transactiondetails` where transactionId = '" . $callNoteInfo['transaction_id'] . "'";
        $result = sql_query_read($sql) or dieLog(mysql_error() . " ~ {$sql}");
        $transInfo = mysql_fetch_assoc($result);
        $response = execute_refund($transInfo, $callNoteInfo['service_notes'] . ": " . $callNoteInfo['customer_notes']);
        $error_msg = "success";
        if ($response['success'] == false) {
            $error_msg = "ERROR: Refund Not successful ~ " . $response['errormsg'];
        }
        return array("action" => "Transaction ID " . $transInfo['reference_number'] . " refund attempted:", "status" => "{$error_msg}");
    }
    return array("action" => "Transaction ID " . $transInfo['reference_number'] . " refund attempted:", "status" => "failed.  insufficient privilages.");
}
开发者ID:juliogallardo1326,项目名称:proc,代码行数:23,代码来源:refundrequests_Smart.php

示例11: get_BillingInfo

 function get_BillingInfo($wallet_id, $wallet_pass, &$transInfo)
 {
     $pass = $this->encrypt_password($pass);
     if ($this->mode == "Live") {
         $tran_table = "cs_transactiondetails";
     } else {
         $tran_table = "cs_test_transactiondetails";
     }
     $sql = "\n\t\t\tSELECT\n\t\t\t\tname,\n\t\t\t\tsurname,\n\t\t\t\taddress,\n\t\t\t\tcity,\n\t\t\t\tphonenumber,\n\t\t\t\tstate,\n\t\t\t\tzipcode,\n\t\t\t\tcountry,\n\t\t\t\temail,\n\t\t\t\tMAX(transactiondate)\n\t\t\tFROM\n\t\t\t\t{$tran_table}\n\t\t\tWHERE\n\t\t\t\tLOWER(td_gcard) = LOWER('{$wallet_id}')\n\t\t\t\tAND\tLOWER(td_gcardpass) = LOWER('{$wallet_pass}')\n\t\t\tGROUP BY td_gcard,td_gcardpass\n\t\t";
     $res = sql_query_read($sql) or dieLog(mysql_error() . "<pre>{$sql}</pre>");
     if ($prev_trans = mysql_fetch_assoc($res)) {
         $transInfo['firstname'] = $prev_trans['name'];
         $transInfo['lastname'] = $prev_trans['surname'];
         $transInfo['address'] = $prev_trans['address'];
         $transInfo['city'] = $prev_trans['city'];
         $transInfo['phonenumber'] = $prev_trans['phonenumber'];
         $transInfo['state'] = $prev_trans['state'];
         $transInfo['zipcode'] = $prev_trans['zipcode'];
         $transInfo['country'] = $prev_trans['country'];
         $transInfo['email'] = $prev_trans['email'];
         $transInfo['td_gcard'] = $wallet_id;
         $transInfo['td_gcardpass'] = $wallet_pass;
     }
 }
开发者ID:juliogallardo1326,项目名称:proc,代码行数:24,代码来源:banks.gkard.php

示例12: mysql_query

 $min_ticket_amt = $arr_qry_company['min_ticket_amt'];
 $goods_list = $arr_qry_company['goods_list'];
 $volume_last_month = $arr_qry_company['volume_last_month'];
 $volume_prev_30days = $arr_qry_company['volume_prev_30days'];
 $volume_prev_60days = $arr_qry_company['volume_prev_60days'];
 $totals = $arr_qry_company['totals'];
 $forecast_volume_1month = $arr_qry_company['forecast_volume_1month'];
 $forecast_volume_2month = $arr_qry_company['forecast_volume_2month'];
 $forecast_volume_3month = $arr_qry_company['forecast_volume_3month'];
 $current_anti_fraud_system = $arr_qry_company['current_anti_fraud_system'];
 $customer_service_program = $arr_qry_company['customer_service_program'];
 $customer_service_phone = $arr_qry_company['customer_service_phone'];
 $refund_policy = $arr_qry_company['refund_policy'];
 $urls = "";
 $sql = "SELECT cs_URL FROM `etel_dbsmain`.`cs_company_sites` WHERE `cs_gatewayId` = " . $_SESSION["gw_id"] . " AND `cs_company_id` = '{$company_id}'  AND cs_hide = '0'";
 $result = mysql_query($sql, $cnn_cs) or dieLog(mysql_errno() . ": " . mysql_error() . "<BR>");
 while ($url = mysql_fetch_assoc($result)) {
     $urls .= "<p><a href='" . $url['cs_URL'] . "' >" . $url['cs_URL'] . "</a></p>";
 }
 $merchant_name = $arr_qry_company['merchantName'];
 $toll_free_number = $arr_qry_company['tollFreeNumber'];
 $retrieval_number = $arr_qry_company['retrievalNumber'];
 $security_number = $arr_qry_company['securityNumber'];
 $processor = $arr_qry_company['processor'];
 $billing_descriptor = $arr_qry_company['billingdescriptor'];
 $charge_back = $arr_qry_company['chargeback'];
 $credit = $arr_qry_company['credit'];
 $transaction_fee = $arr_qry_company['transactionfee'];
 $voice_authorization_fee = $arr_qry_company['voiceauthfee'];
 $discount_rate = $arr_qry_company['discountrate'];
 $reserve = $arr_qry_company['reserve'];
开发者ID:juliogallardo1326,项目名称:proc,代码行数:31,代码来源:downloadDocumentsNext.php

示例13: cs_companydetails

     exit;
 } else {
     $qry_insert_user = " insert into cs_companydetails (username,password,companyname,email,volumenumber,activeuser,transaction_type,how_about_us,reseller_other,reseller_id,date_added,send_ecommercemail,url1,gateway_id,block_virtualterminal)";
     $qry_insert_user .= " values('{$username}','{$password}','{$companyname}','{$email}','{$volumeNumber}',0,'{$transaction_type}','rsel','{$resellerName}',{$resellerLogin},'{$current_date_time}',{$send_ecommercemail},'{$url}','{$gateway_id}',{$block_virtual_terminal})";
     //	print $qry_insert_user;
     if (!($show_sql = mysql_query($qry_insert_user))) {
         print mysql_errno() . ": " . mysql_error() . "<BR>";
         print "Cannot execute query <br>";
         exit;
     } else {
         $is_success = 0;
         $user_id = mysql_insert_id();
         $user_reference_num = func_User_Ref_No($user_id);
         $is_success = func_update_single_field('cs_companydetails', 'ReferenceNumber', $user_reference_num, NULL, 'userId', $user_id, $cnn_cs);
         $sql = "Insert into cs_entities\n\t\t\t\tset \n\t\t\t\t\ten_username = '" . $username . "',\n\t\t\t\t\ten_password = MD5('" . ($username . $password) . "'),\n\t\t\t\t\ten_email = '" . quote_smart($email) . "',\n\t\t\t\t\ten_gateway_ID = '" . quote_smart($gateway_id) . "',\n\t\t\t\t\ten_type = 'merchant',\n\t\t\t\t\ten_signup = NOW(),\n\t\t\t\t\ten_type_id = '" . quote_smart($user_id) . "'\n\t\t\t\t";
         sql_query_write($sql) or dieLog(mysql_error() . " ~ {$str_qry}");
         $letterTempate = 'merchant_referral_letter';
         $emailData["email"] = $email_to;
         $emailData["reselleremail"] = $resellerInfo['reseller_email'];
         $emailData["full_name"] = "Merchant";
         $emailData["companyname"] = $companyname;
         $emailData["resellername"] = $resellerInfo['reseller_companyname'];
         $emailData["username"] = $username;
         $emailData["password"] = $password;
         $emailData["Reference_ID"] = $user_reference_num;
         send_email_template($letterTempate, $emailData);
         $emailInfo = get_email_template($letterTempate, $emailData);
         /*************************************************************************/
         $msgtodisplay = "New merchant registered successfully. Confirmation Email sent to '" . $email . "'";
         $outhtml = "Y";
         message($msgtodisplay, $outhtml, $headerInclude);
开发者ID:juliogallardo1326,项目名称:proc,代码行数:31,代码来源:updateMerchant.php

示例14: header

// QID, visited, date, question
$dData['stylesheet'] = "orca/okb_style.css";
include "orca/okb_lang_en.php";
/* ***** Do not cache this page ******************************* */
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
/* ***** MySQL Setup ****************************************** */
$dData['tableq'] = $dData['tablename'] . "q";
$dData['tablec'] = $dData['tablename'] . "c";
$db = mysql_connect($dData['hostname'], $dData['username'], $dData['password']) or dieLog("Could not connect to the MySQL server!");
mysql_select_db($dData['database'], $db) or dieLog("Could not connect to the database!");
$create = mysql_query("CREATE TABLE IF NOT EXISTS `{$dData['tableq']}` (\n  `category` text,\n  `subcategory` text,\n  `QID` int(11),\n  `date` text,\n  `question` text,\n  `answer` text,\n  `keywords` text,\n  `online` tinytext,\n  `visited` int(11)\n) TYPE=MyISAM;") or dieLog("Could not create Questions table!");
$create = mysql_query("CREATE TABLE IF NOT EXISTS `{$dData['tablec']}` (\n  `category` text,\n  `subcategory` text\n) TYPE=MyISAM;") or dieLog("Could not create Categories table!");
/* ***** Functions ******************************************** */
function dateStamp($time)
{
    global $pageEncoding, $lang, $sData;
    switch ($pageEncoding) {
        case 1:
            $timeStr = utf8_encode(strftime($sData['dateformat'], $time));
            break;
        case 2:
            $timeStr = strftime($sData['dateformat'], $time);
            break;
        default:
            $timeStr = @htmlentities(strftime($sData['dateformat'], $time), ENT_COMPAT, $lang['charset']);
            break;
    }
开发者ID:juliogallardo1326,项目名称:proc,代码行数:31,代码来源:knowledgebase-control.php

示例15: quote_smart

require_once "includes/dbconnection.php";
$headerInclude = "transactions";
include 'includes/header.php';
require_once 'includes/function.php';
include 'includes/function1.php';
$str_currency = "";
$sessionlogin = $companyInfo['userId'];
$str_company_id = $companyInfo['userId'];
//$show_sql =mysql_query("select *  from cs_companydetails where userid=$str_company_id",$cnn_cs);
//$companyInfo = mysql_fetch_assoc($show_sql);
$updateMsgOne = "This form will create a One Time Payment:";
$updateMsgRecur = "This form will create a Price Point:";
if ($_GET['rd_subName']) {
    $rd_subName = quote_smart($_GET['rd_subName']);
    $sql = "SELECT * FROM `cs_rebillingdetails` WHERE `rd_subName` = '{$rd_subName}' AND `company_user_id` = " . $str_company_id;
    $result = mysql_query($sql, $cnn_cs) or dieLog(mysql_error());
    $subAcc = mysql_fetch_assoc($result);
    if ($subAcc) {
        $subAccountName = $subAcc['rd_subName'];
        $updateMsgOne = "This form will update account '{$subAccountName}' as a One Time Payment:";
        $updateMsgRecur = "This form will update account '{$subAccountName}':";
    }
}
$str_current_date = func_get_current_date();
$i_to_year = substr($str_current_date, 0, 4);
$i_to_month = substr($str_current_date, 5, 2);
$i_to_day = substr($str_current_date, 8, 2);
?>
<script type="text/javascript" src="<?php 
echo $etel_domain_path;
?>
开发者ID:juliogallardo1326,项目名称:proc,代码行数:31,代码来源:recurringTransaction.php


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