|
21 | 21 | * \brief Page administration module SellYourSaas |
22 | 22 | */ |
23 | 23 |
|
| 24 | +/** |
| 25 | + * @var Conf $conf |
| 26 | + * @var DoliDB $db |
| 27 | + */ |
24 | 28 |
|
25 | 29 | if (! defined('NOSCANPOSTFORINJECTION')) { |
26 | 30 | define('NOSCANPOSTFORINJECTION', '1'); |
|
231 | 235 | print '<span class="opacitymedium">'.$langs->trans("Prerequisites")." :</span><br>\n"; |
232 | 236 | print 'Function <b>idn_to_ascii</b> available: '.(function_exists('idn_to_ascii') ? img_picto('', 'tick', 'class="paddingrightonly"').yn(1) : img_picto('', 'warning', 'class="paddingrightonly"').yn(0)).'<br>'; |
233 | 237 | print 'Function <b>checkdnsrr</b> available: '.(function_exists('checkdnsrr') ? img_picto('', 'tick', 'class="paddingrightonly"').yn(1) : img_picto('', 'warning', 'class="paddingrightonly"').yn(0)).'<br>'; |
234 | | -print 'Parameter <b>allow_url_fopen</b> is on: '.(ini_get('allow_url_fopen') ? img_picto('', 'tick', 'class="paddingrightonly"').yn(1) : img_picto('', 'warning', 'class="paddingrightonly"').yn(0)).'<br>'; |
| 238 | +print 'Parameter <b>allow_url_fopen</b> is on: '.(ini_get('allow_url_fopen') ? img_picto('', 'tick', 'class="paddingrightonly"').yn(1).' (may be used by deployed applications)' : img_picto('', 'warning', 'class="paddingrightonly"').yn(0)).'<br>'; |
235 | 239 | $arrayoffunctionsdisabled = explode(',', ini_get('disable_functions')); |
236 | 240 | if (in_array('exec', $arrayoffunctionsdisabled)) { |
237 | 241 | print "Parameter <b>disable_functions</b>: ".img_picto('', 'error', 'class="paddingrightonly"')." Bad. Must not contain 'exec'<br>"; |
238 | 242 | } else { |
239 | | - print 'Parameter <b>disable_functions</b>: '.img_picto('', 'tick', 'class="paddingrightonly"').' does not contains: exec<br>'; |
| 243 | + print 'Parameter <b>disable_functions</b>: '.img_picto('', 'tick', 'class="paddingrightonly"').' does not contains: exec (used by Dolibarr)<br>'; |
240 | 244 | } |
241 | 245 | if (in_array('popen', $arrayoffunctionsdisabled)) { |
242 | 246 | print "Parameter <b>disable_functions</b>: ".img_picto('', 'error', 'class="paddingrightonly"')." Bad. Must not contain 'popen'<br>"; |
|
299 | 303 | } |
300 | 304 |
|
301 | 305 | print '<tr class="oddeven"><td class="fieldrequired">'.$langs->trans("SellYourSaasMainEmail").'</td>'; |
302 | | -print '<td>'; |
| 306 | +print '<td class="nowraponall">'; |
| 307 | +print img_picto('', 'email', 'class="pictofixedwidth"'); |
303 | 308 | print '<input type="text" name="SELLYOURSAAS_MAIN_EMAIL" value="'.getDolGlobalString('SELLYOURSAAS_MAIN_EMAIL').'" class="minwidth300">'; |
304 | 309 | print '</td>'; |
305 | 310 | print '<td><span class="opacitymedium small">[email protected]</span></td>'; |
306 | 311 | print '</tr>'; |
307 | 312 |
|
308 | 313 | print '<tr class="oddeven"><td>'.$langs->trans("SellYourSaasMainEmail").' (Premium)</td>'; |
309 | | -print '<td>'; |
| 314 | +print '<td class="nowraponall">'; |
| 315 | +print img_picto('', 'email', 'class="pictofixedwidth"'); |
310 | 316 | print '<input type="text" name="SELLYOURSAAS_MAIN_EMAIL_PREMIUM" value="'.getDolGlobalString('SELLYOURSAAS_MAIN_EMAIL_PREMIUM').'" class="minwidth300">'; |
311 | 317 | print '</td>'; |
312 | 318 | print '<td><span class="opacitymedium small">[email protected]</span></td>'; |
313 | 319 | print '</tr>'; |
314 | 320 |
|
315 | 321 | print '<tr class="oddeven"><td class="fieldrequired">'.$langs->trans("SellYourSaasSupervisionEmail").'</td>'; |
316 | | -print '<td>'; |
| 322 | +print '<td class="nowraponall">'; |
| 323 | +print img_picto('', 'email', 'class="pictofixedwidth"'); |
317 | 324 | print '<input type="text" name="SELLYOURSAAS_SUPERVISION_EMAIL" value="'.getDolGlobalString('SELLYOURSAAS_SUPERVISION_EMAIL').'" class="minwidth300">'; |
318 | 325 | print '</td>'; |
319 | 326 | print '<td><span class="opacitymedium small">[email protected]</span></td>'; |
320 | 327 | print '</tr>'; |
321 | 328 |
|
322 | 329 | print '<tr class="oddeven"><td class="fieldrequired">'.$langs->trans("SellYourSaasNoReplyEmail").'</td>'; |
323 | | -print '<td>'; |
| 330 | +print '<td class="nowraponall">'; |
| 331 | +print img_picto('', 'email', 'class="pictofixedwidth"'); |
324 | 332 | print '<input type="text" name="SELLYOURSAAS_NOREPLY_EMAIL" value="'.getDolGlobalString('SELLYOURSAAS_NOREPLY_EMAIL').'" class="minwidth300">'; |
325 | 333 | print '</td>'; |
326 | 334 | print '<td><span class="opacitymedium small">[email protected]</span></td>'; |
|
371 | 379 | */ |
372 | 380 |
|
373 | 381 | print '<tr class="oddeven"><td class="fieldrequired">'.$langs->trans("SellYourSaasAccountUrl").'</td>'; |
374 | | -print '<td>'; |
| 382 | +print '<td class="nowraponall">'; |
| 383 | +if (getDolGlobalString('SELLYOURSAAS_ACCOUNT_URL')) { |
| 384 | + print '<a href="'.getDolGlobalString('SELLYOURSAAS_ACCOUNT_URL').'" target="_blank">'; |
| 385 | +} |
| 386 | +print img_picto('', 'url', 'class="pictofixedwidth"'); |
| 387 | +if (getDolGlobalString('SELLYOURSAAS_ACCOUNT_URL')) { |
| 388 | + print '</a>'; |
| 389 | +} |
375 | 390 | print '<input class="minwidth300" type="text" name="SELLYOURSAAS_ACCOUNT_URL" value="'.getDolGlobalString('SELLYOURSAAS_ACCOUNT_URL').'">'; |
376 | 391 | print '</td>'; |
377 | 392 | print '<td><span class="opacitymedium small wordbreak">https://myaccount.mysaasdomainname.com<br>Note: The virtual host for this domain must point to <strong>'.dol_buildpath('sellyoursaas/myaccount').'</strong></span></td>'; |
|
381 | 396 | print '<!-- suffix = '.$suffix.' -->'."\n"; |
382 | 397 |
|
383 | 398 | print '<tr class="oddeven"><td>'.($service ? $service.' - ' : '').$langs->trans("SellYourSaasPricesUrl").'</td>'; |
384 | | - print '<td>'; |
| 399 | + print '<td class="nowraponall">'; |
385 | 400 | $constname = 'SELLYOURSAAS_PRICES_URL'.$suffix; |
| 401 | + if (getDolGlobalString($constname)) { |
| 402 | + print '<a href="'.getDolGlobalString($constname).'" target="_blank">'; |
| 403 | + } |
| 404 | + print img_picto('', 'url', 'class="pictofixedwidth"'); |
| 405 | + if (getDolGlobalString($constname)) { |
| 406 | + print '</a>'; |
| 407 | + } |
386 | 408 | print '<!-- constname = '.$constname.' -->'; |
387 | | - print '<input class="minwidth300" type="text" name="SELLYOURSAAS_PRICES_URL'.$suffix.'" value="'.getDolGlobalString('SELLYOURSAAS_PRICES_URL'.$suffix).'">'; |
| 409 | + print '<input class="minwidth300" type="text" name="SELLYOURSAAS_PRICES_URL'.$suffix.'" value="'.getDolGlobalString($constname).'">'; |
388 | 410 | print '</td>'; |
389 | 411 | print '<td><span class="opacitymedium small">https://myaccount.mysaasdomainname.com/prices.html</span></td>'; |
390 | 412 | print '</tr>'; |
|
0 commit comments