Skip to content

Commit

Permalink
allow relative paths in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Gunter Grodotzki committed Apr 21, 2015
1 parent 0bb6b41 commit 1a0ea77
Show file tree
Hide file tree
Showing 25 changed files with 52 additions and 2 deletions.
2 changes: 2 additions & 0 deletions examples/check_contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Check\Contact as CheckContact;
Expand Down
2 changes: 2 additions & 0 deletions examples/check_domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Check\Domain as CheckDomain;
Expand Down
2 changes: 2 additions & 0 deletions examples/check_host.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Check\Host as CheckHost;
Expand Down
2 changes: 2 additions & 0 deletions examples/connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Client as EPPClient;
Expand Down
4 changes: 3 additions & 1 deletion examples/create_contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Create\Contact as CreateContact;

$frame = new CreateContact;
$frame->setId('CONTACT1');
$frame->setName('Günter Grodotzki');
$frame->setName('Peter Fütterer');
$frame->setName('Jun Grodotzki');
$frame->setOrganization('weheartwebsites UG');
$frame->addStreet('Rönskenstraße 23');
$frame->addStreet('Around the Corner');
Expand Down
4 changes: 3 additions & 1 deletion examples/create_contact_skipint.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Create\Contact as CreateContact;
Expand All @@ -12,7 +14,7 @@
$frame->skipInt();
$frame->setId('CONTACT1');
$frame->setName('Günter Grodotzki');
$frame->setName('Peter Fütterer');
$frame->setName('Jun Grodotzki');
$frame->setOrganization('weheartwebsites UG');
$frame->addStreet('Rönskenstraße 23');
$frame->addStreet('Around the Corner');
Expand Down
2 changes: 2 additions & 0 deletions examples/create_domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Create\Domain as CreateDomain;
Expand Down
2 changes: 2 additions & 0 deletions examples/create_host.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Create\Host as CreateHost;
Expand Down
2 changes: 2 additions & 0 deletions examples/delete_contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Delete\Contact as DeleteContact;
Expand Down
2 changes: 2 additions & 0 deletions examples/delete_domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Delete\Domain as DeleteDomain;
Expand Down
2 changes: 2 additions & 0 deletions examples/delete_host.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Delete\Host as DeleteHost;
Expand Down
2 changes: 2 additions & 0 deletions examples/extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Extension\COZA\Info\CozaContact as CozaContactInfoExtension;
Expand Down
2 changes: 2 additions & 0 deletions examples/info_contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Info\Contact as InfoContact;
Expand Down
2 changes: 2 additions & 0 deletions examples/info_domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Info\Domain as InfoDomain;
Expand Down
2 changes: 2 additions & 0 deletions examples/info_host.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Info\Host as InfoHost;
Expand Down
2 changes: 2 additions & 0 deletions examples/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Login;
Expand Down
2 changes: 2 additions & 0 deletions examples/login_extensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Login;
Expand Down
2 changes: 2 additions & 0 deletions examples/logout.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Logout;
Expand Down
2 changes: 2 additions & 0 deletions examples/poll.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Poll;
Expand Down
2 changes: 2 additions & 0 deletions examples/renew_domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Renew\Domain as RenewDomain;
Expand Down
2 changes: 2 additions & 0 deletions examples/transfer_contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Transfer\Contact as TransferContact;
Expand Down
2 changes: 2 additions & 0 deletions examples/transfer_domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Transfer\Domain as TransferDomain;
Expand Down
2 changes: 2 additions & 0 deletions examples/update_contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Update\Contact as ContactUpdate;
Expand Down
2 changes: 2 additions & 0 deletions examples/update_domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Update\Domain as UpdateDomain;
Expand Down
2 changes: 2 additions & 0 deletions examples/update_host.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

chdir(__DIR__);

require '../src/AfriCC/autoload.php';

use AfriCC\EPP\Frame\Command\Update\Host as UpdateHost;
Expand Down

0 comments on commit 1a0ea77

Please sign in to comment.