소스 검색

add servicecode

andre 3 년 전
부모
커밋
fbae1a676b
1개의 변경된 파일18개의 추가작업 그리고 0개의 파일을 삭제
  1. 18 0
      servicecode.php

+ 18 - 0
servicecode.php

@@ -0,0 +1,18 @@
+<?php
+
+// this hook returns $addon->subscriptionid as $addon.code in smarty
+
+if (!defined("WHMCS"))
+    die("This file cannot be accessed directly");
+
+add_hook('ClientAreaProductDetailsPreModuleTemplate', 1, function($vars) {
+
+    logModuleCall(
+        'ClientAreaProductDetailsPreModuleTemplate',
+        __FUNCTION__,
+        $vars,
+        'debug',
+        ''
+    );
+
+});