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


PHP get_contacts函数代码示例

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


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

示例1: parse

 public function parse($data, $query)
 {
     $r = array();
     $items = array('domain.name' => 'Domain:', 'domain.status' => 'Status:', 'domain.created' => 'Registered:', 'domain.expires' => 'Expires:', 'domain.dnssec' => 'Dnssec:', 'domain.nserver' => 'Nameservers', 'tech' => 'Administrator', 'owner' => 'Registrant', 'disclaimer.' => '#');
     $r['regrinfo'] = get_blocks($data['rawdata'], $items);
     $contactFields = array('handle:' => 'handle', 'city:' => 'address.city', 'postalcode:' => 'address.pcode');
     $r['regrinfo'] = get_contacts($r['regrinfo'], $contactFields);
     return $r;
 }
开发者ID:koTool,项目名称:phpWhois,代码行数:9,代码来源:whois.dk.php

示例2: parse

 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant:', 'domain.name' => 'Domain name:', 'domain.created' => 'Registered:', 'domain.changed' => 'Last modified:', 'domain.nserver' => 'DNS servers:', 'domain.status' => 'Status:', 'tech' => 'Technical contact:', 'admin' => 'Administrative contact:');
     $r['regrinfo'] = get_blocks($data_str['rawdata'], $items);
     if (!empty($r['regrinfo']['domain']['name'])) {
         $r['regrinfo'] = get_contacts($r['regrinfo']);
         $r['regrinfo']['registered'] = 'yes';
     } else {
         $r = '';
         $r['regrinfo']['registered'] = 'no';
     }
     $r['regyinfo'] = array('referrer' => 'http://www.isoc.am', 'registrar' => 'ISOCAM');
     return $r;
 }
开发者ID:ref,项目名称:webmaster.panel,代码行数:14,代码来源:whois.am.php

示例3: parse

 function parse($data, $query)
 {
     $items = array('domain.status' => 'Status:', 'domain.nserver' => 'Domain name servers in listed order:', 'domain.changed' => 'Record last updated on', 'owner' => 'rwhois search on', 'admin' => 'Administrative Contact:', 'tech' => 'Technical Contact:', 'billing' => 'Billing Contact:', '#' => 'Search Again');
     $r['regrinfo'] = get_blocks($data['rawdata'], $items);
     if (isset($r['regrinfo']['domain']['status'])) {
         $r['regrinfo']['registered'] = 'yes';
         $r['regrinfo']['domain']['handler'] = strtok(array_shift($r['regrinfo']['owner']), ' ');
         $r['regrinfo'] = get_contacts($r['regrinfo']);
     } else {
         $r['regrinfo']['registered'] = 'no';
     }
     $r['regyinfo']['referrer'] = 'http://www.org.za';
     $r['regyinfo']['registrar'] = 'The ORG.ZA Domain';
     return $r;
 }
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:15,代码来源:whois.org.za.php

示例4: parse

 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant:', 'admin' => 'Administrative Contact:', 'tech' => 'Technical Contact:', 'domain.name' => 'Domain Name:', 'domain.status' => 'Domain Status:', 'domain.created' => 'Created:', 'domain.changed' => 'Updated:', 'domain.expires' => 'Expired:', 'domain.nserver' => 'Domain servers in listed order:');
     $extra = array('zip/postal code:' => 'address.pcode');
     $r['regrinfo'] = get_blocks($data_str['rawdata'], $items);
     if (!empty($r['regrinfo']['domain']['name'])) {
         $r['regrinfo'] = get_contacts($r['regrinfo'], $extra);
         $r['regrinfo']['domain']['name'] = $r['regrinfo']['domain']['name'][0];
         $r['regrinfo']['registered'] = 'yes';
     } else {
         $r = '';
         $r['regrinfo']['registered'] = 'no';
     }
     $r['regyinfo'] = array('referrer' => 'http://www.nic.ly', 'registrar' => 'Libya ccTLD');
     return $r;
 }
开发者ID:evdevgit,项目名称:wpblock,代码行数:16,代码来源:whois.ly.php

示例5: parse

 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant:', 'domain.status' => 'Status:', 'domain.expires' => 'Expires:', 'domain.nserver' => 'Domain servers:');
     $r['regrinfo'] = get_blocks($data_str['rawdata'], $items);
     if (!empty($r['regrinfo']['domain']['status'])) {
         $r['regrinfo'] = get_contacts($r['regrinfo']);
         date_default_timezone_set("Pacific/Fiji");
         if (isset($r['regrinfo']['domain']['expires'])) {
             $r['regrinfo']['domain']['expires'] = strftime("%Y-%m-%d", strtotime($r['regrinfo']['domain']['expires']));
         }
         $r['regrinfo']['registered'] = 'yes';
     } else {
         $r['regrinfo']['registered'] = 'no';
     }
     $r['regyinfo'] = array('referrer' => 'http://www.domains.fj', 'registrar' => 'FJ Domain Name Registry');
     return $r;
 }
开发者ID:hardiksondagar,项目名称:lookup,代码行数:17,代码来源:whois.fj.php

示例6: parse

 function parse($data, $query)
 {
     $items = array('domain.name' => 'Nome de domínio / Domain Name:', 'domain.created' => 'Data de registo / Creation Date (dd/mm/yyyy):', 'domain.nserver.' => 'Nameserver:', 'domain.status' => 'Estado / Status:', 'owner' => 'Titular / Registrant', 'billing' => 'Entidade Gestora / Billing Contact', 'admin' => 'Responsável Administrativo / Admin Contact', 'tech' => 'Responsável Técnico / Tech Contact', '#' => 'Nameserver Information');
     $r['regrinfo'] = get_blocks($data['rawdata'], $items);
     if (empty($r['regrinfo']['domain']['name'])) {
         $r['regrinfo']['registered'] = 'no';
         return $r;
     }
     $r['regrinfo']['domain']['created'] = get_date($r['regrinfo']['domain']['created'], 'dmy');
     if ($r['regrinfo']['domain']['status'] == 'ACTIVE') {
         $r['regrinfo'] = get_contacts($r['regrinfo']);
         $r['regrinfo']['registered'] = 'yes';
     } else {
         $r['regrinfo']['registered'] = 'no';
     }
     $r['regyinfo'] = array('referrer' => 'http://www.fccn.pt', 'registrar' => 'FCCN');
     return $r;
 }
开发者ID:469306621,项目名称:Languages,代码行数:18,代码来源:whois.pt.php

示例7: parse

 function parse($data_str, $query)
 {
     $items = array('owner' => 'Titular:', 'domain.name' => 'Nombre de Dominio:', 'admin' => 'Contacto Administrativo', 'tech' => 'Contacto Tecnico', 'billing' => 'Contacto de Cobranza:', 'domain.created' => 'Fecha de Creacion:', 'domain.changed' => 'Ultima Actualizacion:', 'domain.expires' => 'Fecha de Vencimiento:', 'domain.status' => 'Estatus del dominio:', 'domain.nserver' => 'Servidor(es) de Nombres de Dominio');
     $r['regrinfo'] = get_blocks($data_str['rawdata'], $items);
     $r['regyinfo'] = array('referrer' => 'http://registro.nic.ve', 'registrar' => 'NIC-Venezuela - CNTI');
     if (!isset($r['regrinfo']['domain']['created']) || is_array($r['regrinfo']['domain']['created'])) {
         $r['regrinfo'] = array('registered' => 'no');
         return $r;
     }
     $dns = array();
     foreach ($r['regrinfo']['domain']['nserver'] as $nserv) {
         if ($nserv[0] == '-') {
             $dns[] = $nserv;
         }
     }
     $r['regrinfo']['domain']['nserver'] = $dns;
     $r['regrinfo'] = get_contacts($r['regrinfo']);
     return $r;
 }
开发者ID:469306621,项目名称:Languages,代码行数:19,代码来源:whois.ve.php

示例8: parse

 function parse($data, $query)
 {
     $items = array('owner' => 'Registrant', 'admin' => 'Admin', 'tech' => 'Technical', 'billing' => 'Billing', 'domain.nserver' => 'Name Servers:', 'domain.created' => 'Created:', 'domain.expires' => 'Expires:', 'domain.changed' => 'Modified:', 'domain.status' => 'Status:', 'domain.sponsor' => 'Registrar Name:');
     $r['regrinfo'] = get_blocks($data['rawdata'], $items);
     $items = array('phone number:' => 'phone', 'email address:' => 'email', 'fax number:' => 'fax', 'organisation:' => 'organization');
     if (!empty($r['regrinfo']['domain']['created'])) {
         $r['regrinfo'] = get_contacts($r['regrinfo'], $items);
         if (count($r['regrinfo']['billing']['address']) > 4) {
             $r['regrinfo']['billing']['address'] = array_slice($r['regrinfo']['billing']['address'], 0, 4);
         }
         $r['regrinfo']['registered'] = 'yes';
         format_dates($r['regrinfo']['domain'], 'dmY');
     } else {
         $r = '';
         $r['regrinfo']['registered'] = 'no';
     }
     $r['regyinfo']['referrer'] = 'http://www.dot.dm';
     $r['regyinfo']['registrar'] = 'dotFM';
     return $r;
 }
开发者ID:yarylo,项目名称:cerkva.pp.ua,代码行数:20,代码来源:whois.fm.php

示例9: parse

 function parse($data, $query)
 {
     $items = array('domain.name' => 'Domain:', 'domain.status' => 'Status:', 'domain.nserver' => 'Nameservers:', 'domain.created' => 'Registered:', 'owner' => 'Licensee:', 'admin' => 'Onsite Contacts:', 'tech' => 'Agent Technical Contacts:', 'agent' => 'Agent:');
     $trans = array('company name2:' => '');
     $r['regrinfo'] = get_blocks($data['rawdata'], $items);
     if ($r['regrinfo']['domain']['status'] == 'REGISTERED') {
         $r['regrinfo']['registered'] = 'yes';
         $r['regrinfo'] = get_contacts($r['regrinfo'], $trans);
         if (isset($r['regrinfo']['agent'])) {
             $sponsor = get_contact($r['regrinfo']['agent'], $trans);
             unset($r['regrinfo']['agent']);
             $r['regrinfo']['domain']['sponsor'] = $sponsor['name'];
         }
         $r = format_dates($r, '-mdy');
     } else {
         $r['regrinfo']['registered'] = 'no';
     }
     $r['regyinfo']['referrer'] = 'http://www.domain-registry.nl';
     $r['regyinfo']['registrar'] = 'DNS Belgium';
     return $r;
 }
开发者ID:yarylo,项目名称:cerkva.pp.ua,代码行数:21,代码来源:whois.be.php

示例10: parse

 function parse($data_str, $query)
 {
     $items = array('owner' => 'Holder of domain name:', 'domain.name' => 'Domain name:', 'domain.created' => 'Date of last registration:', 'domain.changed' => 'Date of last modification:', 'tech' => 'Technical contact:', 'domain.nserver' => 'Name servers:');
     $r['regrinfo'] = get_blocks($data_str['rawdata'], $items);
     if (!empty($r['regrinfo']['domain']['name'])) {
         $r['regrinfo'] = get_contacts($r['regrinfo']);
         $r['regrinfo']['domain']['name'] = $r['regrinfo']['domain']['name'][0];
         if (isset($r['regrinfo']['domain']['changed'][0])) {
             $r['regrinfo']['domain']['changed'] = get_date($r['regrinfo']['domain']['changed'][0], 'dmy');
         }
         if (isset($r['regrinfo']['domain']['created'][0])) {
             $r['regrinfo']['domain']['created'] = get_date($r['regrinfo']['domain']['created'][0], 'dmy');
         }
         $r['regyinfo'] = array('referrer' => 'http://www.nic.ch', 'registrar' => 'SWITCH Domain Name Registration');
         $r['regrinfo']['registered'] = 'yes';
     } else {
         $r = '';
         $r['regrinfo']['registered'] = 'no';
     }
     return $r;
 }
开发者ID:469306621,项目名称:Languages,代码行数:21,代码来源:whois.ch.php

示例11: get_contacts

                }
            }
            echo "</td></tr>\n";
        }
        echo "</table>\n";
    }
} else {
    echo '[<a href="' . $_SERVER['PHP_SELF'] . '?project_id=' . $_GET['project_id'] . '&show_orgs=1&show_contacts=' . $show_contacts . '" class="menu">Poka¿</a>]';
}
echo "<br><br></td></tr>\n";
echo '<tr><td class="naglowek_maly">Kontakty:</td></tr>';
echo '<tr><td>';
if ($show_contacts == 1) {
    echo '[<a href="' . $_SERVER['PHP_SELF'] . '?project_id=' . $_GET['project_id'] . '&show_orgs=' . $show_orgs . '&show_contacts=0" class="menu">Ukryj</a>]</td></tr>';
    echo '<tr><td>';
    $contacts = get_contacts('project_id', $_GET['project_id']);
    if ($contacts === false) {
        echo 'B³±d bazy danych, spróbuj pó¼niej.';
    } else {
        if (empty($contacts)) {
            echo '-';
        } else {
            echo '<table>';
            echo '<tr><th></th><th>Data, typ</th><th>Organizacja</th><th>Osoba kontaktuj±ca</th></tr>';
            $num_contact = 1;
            foreach ($contacts as $cid) {
                echo '<tr><td>' . $num_contact . '. </td><td>';
                ++$num_contact;
                display_link_to_contact($cid);
                $details = get_contact_details($cid);
                echo '</td><td>';
开发者ID:exviva,项目名称:flip,代码行数:31,代码来源:show_project.php

示例12: display_contact_history

function display_contact_history()
{
    $contacts = get_contacts('user_id', $_SESSION['valid_user_id']);
    if ($contacts === false) {
        echo 'B³±d bazy danych, spróbuj pó¼niej.';
    } else {
        if (empty($contacts)) {
            echo 'Brak kontaktów.';
        } else {
            echo '<table><tr><th></th><th>Data, typ</th><th>Organizacja</th><th>Projekt</th></tr>';
            $num_contact = 1;
            foreach ($contacts as $cid) {
                echo '<tr><td>' . $num_contact . '. </td><td>';
                ++$num_contact;
                display_link_to_contact($cid);
                $details = get_contact_details($cid);
                echo '</td><td>';
                display_link_to_org($details['organisation_id']);
                echo '</td><td nowrap>';
                display_link_to_project($details['project_id']);
                echo '</td></tr>';
            }
            echo '</table>';
        }
    }
}
开发者ID:exviva,项目名称:flip,代码行数:26,代码来源:index.php

示例13: dbconnect

<?php

require 'mymodel.php';
// On commence par inclure le modèle
$db = dbconnect();
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    //Insertion d'un nouveau contact suite au remplissage du formulaire
    insert_contact($_POST, $db);
    header("location: {$_SERVER['PHP_SELF']}");
    exit;
} else {
    //Sinon affichage des contacts en appelant les fonctions
    $nbre_contact = get_nbcontacts($db);
    $t_contacts = get_contacts($db);
    require 'myview.php';
    // Affichage de la vue résultat
}
echo "Salut";
开发者ID:jloemba,项目名称:PROJETSLAM3,代码行数:18,代码来源:controller.php

示例14: get_contact_person

    $contact_person = get_contact_person($_GET['org_id']);
    if ($contact_person !== false && !empty($contact_person)) {
        $content['Osoba kontaktowa'] = htmlspecialchars($contact_person);
    }
    foreach ($content as $label => $value) {
        echo '<tr><td width="50%" align="right"><b>' . $label . ':</b></td><td width="50%" align="left">';
        echo $value;
        echo "</td></tr>\n";
    }
    echo '<tr><td width="50%" align="right"><b>Osoba aktualizuj±ca dane:</b></td><td>';
    display_link_to_user($org_info['updater_id']);
    echo "</td></tr>\n";
    echo "</table></td></tr>\n";
}
echo "</table>\n<br><br><br><br>";
$contacts = get_contacts('organisation_id', $_GET['org_id']);
echo '<table width="90%">' . "\n";
echo '<tr><td align="center" class="naglowek">Historia kontaktów<hr></td></tr>' . "\n";
if ($contacts === false) {
    echo '<tr><td>B³±d bazy danych, spróbuj pó¼niej.';
} else {
    if (empty($contacts)) {
        echo '<tr><td>Brak kontaktów.</td></tr>' . "\n";
    } else {
        echo '<tr><td align="center"><table>';
        echo '<tr><th></th><th>Data, typ</th><th>Osoba kontaktuj±ca</th><th>Projekt</th></tr>';
        $num_contact = 1;
        foreach ($contacts as $cid) {
            echo '<tr><td>' . $num_contact . '. </td><td>';
            ++$num_contact;
            display_link_to_contact($cid);
开发者ID:exviva,项目名称:flip,代码行数:31,代码来源:show_org.php

示例15: header

    }
    // if organisation data is not set, redirect to add_org_info_form.php
    if (empty_org($_GET['org_id'])) {
        header('location: add_org_info_form.php?org_id=' . $_GET['org_id'] . '&project_id=' . $_GET['project_id']);
    }
    // the $data array holds all the information about the contact
    $data['organisation_id'] = $_GET['org_id'];
    $data['project_id'] = $_GET['project_id'];
    $today = getdate();
    // default date of contact is today
    $data['year'] = $today['year'];
    $data['month'] = $today['mon'];
    $data['day'] = $today['mday'];
    $data['type'] = $_GET['type'];
    // for easier use, last contact person is copied
    $org_contacts = get_contacts('organisation_id', $data['organisation_id']);
    $last_contact = get_contact_details($org_contacts[0]);
    $data['contact_person'] = $last_contact['contact_person'];
    $data['contact_function'] = $last_contact['contact_function'];
    // the default content of comments for meeting and phone call
    $data['comments'] = $_GET['type'] == 'spotkanie' ? "PRZEBIEG: \n\nATMOSFERA: \n\nREZULTAT: " : '';
    $data['aim'] = $last_contact['aim'];
    $data['nc_type'] = 'spotkanie';
    // next contact date (to days after today)
    $nc_date = getdate(strtotime('+2 days'));
    $data['nc_year'] = $nc_date['year'];
    $data['nc_month'] = $nc_date['mon'];
    $data['nc_day'] = $nc_date['mday'];
} else {
    // "edit a contact" mode
    $edit = true;
开发者ID:exviva,项目名称:flip,代码行数:31,代码来源:add_contact_form.php


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