seafile.html 43 KB

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