Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
lib /
php /
test /
Contact_Vcard_Build /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
AllTests.php
3.46
KB
-rw-r--r--
bug-15348.phpt
1.44
KB
-rw-r--r--
build-email.phpt
985
B
-rw-r--r--
build-foobar.phpt
1019
B
-rw-r--r--
build-johndoe.phpt
2.21
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : build-johndoe.phpt
--TEST-- A test to build a john doe vcard included in examples. --SKIPIF-- <?php include_once 'Contact/Vcard/Build.php'; if (!class_exists('Contact_Vcard_Build')) { die('SKIP This test requires Contact_Vcard_Build.'); } --FILE-- <?php require_once 'Contact/Vcard/Build.php'; $vcard = new Contact_Vcard_Build(); $vcard->setFormattedName('John Doe'); $vcard->setName('John', '', 'Doe', '', ''); $vcard->addEmail('johnDoe@example.org'); $vcard->addParam('TYPE', 'WORK'); $vcard->addTelephone('+1 617 555 1212'); $vcard->addParam('TYPE', 'WORK'); $vcard->addParam('TYPE', 'PREF'); $vcard->addTelephone('+1 (617) 555-1234'); $vcard->addParam('TYPE', 'WORK'); $vcard->addTelephone('+1 781 555 1212'); $vcard->addParam('TYPE', 'CELL'); $vcard->addTelephone('+1 202 555 1212'); $vcard->addParam('TYPE', 'HOME'); $pob = ''; $extend = ''; $street = '2 Enterprise Avenue'; $locality = ''; $region = 'NY'; $postcode = '01111'; $country = 'USA'; $vcard->addAddress($pob, $extend, $street, $locality, $region, $postcode, $country); $vcard->addParam('TYPE', 'WORK'); $pob = ''; $extend = ''; $street = '3 Acacia Avenue'; $locality = 'Hoemtown'; $region = 'MA'; $postcode = '02222'; $country = 'USA'; $vcard->addAddress($pob, $extend, $street, $locality, $region, $postcode, $country); $vcard->addParam('TYPE', 'HOME'); $note = 'John Doe has a long and varied history, being documented on more police'; $note .= ' files that anyone else. Reports of his death are alas numerous.'; $vcard->setNote($note); $vcard->setUrl('http://www.example/com/doe'); $vcard->addCategories('Work'); $vcard->addCategories('Test group'); $text = $vcard->fetch(); var_dump($text); --EXPECT-- string(543) "BEGIN:VCARD VERSION:3.0 PROFILE:VCARD FN:John Doe N:John;;Doe;; ADR;TYPE=WORK:;;2 Enterprise Avenue;;NY;01111;USA ADR;TYPE=HOME:;;3 Acacia Avenue;Hoemtown;MA;02222;USA TEL;TYPE=WORK,PREF:+1 617 555 1212 TEL;TYPE=WORK:+1 (617) 555-1234 TEL;TYPE=CELL:+1 781 555 1212 TEL;TYPE=HOME:+1 202 555 1212 EMAIL;TYPE=WORK:johnDoe@example.org CATEGORIES:Work,Test group NOTE:John Doe has a long and varied history\, being documented on more poli ce files that anyone else. Reports of his death are alas numerous. URL:http://www.example/com/doe END:VCARD "
Close