Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
fix(symlinks): added support for integration of the module via symlin…
Browse files Browse the repository at this point in the history
…ks + documentation
  • Loading branch information
tulsi91 authored and KaiSchwarz-cnic committed Nov 26, 2018
1 parent 6f39482 commit 7430031
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified README.pdf
Binary file not shown.
Binary file modified documentation_ispapidpi.odt
Binary file not shown.
6 changes: 3 additions & 3 deletions ispapidpi.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ function ispapidpi_deactivate()
function ispapidpi_output($vars)
{
//load and check if registrar module is installed
require_once(dirname(__FILE__)."/../../../includes/registrarfunctions.php");
require_once(implode(DIRECTORY_SEPARATOR, array(ROOTDIR,"includes","registrarfunctions.php")));

//check if the registrar module exists
$file = "ispapi";
$error = false;
if (file_exists(dirname(__FILE__)."/../../../modules/registrars/".$file."/".$file.".php")) {
require_once(dirname(__FILE__)."/../../../modules/registrars/".$file."/".$file.".php");
if (file_exists(implode(DIRECTORY_SEPARATOR, array(ROOTDIR,"modules","registrars",$file,$file.".php")))) {
require_once(implode(DIRECTORY_SEPARATOR, array(ROOTDIR,"modules","registrars",$file,$file.".php")));
$funcname = $file.'_GetISPAPIModuleVersion';
if (function_exists($file.'_GetISPAPIModuleVersion')) {
$version = call_user_func($file.'_GetISPAPIModuleVersion');
Expand Down

0 comments on commit 7430031

Please sign in to comment.