index.html 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <link rel="icon" href="images/favicon.ico"/>
  8. <link rel="stylesheet" href="css/normalize.css">
  9. <link rel="stylesheet" href="css/base.css">
  10. <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  11. <link rel="stylesheet" href="css/template.css">
  12. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  13. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  14. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  15. <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/js/all.min.js" integrity="sha256-0vuk8LXoyrmCjp1f0O300qo1M75ZQyhH9X3J6d+scmk=" crossorigin="anonymous"></script>
  16. <script src="js/search.js"></script>
  17. <script defer src="js/searchIndex.js"></script>
  18. </head>
  19. <body id="top">
  20. <header class="phpdocumentor-header phpdocumentor-section">
  21. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  22. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  23. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  24. <i class="fas fa-bars"></i>
  25. </label>
  26. <section data-search-form class="phpdocumentor-search">
  27. <label>
  28. <span class="visually-hidden">Search for</span>
  29. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  30. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  31. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  32. </svg>
  33. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  34. </label>
  35. </section>
  36. <nav class="phpdocumentor-topnav">
  37. <ul class="phpdocumentor-topnav__menu">
  38. </ul>
  39. </nav>
  40. </header>
  41. <main class="phpdocumentor">
  42. <div class="phpdocumentor-section">
  43. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  44. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  45. Menu
  46. </label>
  47. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  48. <section class="phpdocumentor-sidebar__category">
  49. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  50. <h3 class="phpdocumentor-sidebar__root-namespace"><a href="namespaces/default.html"><abbr title="\">Global</abbr></a></h3>
  51. </section>
  52. <section class="phpdocumentor-sidebar__category">
  53. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  54. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  55. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  56. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  57. </section>
  58. <section class="phpdocumentor-sidebar__category">
  59. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  60. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  61. </section>
  62. </aside>
  63. <div class="phpdocumentor-column -eight phpdocumentor-content">
  64. <h2>Documentation</h2>
  65. <h3 id="toc">
  66. Table of Contents
  67. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  68. </h3>
  69. <dl class="phpdocumentor-table-of-contents">
  70. <dt class="phpdocumentor-table-of-contents__entry -function -">
  71. <a href="namespaces/default.html#function_seafile_MetaData">seafile_MetaData()</a>
  72. <span>
  73. &nbsp;: mixed </span>
  74. </dt>
  75. <dd></dd>
  76. <dt class="phpdocumentor-table-of-contents__entry -function -">
  77. <a href="namespaces/default.html#function_seafile_ConfigOptions">seafile_ConfigOptions()</a>
  78. <span>
  79. &nbsp;: array&lt;string|int, mixed&gt; </span>
  80. </dt>
  81. <dd>Define SeaFile product configuration options.</dd>
  82. <dt class="phpdocumentor-table-of-contents__entry -function -">
  83. <a href="namespaces/default.html#function_seafile_TestConnection">seafile_TestConnection()</a>
  84. <span>
  85. &nbsp;: array&lt;string|int, mixed&gt; </span>
  86. </dt>
  87. <dd>Test connection to a SeaFile server with the given server parameters.</dd>
  88. <dt class="phpdocumentor-table-of-contents__entry -function -">
  89. <a href="namespaces/default.html#function_seafile_UsageUpdate">seafile_UsageUpdate()</a>
  90. <span>
  91. &nbsp;: mixed </span>
  92. </dt>
  93. <dd>Usage Update</dd>
  94. <dt class="phpdocumentor-table-of-contents__entry -function -">
  95. <a href="namespaces/default.html#function_seafile_ClientArea">seafile_ClientArea()</a>
  96. <span>
  97. &nbsp;: array&lt;string|int, mixed&gt; </span>
  98. </dt>
  99. <dd>Client area output logic handling.</dd>
  100. <dt class="phpdocumentor-table-of-contents__entry -function -">
  101. <a href="namespaces/default.html#function_seafile_ChangePassword">seafile_ChangePassword()</a>
  102. <span>
  103. &nbsp;: string </span>
  104. </dt>
  105. <dd>Change the password for a SeaFile account.</dd>
  106. <dt class="phpdocumentor-table-of-contents__entry -function -">
  107. <a href="namespaces/default.html#function_seafile_ChangePackage">seafile_ChangePackage()</a>
  108. <span>
  109. &nbsp;: string </span>
  110. </dt>
  111. <dd>Set a new quota of a SeaFile account.</dd>
  112. <dt class="phpdocumentor-table-of-contents__entry -function -">
  113. <a href="namespaces/default.html#function_seafile_CreateAccount">seafile_CreateAccount()</a>
  114. <span>
  115. &nbsp;: string </span>
  116. </dt>
  117. <dd>Provision a new instance of a SeaFile account.</dd>
  118. <dt class="phpdocumentor-table-of-contents__entry -function -">
  119. <a href="namespaces/default.html#function_seafile_SuspendAccount">seafile_SuspendAccount()</a>
  120. <span>
  121. &nbsp;: string </span>
  122. </dt>
  123. <dd>Set a SeaFile account to status inactive.</dd>
  124. <dt class="phpdocumentor-table-of-contents__entry -function -">
  125. <a href="namespaces/default.html#function_seafile_UnsuspendAccount">seafile_UnsuspendAccount()</a>
  126. <span>
  127. &nbsp;: string </span>
  128. </dt>
  129. <dd>Set a SeaFile account to status active.</dd>
  130. <dt class="phpdocumentor-table-of-contents__entry -function -">
  131. <a href="namespaces/default.html#function_seafile_TerminateAccount">seafile_TerminateAccount()</a>
  132. <span>
  133. &nbsp;: string </span>
  134. </dt>
  135. <dd>Removes a SeaFile account.</dd>
  136. <dt class="phpdocumentor-table-of-contents__entry -function -">
  137. <a href="namespaces/default.html#function_seafileCheckPassword">seafileCheckPassword()</a>
  138. <span>
  139. &nbsp;: string </span>
  140. </dt>
  141. <dd>server side password check</dd>
  142. </dl>
  143. <section class="phpdocumentor-functions">
  144. <h3 class="phpdocumentor-elements__header" id="functions">
  145. Functions
  146. <a href="namespaces/default.html#functions" class="headerlink"><i class="fas fa-link"></i></a>
  147. </h3>
  148. <article class="phpdocumentor-element -function - ">
  149. <h4 class="phpdocumentor-element__name" id="function_seafile_MetaData">
  150. seafile_MetaData()
  151. <a href="namespaces/default.html#function_seafile_MetaData" class="headerlink"><i class="fas fa-link"></i></a>
  152. </h4>
  153. <aside class="phpdocumentor-element-found-in">
  154. <abbr class="phpdocumentor-element-found-in__file" title="seafile.php"><a href="files/seafile.html"><abbr title="seafile.php">seafile.php</abbr></a></abbr>
  155. :
  156. <span class="phpdocumentor-element-found-in__line">18</span>
  157. </aside>
  158. <code class="phpdocumentor-code phpdocumentor-signature ">
  159. <span class="phpdocumentor-signature__visibility"></span>
  160. <span class="phpdocumentor-signature__name">seafile_MetaData</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  161. </article>
  162. <article class="phpdocumentor-element -function - ">
  163. <h4 class="phpdocumentor-element__name" id="function_seafile_ConfigOptions">
  164. seafile_ConfigOptions()
  165. <a href="namespaces/default.html#function_seafile_ConfigOptions" class="headerlink"><i class="fas fa-link"></i></a>
  166. </h4>
  167. <aside class="phpdocumentor-element-found-in">
  168. <abbr class="phpdocumentor-element-found-in__file" title="seafile.php"><a href="files/seafile.html"><abbr title="seafile.php">seafile.php</abbr></a></abbr>
  169. :
  170. <span class="phpdocumentor-element-found-in__line">40</span>
  171. </aside>
  172. <p class="phpdocumentor-summary">Define SeaFile product configuration options.</p>
  173. <code class="phpdocumentor-code phpdocumentor-signature ">
  174. <span class="phpdocumentor-signature__visibility"></span>
  175. <span class="phpdocumentor-signature__name">seafile_ConfigOptions</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  176. <section class="phpdocumentor-description"></section>
  177. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  178. Tags
  179. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  180. </h5>
  181. <dl class="phpdocumentor-tag-list">
  182. <dt class="phpdocumentor-tag-list__entry">
  183. <span class="phpdocumentor-tag__name">see</span>
  184. </dt>
  185. <dd class="phpdocumentor-tag-list__definition">
  186. <span class="phpdocumentor-tag-link"><a href="https://developers.whmcs.com/provisioning-modules/config-options/"><abbr title="https://developers.whmcs.com/provisioning-modules/config-options/">https://developers.whmcs.com/provisioning-modules/config-options/</abbr></a></span>
  187. <section class="phpdocumentor-description"></section>
  188. </dd>
  189. </dl>
  190. </article>
  191. <article class="phpdocumentor-element -function - ">
  192. <h4 class="phpdocumentor-element__name" id="function_seafile_TestConnection">
  193. seafile_TestConnection()
  194. <a href="namespaces/default.html#function_seafile_TestConnection" class="headerlink"><i class="fas fa-link"></i></a>
  195. </h4>
  196. <aside class="phpdocumentor-element-found-in">
  197. <abbr class="phpdocumentor-element-found-in__file" title="seafile.php"><a href="files/seafile.html"><abbr title="seafile.php">seafile.php</abbr></a></abbr>
  198. :
  199. <span class="phpdocumentor-element-found-in__line">70</span>
  200. </aside>
  201. <p class="phpdocumentor-summary">Test connection to a SeaFile server with the given server parameters.</p>
  202. <code class="phpdocumentor-code phpdocumentor-signature ">
  203. <span class="phpdocumentor-signature__visibility"></span>
  204. <span class="phpdocumentor-signature__name">seafile_TestConnection</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$params</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  205. <section class="phpdocumentor-description"><p>Allows an admin user to verify that an API connection can be
  206. successfully made with the given configuration parameters for a
  207. server.</p>
  208. <p>When defined in a module, a Test Connection button will appear
  209. alongside the Server Type dropdown when adding or editing an
  210. existing server.</p>
  211. </section>
  212. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  213. <dl class="phpdocumentor-argument-list">
  214. <dt class="phpdocumentor-argument-list__entry">
  215. <span class="phpdocumentor-signature__argument__name">$params</span>
  216. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  217. </dt>
  218. <dd class="phpdocumentor-argument-list__definition">
  219. <section class="phpdocumentor-description"><p>common module parameters</p>
  220. </section>
  221. </dd>
  222. </dl>
  223. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  224. Tags
  225. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  226. </h5>
  227. <dl class="phpdocumentor-tag-list">
  228. <dt class="phpdocumentor-tag-list__entry">
  229. <span class="phpdocumentor-tag__name">see</span>
  230. </dt>
  231. <dd class="phpdocumentor-tag-list__definition">
  232. <span class="phpdocumentor-tag-link"><a href="https://developers.whmcs.com/provisioning-modules/module-parameters/"><abbr title="https://developers.whmcs.com/provisioning-modules/module-parameters/">https://developers.whmcs.com/provisioning-modules/module-parameters/</abbr></a></span>
  233. <section class="phpdocumentor-description"></section>
  234. </dd>
  235. </dl>
  236. </article>
  237. <article class="phpdocumentor-element -function - ">
  238. <h4 class="phpdocumentor-element__name" id="function_seafile_UsageUpdate">
  239. seafile_UsageUpdate()
  240. <a href="namespaces/default.html#function_seafile_UsageUpdate" class="headerlink"><i class="fas fa-link"></i></a>
  241. </h4>
  242. <aside class="phpdocumentor-element-found-in">
  243. <abbr class="phpdocumentor-element-found-in__file" title="seafile.php"><a href="files/seafile.html"><abbr title="seafile.php">seafile.php</abbr></a></abbr>
  244. :
  245. <span class="phpdocumentor-element-found-in__line">101</span>
  246. </aside>
  247. <p class="phpdocumentor-summary">Usage Update</p>
  248. <code class="phpdocumentor-code phpdocumentor-signature ">
  249. <span class="phpdocumentor-signature__visibility"></span>
  250. <span class="phpdocumentor-signature__name">seafile_UsageUpdate</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$params</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  251. <section class="phpdocumentor-description"><p>Important: Runs daily per server not per product
  252. Run Manually: /admin/reports.php?report=disk_usage_summary&amp;action=updatestats</p>
  253. </section>
  254. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  255. <dl class="phpdocumentor-argument-list">
  256. <dt class="phpdocumentor-argument-list__entry">
  257. <span class="phpdocumentor-signature__argument__name">$params</span>
  258. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  259. </dt>
  260. <dd class="phpdocumentor-argument-list__definition">
  261. <section class="phpdocumentor-description"><p>common module parameters</p>
  262. </section>
  263. </dd>
  264. </dl>
  265. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  266. Tags
  267. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  268. </h5>
  269. <dl class="phpdocumentor-tag-list">
  270. <dt class="phpdocumentor-tag-list__entry">
  271. <span class="phpdocumentor-tag__name">see</span>
  272. </dt>
  273. <dd class="phpdocumentor-tag-list__definition">
  274. <span class="phpdocumentor-tag-link"><a href="https://developers.whmcs.com/provisioning-modules/usage-update/"><abbr title="https://developers.whmcs.com/provisioning-modules/usage-update/">https://developers.whmcs.com/provisioning-modules/usage-update/</abbr></a></span>
  275. <section class="phpdocumentor-description"></section>
  276. </dd>
  277. </dl>
  278. </article>
  279. <article class="phpdocumentor-element -function - ">
  280. <h4 class="phpdocumentor-element__name" id="function_seafile_ClientArea">
  281. seafile_ClientArea()
  282. <a href="namespaces/default.html#function_seafile_ClientArea" class="headerlink"><i class="fas fa-link"></i></a>
  283. </h4>
  284. <aside class="phpdocumentor-element-found-in">
  285. <abbr class="phpdocumentor-element-found-in__file" title="seafile.php"><a href="files/seafile.html"><abbr title="seafile.php">seafile.php</abbr></a></abbr>
  286. :
  287. <span class="phpdocumentor-element-found-in__line">176</span>
  288. </aside>
  289. <p class="phpdocumentor-summary">Client area output logic handling.</p>
  290. <code class="phpdocumentor-code phpdocumentor-signature ">
  291. <span class="phpdocumentor-signature__visibility"></span>
  292. <span class="phpdocumentor-signature__name">seafile_ClientArea</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$params</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  293. <section class="phpdocumentor-description"><p>This function is used to define module specific client area output. It should
  294. return an array consisting of a template file and optional additional
  295. template variables to make available to that template.</p>
  296. <p>The template file you return can be one of two types:</p>
  297. <ul>
  298. <li>
  299. <p>tabOverviewModuleOutputTemplate - The output of the template provided here
  300. will be displayed as part of the default product/service client area
  301. product overview page.</p>
  302. </li>
  303. <li>
  304. <p>tabOverviewReplacementTemplate - Alternatively using this option allows you
  305. to entirely take control of the product/service overview page within the
  306. client area.</p>
  307. </li>
  308. </ul>
  309. <p>Whichever option you choose, extra template variables are defined in the same
  310. way. This demonstrates the use of the full replacement.</p>
  311. <p>Please Note: Using tabOverviewReplacementTemplate means you should display
  312. the standard information such as pricing and billing details in your custom
  313. template or they will not be visible to the end user.</p>
  314. </section>
  315. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  316. <dl class="phpdocumentor-argument-list">
  317. <dt class="phpdocumentor-argument-list__entry">
  318. <span class="phpdocumentor-signature__argument__name">$params</span>
  319. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  320. </dt>
  321. <dd class="phpdocumentor-argument-list__definition">
  322. <section class="phpdocumentor-description"><p>common module parameters</p>
  323. </section>
  324. </dd>
  325. </dl>
  326. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  327. Tags
  328. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  329. </h5>
  330. <dl class="phpdocumentor-tag-list">
  331. <dt class="phpdocumentor-tag-list__entry">
  332. <span class="phpdocumentor-tag__name">see</span>
  333. </dt>
  334. <dd class="phpdocumentor-tag-list__definition">
  335. <span class="phpdocumentor-tag-link"><a href="https://developers.whmcs.com/provisioning-modules/module-parameters/"><abbr title="https://developers.whmcs.com/provisioning-modules/module-parameters/">https://developers.whmcs.com/provisioning-modules/module-parameters/</abbr></a></span>
  336. <section class="phpdocumentor-description"></section>
  337. </dd>
  338. </dl>
  339. </article>
  340. <article class="phpdocumentor-element -function - ">
  341. <h4 class="phpdocumentor-element__name" id="function_seafile_ChangePassword">
  342. seafile_ChangePassword()
  343. <a href="namespaces/default.html#function_seafile_ChangePassword" class="headerlink"><i class="fas fa-link"></i></a>
  344. </h4>
  345. <aside class="phpdocumentor-element-found-in">
  346. <abbr class="phpdocumentor-element-found-in__file" title="seafile.php"><a href="files/seafile.html"><abbr title="seafile.php">seafile.php</abbr></a></abbr>
  347. :
  348. <span class="phpdocumentor-element-found-in__line">239</span>
  349. </aside>
  350. <p class="phpdocumentor-summary">Change the password for a SeaFile account.</p>
  351. <code class="phpdocumentor-code phpdocumentor-signature ">
  352. <span class="phpdocumentor-signature__visibility"></span>
  353. <span class="phpdocumentor-signature__name">seafile_ChangePassword</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$params</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  354. <section class="phpdocumentor-description"><p>Called when a password change is requested. This can occur either due to a
  355. client requesting it via the client area or an admin requesting it from the
  356. admin side.</p>
  357. <p>This option is only available to client end users when the product is in an
  358. active status.</p>
  359. </section>
  360. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  361. <dl class="phpdocumentor-argument-list">
  362. <dt class="phpdocumentor-argument-list__entry">
  363. <span class="phpdocumentor-signature__argument__name">$params</span>
  364. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  365. </dt>
  366. <dd class="phpdocumentor-argument-list__definition">
  367. <section class="phpdocumentor-description"><p>common module parameters</p>
  368. </section>
  369. </dd>
  370. </dl>
  371. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  372. Tags
  373. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  374. </h5>
  375. <dl class="phpdocumentor-tag-list">
  376. <dt class="phpdocumentor-tag-list__entry">
  377. <span class="phpdocumentor-tag__name">see</span>
  378. </dt>
  379. <dd class="phpdocumentor-tag-list__definition">
  380. <span class="phpdocumentor-tag-link"><a href="https://developers.whmcs.com/provisioning-modules/module-parameters/"><abbr title="https://developers.whmcs.com/provisioning-modules/module-parameters/">https://developers.whmcs.com/provisioning-modules/module-parameters/</abbr></a></span>
  381. <section class="phpdocumentor-description"></section>
  382. </dd>
  383. </dl>
  384. </article>
  385. <article class="phpdocumentor-element -function - ">
  386. <h4 class="phpdocumentor-element__name" id="function_seafile_ChangePackage">
  387. seafile_ChangePackage()
  388. <a href="namespaces/default.html#function_seafile_ChangePackage" class="headerlink"><i class="fas fa-link"></i></a>
  389. </h4>
  390. <aside class="phpdocumentor-element-found-in">
  391. <abbr class="phpdocumentor-element-found-in__file" title="seafile.php"><a href="files/seafile.html"><abbr title="seafile.php">seafile.php</abbr></a></abbr>
  392. :
  393. <span class="phpdocumentor-element-found-in__line">298</span>
  394. </aside>
  395. <p class="phpdocumentor-summary">Set a new quota of a SeaFile account.</p>
  396. <code class="phpdocumentor-code phpdocumentor-signature ">
  397. <span class="phpdocumentor-signature__visibility"></span>
  398. <span class="phpdocumentor-signature__name">seafile_ChangePackage</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$params</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  399. <section class="phpdocumentor-description"><p>Called to apply a quota change of the service. It
  400. is called to provision upgrade or downgrade orders, as well as being
  401. able to be invoked manually by an admin user.</p>
  402. <p>This same function is called for upgrades and downgrades of both
  403. products and configurable options.</p>
  404. </section>
  405. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  406. <dl class="phpdocumentor-argument-list">
  407. <dt class="phpdocumentor-argument-list__entry">
  408. <span class="phpdocumentor-signature__argument__name">$params</span>
  409. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  410. </dt>
  411. <dd class="phpdocumentor-argument-list__definition">
  412. <section class="phpdocumentor-description"><p>common module parameters</p>
  413. </section>
  414. </dd>
  415. </dl>
  416. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  417. Tags
  418. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  419. </h5>
  420. <dl class="phpdocumentor-tag-list">
  421. <dt class="phpdocumentor-tag-list__entry">
  422. <span class="phpdocumentor-tag__name">see</span>
  423. </dt>
  424. <dd class="phpdocumentor-tag-list__definition">
  425. <span class="phpdocumentor-tag-link"><a href="https://developers.whmcs.com/provisioning-modules/module-parameters/"><abbr title="https://developers.whmcs.com/provisioning-modules/module-parameters/">https://developers.whmcs.com/provisioning-modules/module-parameters/</abbr></a></span>
  426. <section class="phpdocumentor-description"></section>
  427. </dd>
  428. </dl>
  429. </article>
  430. <article class="phpdocumentor-element -function - ">
  431. <h4 class="phpdocumentor-element__name" id="function_seafile_CreateAccount">
  432. seafile_CreateAccount()
  433. <a href="namespaces/default.html#function_seafile_CreateAccount" class="headerlink"><i class="fas fa-link"></i></a>
  434. </h4>
  435. <aside class="phpdocumentor-element-found-in">
  436. <abbr class="phpdocumentor-element-found-in__file" title="seafile.php"><a href="files/seafile.html"><abbr title="seafile.php">seafile.php</abbr></a></abbr>
  437. :
  438. <span class="phpdocumentor-element-found-in__line">374</span>
  439. </aside>
  440. <p class="phpdocumentor-summary">Provision a new instance of a SeaFile account.</p>
  441. <code class="phpdocumentor-code phpdocumentor-signature ">
  442. <span class="phpdocumentor-signature__visibility"></span>
  443. <span class="phpdocumentor-signature__name">seafile_CreateAccount</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$params</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  444. <section class="phpdocumentor-description"><p>Attempt to provision a new SeaFile account. This is
  445. called any time provisioning is requested inside of WHMCS. Depending upon the
  446. configuration, this can be any of:</p>
  447. <ul>
  448. <li>When a new order is placed</li>
  449. <li>When an invoice for a new order is paid</li>
  450. <li>Upon manual request by an admin user</li>
  451. </ul>
  452. </section>
  453. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  454. <dl class="phpdocumentor-argument-list">
  455. <dt class="phpdocumentor-argument-list__entry">
  456. <span class="phpdocumentor-signature__argument__name">$params</span>
  457. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  458. </dt>
  459. <dd class="phpdocumentor-argument-list__definition">
  460. <section class="phpdocumentor-description"><p>common module parameters</p>
  461. </section>
  462. </dd>
  463. </dl>
  464. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  465. Tags
  466. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  467. </h5>
  468. <dl class="phpdocumentor-tag-list">
  469. <dt class="phpdocumentor-tag-list__entry">
  470. <span class="phpdocumentor-tag__name">see</span>
  471. </dt>
  472. <dd class="phpdocumentor-tag-list__definition">
  473. <span class="phpdocumentor-tag-link"><a href="https://developers.whmcs.com/provisioning-modules/module-parameters/"><abbr title="https://developers.whmcs.com/provisioning-modules/module-parameters/">https://developers.whmcs.com/provisioning-modules/module-parameters/</abbr></a></span>
  474. <section class="phpdocumentor-description"></section>
  475. </dd>
  476. </dl>
  477. </article>
  478. <article class="phpdocumentor-element -function - ">
  479. <h4 class="phpdocumentor-element__name" id="function_seafile_SuspendAccount">
  480. seafile_SuspendAccount()
  481. <a href="namespaces/default.html#function_seafile_SuspendAccount" class="headerlink"><i class="fas fa-link"></i></a>
  482. </h4>
  483. <aside class="phpdocumentor-element-found-in">
  484. <abbr class="phpdocumentor-element-found-in__file" title="seafile.php"><a href="files/seafile.html"><abbr title="seafile.php">seafile.php</abbr></a></abbr>
  485. :
  486. <span class="phpdocumentor-element-found-in__line">464</span>
  487. </aside>
  488. <p class="phpdocumentor-summary">Set a SeaFile account to status inactive.</p>
  489. <code class="phpdocumentor-code phpdocumentor-signature ">
  490. <span class="phpdocumentor-signature__visibility"></span>
  491. <span class="phpdocumentor-signature__name">seafile_SuspendAccount</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$params</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  492. <section class="phpdocumentor-description"><p>Called when a suspension is requested. This is invoked automatically by WHMCS
  493. when a product becomes overdue on payment or can be called manually by admin
  494. user.</p>
  495. </section>
  496. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  497. <dl class="phpdocumentor-argument-list">
  498. <dt class="phpdocumentor-argument-list__entry">
  499. <span class="phpdocumentor-signature__argument__name">$params</span>
  500. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  501. </dt>
  502. <dd class="phpdocumentor-argument-list__definition">
  503. <section class="phpdocumentor-description"><p>common module parameters</p>
  504. </section>
  505. </dd>
  506. </dl>
  507. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  508. Tags
  509. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  510. </h5>
  511. <dl class="phpdocumentor-tag-list">
  512. <dt class="phpdocumentor-tag-list__entry">
  513. <span class="phpdocumentor-tag__name">see</span>
  514. </dt>
  515. <dd class="phpdocumentor-tag-list__definition">
  516. <span class="phpdocumentor-tag-link"><a href="https://developers.whmcs.com/provisioning-modules/module-parameters/"><abbr title="https://developers.whmcs.com/provisioning-modules/module-parameters/">https://developers.whmcs.com/provisioning-modules/module-parameters/</abbr></a></span>
  517. <section class="phpdocumentor-description"></section>
  518. </dd>
  519. </dl>
  520. </article>
  521. <article class="phpdocumentor-element -function - ">
  522. <h4 class="phpdocumentor-element__name" id="function_seafile_UnsuspendAccount">
  523. seafile_UnsuspendAccount()
  524. <a href="namespaces/default.html#function_seafile_UnsuspendAccount" class="headerlink"><i class="fas fa-link"></i></a>
  525. </h4>
  526. <aside class="phpdocumentor-element-found-in">
  527. <abbr class="phpdocumentor-element-found-in__file" title="seafile.php"><a href="files/seafile.html"><abbr title="seafile.php">seafile.php</abbr></a></abbr>
  528. :
  529. <span class="phpdocumentor-element-found-in__line">503</span>
  530. </aside>
  531. <p class="phpdocumentor-summary">Set a SeaFile account to status active.</p>
  532. <code class="phpdocumentor-code phpdocumentor-signature ">
  533. <span class="phpdocumentor-signature__visibility"></span>
  534. <span class="phpdocumentor-signature__name">seafile_UnsuspendAccount</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$params</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  535. <section class="phpdocumentor-description"><p>Called when an un-suspension is requested. This is invoked
  536. automatically upon payment of an overdue invoice for a product, or
  537. can be called manually by admin user.</p>
  538. </section>
  539. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  540. <dl class="phpdocumentor-argument-list">
  541. <dt class="phpdocumentor-argument-list__entry">
  542. <span class="phpdocumentor-signature__argument__name">$params</span>
  543. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  544. </dt>
  545. <dd class="phpdocumentor-argument-list__definition">
  546. <section class="phpdocumentor-description"><p>common module parameters</p>
  547. </section>
  548. </dd>
  549. </dl>
  550. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  551. Tags
  552. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  553. </h5>
  554. <dl class="phpdocumentor-tag-list">
  555. <dt class="phpdocumentor-tag-list__entry">
  556. <span class="phpdocumentor-tag__name">see</span>
  557. </dt>
  558. <dd class="phpdocumentor-tag-list__definition">
  559. <span class="phpdocumentor-tag-link"><a href="https://developers.whmcs.com/provisioning-modules/module-parameters/"><abbr title="https://developers.whmcs.com/provisioning-modules/module-parameters/">https://developers.whmcs.com/provisioning-modules/module-parameters/</abbr></a></span>
  560. <section class="phpdocumentor-description"></section>
  561. </dd>
  562. </dl>
  563. </article>
  564. <article class="phpdocumentor-element -function - ">
  565. <h4 class="phpdocumentor-element__name" id="function_seafile_TerminateAccount">
  566. seafile_TerminateAccount()
  567. <a href="namespaces/default.html#function_seafile_TerminateAccount" class="headerlink"><i class="fas fa-link"></i></a>
  568. </h4>
  569. <aside class="phpdocumentor-element-found-in">
  570. <abbr class="phpdocumentor-element-found-in__file" title="seafile.php"><a href="files/seafile.html"><abbr title="seafile.php">seafile.php</abbr></a></abbr>
  571. :
  572. <span class="phpdocumentor-element-found-in__line">542</span>
  573. </aside>
  574. <p class="phpdocumentor-summary">Removes a SeaFile account.</p>
  575. <code class="phpdocumentor-code phpdocumentor-signature ">
  576. <span class="phpdocumentor-signature__visibility"></span>
  577. <span class="phpdocumentor-signature__name">seafile_TerminateAccount</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$params</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  578. <section class="phpdocumentor-description"><p>Called when a termination is requested. This can be invoked automatically for
  579. overdue products if enabled, or requested manually by an admin user.</p>
  580. </section>
  581. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  582. <dl class="phpdocumentor-argument-list">
  583. <dt class="phpdocumentor-argument-list__entry">
  584. <span class="phpdocumentor-signature__argument__name">$params</span>
  585. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  586. </dt>
  587. <dd class="phpdocumentor-argument-list__definition">
  588. <section class="phpdocumentor-description"><p>common module parameters</p>
  589. </section>
  590. </dd>
  591. </dl>
  592. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  593. Tags
  594. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  595. </h5>
  596. <dl class="phpdocumentor-tag-list">
  597. <dt class="phpdocumentor-tag-list__entry">
  598. <span class="phpdocumentor-tag__name">see</span>
  599. </dt>
  600. <dd class="phpdocumentor-tag-list__definition">
  601. <span class="phpdocumentor-tag-link"><a href="https://developers.whmcs.com/provisioning-modules/module-parameters/"><abbr title="https://developers.whmcs.com/provisioning-modules/module-parameters/">https://developers.whmcs.com/provisioning-modules/module-parameters/</abbr></a></span>
  602. <section class="phpdocumentor-description"></section>
  603. </dd>
  604. </dl>
  605. </article>
  606. <article class="phpdocumentor-element -function - ">
  607. <h4 class="phpdocumentor-element__name" id="function_seafileCheckPassword">
  608. seafileCheckPassword()
  609. <a href="namespaces/default.html#function_seafileCheckPassword" class="headerlink"><i class="fas fa-link"></i></a>
  610. </h4>
  611. <aside class="phpdocumentor-element-found-in">
  612. <abbr class="phpdocumentor-element-found-in__file" title="seafile.php"><a href="files/seafile.html"><abbr title="seafile.php">seafile.php</abbr></a></abbr>
  613. :
  614. <span class="phpdocumentor-element-found-in__line">583</span>
  615. </aside>
  616. <p class="phpdocumentor-summary">server side password check</p>
  617. <code class="phpdocumentor-code phpdocumentor-signature ">
  618. <span class="phpdocumentor-signature__visibility"></span>
  619. <span class="phpdocumentor-signature__name">seafileCheckPassword</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$pwd</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  620. <section class="phpdocumentor-description"><p>recheck the client side password check
  621. in case that the client side check has been disabled</p>
  622. </section>
  623. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  624. <dl class="phpdocumentor-argument-list">
  625. <dt class="phpdocumentor-argument-list__entry">
  626. <span class="phpdocumentor-signature__argument__name">$pwd</span>
  627. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  628. </dt>
  629. <dd class="phpdocumentor-argument-list__definition">
  630. <section class="phpdocumentor-description"><p>password</p>
  631. </section>
  632. </dd>
  633. </dl>
  634. </article>
  635. </section>
  636. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  637. <section class="phpdocumentor-search-results__dialog">
  638. <header class="phpdocumentor-search-results__header">
  639. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  640. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  641. </header>
  642. <section class="phpdocumentor-search-results__body">
  643. <ul class="phpdocumentor-search-results__entries"></ul>
  644. </section>
  645. </section>
  646. </section>
  647. </div>
  648. </div>
  649. <a href="index.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  650. </main>
  651. <script>
  652. cssVars({});
  653. </script>
  654. </body>
  655. </html>