default.html 43 KB

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