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


PHP _debug_array函数代码示例

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


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

示例1: execute

 function execute($cron = '')
 {
     $sql = "SELECT * from phpgw_lang WHERE app_name = 'property' AND lang='no' ORDER BY message_id ASC";
     $this->db->query($sql, __LINE__, __FILE__);
     $i = 0;
     while ($this->db->next_record()) {
         $str .= $this->db->f('message_id') . "\t";
         $str .= $this->db->f('app_name') . "\t";
         $str .= $this->db->f('lang') . "\t";
         $str .= $this->db->f('content') . "\n";
         $i++;
     }
     _debug_array($str);
     /*			   $filename= 'phpgw_no_lang';
     
     				$size=strlen($str);
     
     				$browser = CreateObject('phpgwapi.browser');
     				$browser->content_header($filename,'application/txt',$size);
     
     				echo $str;
     */
     $this->receipt['message'][] = array('msg' => $i . ' tekster lagt til');
     if (!$cron) {
         $this->confirm($execute = false);
     }
 }
开发者ID:HaakonME,项目名称:porticoestate,代码行数:27,代码来源:lag_lang_filer.php

示例2: addAccount

 function addAccount($_hookValues)
 {
     #_debug_array($_hookValues);
     $username = $_hookValues['account_lid'];
     $userPassword = $_hookValues['new_passwd'];
     #_debug_array($this->profileData);
     $imapAdminUsername = $this->profileData['imapAdminUsername'];
     $imapAdminPW = $this->profileData['imapAdminPW'];
     $folderNames = array("user.{$username}", "user.{$username}.Trash", "user.{$username}.Sent");
     // create the mailbox
     if ($mbox = @imap_open($this->getMailboxString(), $imapAdminUsername, $imapAdminPW)) {
         // create the users folders
         foreach ($folderNames as $mailBoxName) {
             if (imap_createmailbox($mbox, imap_utf7_encode("{" . $this->profileData['imapServer'] . "}{$mailBoxName}"))) {
                 if (!imap_setacl($mbox, $mailBoxName, $username, "lrswipcd")) {
                     # log error message
                 }
             }
         }
         imap_close($mbox);
     } else {
         _debug_array(imap_errors());
         return false;
     }
     // subscribe to the folders
     if ($mbox = @imap_open($this->getMailboxString(), $username, $userPassword)) {
         imap_subscribe($mbox, $this->getMailboxString('INBOX'));
         imap_subscribe($mbox, $this->getMailboxString('INBOX.Sent'));
         imap_subscribe($mbox, $this->getMailboxString('INBOX.Trash'));
         imap_close($mbox);
     } else {
         # log error message
     }
 }
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:34,代码来源:class.cyrusimap.inc.php

示例3: __construct

 public function __construct($wsdl, $options, $userid, $debug = false)
 {
     if ($debug) {
         $this->debug = true;
     }
     try {
         $BrukerService = new BrukerService($wsdl, $options);
     } catch (Exception $e) {
         if ($this->debug) {
             echo $e->getMessage();
             echo '<br>wsdl: ' . $wsdl;
             echo '<br>options:';
             _debug_array($options);
         }
     }
     if (isset($BrukerService) && $BrukerService) {
         $ctx = new UserContext();
         $ctx->appid = 'portico';
         $ctx->onBehalfOfId = $userid;
         $ctx->userid = $userid;
         $ctx->transactionid = $GLOBALS['phpgw_info']['server']['install_id'];
         // KAN UTELATES. BENYTTES I.F.M SUPPORT. LEGG INN EN FOR DEG UNIK ID.
         $request = new retrieveBruker();
         $request->userContext = $ctx;
         $request->userid = $userid;
         $response = $BrukerService->retrieveBruker($request);
         $Bruker = $response->return;
         $this->login = $Bruker->ou;
         // organisasjons nr
     }
 }
开发者ID:HaakonME,项目名称:porticoestate,代码行数:31,代码来源:MinId.php

示例4: test_receive

 function test_receive()
 {
     require_once 'SMSReceive.php';
     $options = array();
     $options['soap_version'] = SOAP_1_2;
     $options['location'] = $this->pswin_param['receive_url'];
     $options['uri'] = "http://localhost/~sn5607/savannah_trunk/sms/inc/plugin/gateway/pswin/soap.php";
     $options['trace'] = 1;
     $options['proxy_host'] = $this->pswin_param['proxy_host'];
     $options['proxy_port'] = $this->pswin_param['proxy_port'];
     $options['encoding'] = 'iso-8859-1';
     //'UTF-8';
     $wdsl = PHPGW_SERVER_ROOT . '/sms/inc/plugin/gateway/pswin/Receive.wdsl';
     $receive = new SMSReceive($wdsl, $options);
     $Position = new GSMPosition();
     $Position->City = 'Bergen';
     $IncomingSMSMessage = new IncomingSMSMessage();
     $IncomingSMSMessage->ReceiverNumber = '26112';
     $IncomingSMSMessage->SenderNumber = '90665164';
     $IncomingSMSMessage->Text = 'Dette er en testmelding';
     $IncomingSMSMessage->Network = '';
     $IncomingSMSMessage->Address = 'Firstname;middlename;lastname;address;ZipCode;City;RegionNumber;CountyNumber';
     $IncomingSMSMessage->Position = $Position;
     $ReceiveSMSMessage = new ReceiveSMSMessage();
     $ReceiveSMSMessage->m = $IncomingSMSMessage;
     $ReturnValue = $receive->ReceiveSMSMessage($ReceiveSMSMessage);
     $result = $ReturnValue->ReceiveSMSMessageResult;
     _debug_array($result);
     die;
 }
开发者ID:HaakonME,项目名称:porticoestate,代码行数:30,代码来源:get.php

示例5: list_servers

 function list_servers($data = '', &$total)
 {
     if (gettype($data) == 'array') {
         if ($this->debug) {
             _debug_array($data);
         }
         list($start, $sort, $order, $query, $limit) = $data;
     }
     return $this->is->get_list($start, $sort, $order, $query, $limit, $total);
 }
开发者ID:HaakonME,项目名称:porticoestate,代码行数:10,代码来源:class.soserver.inc.php

示例6: read_sessiondata

 function read_sessiondata()
 {
     $data = $GLOBALS['phpgw']->session->appsession('session_data', 'forum');
     if ($this->debug) {
         echo '<br>Read:';
         _debug_array($data);
     }
     $this->view = $data['view'];
     $this->location = $data['location'];
     $this->cat_id = $data['cat_id'];
     $this->forum_id = $data['forum_id'];
 }
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:12,代码来源:class.boforum.inc.php

示例7: read_sessiondata

 function read_sessiondata()
 {
     $data = $GLOBALS['phpgw']->session->appsession('session_data', 'news_admin_export');
     if ($this->debug) {
         echo '<br>Read:';
         _debug_array($data);
     }
     $this->start = $data['start'];
     $this->query = $data['query'];
     $this->sort = $data['sort'];
     $this->order = $data['order'];
 }
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:12,代码来源:class.boexport.inc.php

示例8: edit

 function edit($values = 0, $view = False)
 {
     //echo "<p>notes.ui.edit():"; _debug_array($values);
     if (!is_array($values)) {
         $id = $values > 0 ? $values : get_var('id', array('POST', 'GET'));
         $values = array();
     } else {
         $id = $values['id'];
     }
     if ($id > 0) {
         $content = $this->bo->read_single($id);
     } else {
         $content = array();
     }
     if ($this->debug) {
         echo '<p>edit: id=$id, values = ' . _debug_array($values);
     }
     if ($values['save']) {
         $this->bo->save($values);
         return $this->index();
     } elseif ($values['done']) {
         return $this->index();
     } elseif ($values['delete']) {
         return $this->delete($values['id']);
     } elseif ($values['reset']) {
         $content = array();
     } elseif ($values['cats']) {
         Header('Location: ' . $GLOBALS['phpgw']->link('/index.php?menuaction=preferences.uicategories.index&cats_app=et_notes&cats_level=True&global_cats=True'));
         $GLOBALS['phpgw']->common->phpgw_exit();
     }
     if ($view) {
         $content['header'] = 'Notes - View note for';
         $this->tpl->read('et_notes.view');
         $no_button['content'] = $no_button['cat_id'] = $no_button['access'] = True;
         // make the tpl readonly
         $no_button['delete'] = !$this->bo->check_perms($this->bo->grants[$content['owner']], PHPGW_ACL_DELETE);
         $no_button['edit'] = !$this->bo->check_perms($this->bo->grants[$content['owner']], PHPGW_ACL_EDIT);
     } else {
         if ($content['id'] <= 0) {
             $no_button['delete'] = True;
             $content['header'] = 'Notes - Add note for';
             $content['owner'] = $GLOBALS['phpgw_info']['user']['account_id'];
         } else {
             $no_button['reset'] = True;
             $no_button['delete'] = !$this->bo->check_perms($this->bo->grants[$content['owner']], PHPGW_ACL_DELETE);
             $content['header'] = 'Notes - Edit note for';
         }
     }
     $content['user'] = $GLOBALS['phpgw_info']['user']['fullname'];
     $this->tpl->exec('et_notes.ui.edit', $content, '', $no_button, array('id' => $id));
 }
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:51,代码来源:class.ui.inc.php

示例9: read_sessiondata

 function read_sessiondata()
 {
     $data = $GLOBALS['phpgw']->session->appsession('session_data', 'addressbook');
     if ($this->debug) {
         echo '<br />Read:';
         _debug_array($data);
     }
     $this->start = $data['start'];
     $this->limit = $data['limit'];
     $this->query = $data['query'];
     $this->sort = $data['sort'];
     $this->order = $data['order'];
     $this->filter = $data['filter'];
     $this->cat_id = $data['cat_id'];
 }
开发者ID:HaakonME,项目名称:porticoestate,代码行数:15,代码来源:class.boXport.inc.php

示例10: read_sessiondata

 function read_sessiondata()
 {
     $data = $GLOBALS['phpgw']->session->appsession('session_data', 'admin_cats');
     if ($this->debug) {
         echo '<br>Read:';
         _debug_array($data);
     }
     $this->start = $data['start'];
     $this->query = $data['query'];
     $this->sort = $data['sort'];
     $this->order = $data['order'];
     if (isset($data['cat_id'])) {
         $this->cat_id = $data['cat_id'];
     }
 }
开发者ID:HaakonME,项目名称:porticoestate,代码行数:15,代码来源:class.bocategories.inc.php

示例11: read_sessiondata

 function read_sessiondata()
 {
     $source = $GLOBALS['phpgw']->session->appsession('developer_source_lang', 'developer_tools');
     if ($this->debug) {
         echo '<br>Read:';
         _debug_array($source);
     }
     $target = $GLOBALS['phpgw']->session->appsession('developer_target_lang', 'developer_tools');
     if ($this->debug) {
         echo '<br>Read:';
         _debug_array($target);
     }
     $src_file = $GLOBALS['phpgw']->session->appsession('developer_source_file', 'developer_tools');
     $tgt_file = $GLOBALS['phpgw']->session->appsession('developer_target_file', 'developer_tools');
     $tgt_lang = $GLOBALS['phpgw']->session->appsession('developer_t_lang', 'developer_tools');
     $loaded_apps = $GLOBALS['phpgw']->session->appsession('developer_loaded_apps', 'developer_tools');
     $src_apps = $GLOBALS['phpgw']->session->appsession('developer_src_apps', 'developer_tools');
     $missing = $GLOBALS['phpgw']->session->appsession('developer_missing_lang', 'developer_tools');
     $this->set_sessiondata($source, $target, $src_file, $tgt_file, $tgt_lang, $loaded_apps, $src_apps, $missing);
 }
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:20,代码来源:class.bolangfile.inc.php

示例12: updateAccount

 function updateAccount($_hookValues)
 {
     if (!($uidnumber = (int) $_hookValues['account_id'])) {
         return false;
     }
     $ds = $GLOBALS['phpgw']->ldap->ldapConnect($GLOBALS['phpgw_info']['server']['ldap_host'], $GLOBALS['phpgw_info']['server']['ldap_root_dn'], $GLOBALS['phpgw_info']['server']['ldap_root_pw']);
     if (!is_resource($ds)) {
         return false;
     }
     $filter = '(&(objectclass=posixaccount)(uidnumber=' . $uidnumber . '))';
     $justthese = array('dn', 'objectclass', 'dbmailUID', 'dbmailGID', 'mail');
     $sri = ldap_search($ds, $GLOBALS['phpgw_info']['server']['ldap_context'], $filter, $justthese);
     if ($info = ldap_get_entries($ds, $sri)) {
         if (!in_array('dbmailuser', $info[0]['objectclass']) && !in_array('dbmailUser', $info[0]['objectclass']) && $info[0]['mail']) {
             $newData['objectclass'] = $info[0]['objectclass'];
             unset($newData['objectclass']['count']);
             $newData['objectclass'][] = 'dbmailuser';
             sort($newData['objectclass']);
             $newData['dbmailGID'] = sprintf("%u", crc32($GLOBALS['phpgw_info']['server']['install_id']));
             $newData['dbmailUID'] = !empty($this->domainName) ? $_hookValues['account_lid'] . '@' . $this->domainName : $_hookValues['account_lid'];
             if (!ldap_modify($ds, $info[0]['dn'], $newData)) {
                 #print ldap_error($ds);
             }
             return true;
         } else {
             $newData = array();
             $newData['dbmailUID'] = !empty($this->domainName) ? $_hookValues['account_lid'] . '@' . $this->domainName : $_hookValues['account_lid'];
             $newData['dbmailGID'] = sprintf("%u", crc32($GLOBALS['phpgw_info']['server']['install_id']));
             if (!ldap_modify($ds, $info[0]['dn'], $newData)) {
                 print ldap_error($ds);
                 _debug_array($newData);
                 exit;
                 #return false;
             }
         }
     }
     return false;
 }
开发者ID:HaakonME,项目名称:porticoestate,代码行数:38,代码来源:class.dbmaildbmailuser.inc.php

示例13: index

 public function index()
 {
     if (!$this->acl_read) {
         echo lang('no access');
         $GLOBALS['phpgw']->common->phpgw_exit();
     }
     $app = phpgw::get_var('app', 'string', 'GET');
     //get session's values
     $data = phpgwapi_cache::session_get($app, 'id_debug');
     if (isset($data)) {
         //clear session
         phpgwapi_cache::session_clear($app, 'id_debug');
         //replace '<' and '>'
         if (is_array($data)) {
             self::_my_print_rec($data, 0);
         } else {
             $data = htmlspecialchars($data);
         }
         _debug_array($data);
     } else {
         echo "empty session's value";
     }
     $GLOBALS['phpgw']->common->phpgw_exit();
 }
开发者ID:HaakonME,项目名称:porticoestate,代码行数:24,代码来源:class.uidebug_json.inc.php

示例14: _debug_sqsof

 function _debug_sqsof()
 {
     $data = array('start' => $this->start, 'query' => $this->query, 'sort' => $this->sort, 'order' => $this->order, 'cat_id' => $this->cat_id);
     echo '<br>UI:<br>';
     _debug_array($data);
 }
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:6,代码来源:class.uicategories.inc.php

示例15: _debug_array

    $GLOBALS['phpgw_setup']->html->login_form();
    $GLOBALS['phpgw_setup']->html->show_footer();
    exit;
}
$GLOBALS['phpgw_setup']->loaddb();
/* Add cleaning of app_sessions per skeeter, but with a check for the table being there, just in case */
/* $GLOBALS['phpgw_setup']->clear_session_cache(); */
// Database actions
$setup_info = $GLOBALS['phpgw_setup']->detection->get_versions();
$GLOBALS['phpgw_info']['setup']['stage']['db'] = $GLOBALS['phpgw_setup']->detection->check_db($setup_info);
if ($GLOBALS['phpgw_info']['setup']['stage']['db'] != 1) {
    $setup_info = $GLOBALS['phpgw_setup']->detection->get_versions();
    $setup_info = $GLOBALS['phpgw_setup']->detection->get_db_versions($setup_info);
    $GLOBALS['phpgw_info']['setup']['stage']['db'] = $GLOBALS['phpgw_setup']->detection->check_db($setup_info);
    if ($GLOBALS['DEBUG']) {
        _debug_array($setup_info);
    }
}
if ($GLOBALS['DEBUG']) {
    echo 'Stage: ' . $GLOBALS['phpgw_info']['setup']['stage']['db'];
}
// begin DEBUG code
//$GLOBALS['phpgw_info']['setup']['stage']['db'] = 0;
//$action = 'Upgrade';
// end DEBUG code
switch (@get_var('action', array('POST'))) {
    case 'Uninstall all applications':
        $subtitle = lang('Deleting Tables');
        $submsg = lang('Are you sure you want to delete your existing tables and data?') . '.';
        $subaction = lang('uninstall');
        $GLOBALS['phpgw_info']['setup']['currentver']['phpgwapi'] = 'predrop';
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:31,代码来源:index.php


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