31 require
'../main.inc.php';
32 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
33 require_once DOL_DOCUMENT_ROOT.
'/core/lib/pdf.lib.php';
34 require_once DOL_DOCUMENT_ROOT.
'/comm/propal/class/propal.class.php';
35 require_once DOL_DOCUMENT_ROOT.
'/core/lib/propal.lib.php';
38 $langs->loadLangs(array(
"admin",
"other",
"errors",
"propal"));
42 $action =
GETPOST(
'action',
'aZ09');
43 $value =
GETPOST(
'value',
'alpha');
44 $label =
GETPOST(
'label',
'alpha');
45 $scandir =
GETPOST(
'scan_dir',
'alpha');
52 include DOL_DOCUMENT_ROOT.
'/core/actions_setmoduleoptions.inc.php';
55 if ($action ==
'updateMask') {
56 $maskconstpropal =
GETPOST(
'maskconstpropal',
'alpha');
57 $maskpropal =
GETPOST(
'maskpropal',
'alpha');
58 if ($maskconstpropal) $res =
dolibarr_set_const($db, $maskconstpropal, $maskpropal,
'chaine', 0,
'', $conf->entity);
60 if (!($res > 0)) $error++;
68 } elseif ($action ==
'specimen') {
69 $modele =
GETPOST(
'module',
'alpha');
72 $propal->initAsSpecimen();
75 $file =
''; $classname =
''; $filefound = 0;
76 $dirmodels = array_merge(array(
'/'), (array) $conf->modules_parts[
'models']);
77 foreach ($dirmodels as $reldir)
79 $file =
dol_buildpath($reldir.
"core/modules/propale/doc/pdf_".$modele.
".modules.php");
80 if (file_exists($file))
83 $classname =
"pdf_".$modele;
91 $module =
new $classname($db);
93 if ($module->write_file($propal, $langs) > 0)
95 header(
"Location: ".DOL_URL_ROOT.
"/document.php?modulepart=propal&file=SPECIMEN.pdf");
103 dol_syslog($langs->trans(
"ErrorModuleNotFound"), LOG_ERR);
105 } elseif ($action ==
'setribchq') {
106 $rib =
GETPOST(
'rib',
'alpha');
107 $chq =
GETPOST(
'chq',
'alpha');
109 $res =
dolibarr_set_const($db,
"FACTURE_RIB_NUMBER", $rib,
'chaine', 0,
'', $conf->entity);
110 $res =
dolibarr_set_const($db,
"FACTURE_CHQ_NUMBER", $chq,
'chaine', 0,
'', $conf->entity);
112 if (!($res > 0)) $error++;
120 } elseif ($action ==
'set_PROPALE_DRAFT_WATERMARK') {
121 $draft =
GETPOST(
'PROPALE_DRAFT_WATERMARK',
'alpha');
123 $res =
dolibarr_set_const($db,
"PROPALE_DRAFT_WATERMARK", trim($draft),
'chaine', 0,
'', $conf->entity);
124 if (!($res > 0)) $error++;
132 } elseif ($action ==
'set_PROPOSAL_FREE_TEXT') {
133 $freetext =
GETPOST(
'PROPOSAL_FREE_TEXT',
'restricthtml');
135 $res =
dolibarr_set_const($db,
"PROPOSAL_FREE_TEXT", $freetext,
'chaine', 0,
'', $conf->entity);
137 if (!($res > 0)) $error++;
145 } elseif ($action ==
'setdefaultduration') {
146 $res =
dolibarr_set_const($db,
"PROPALE_VALIDITY_DURATION", $value,
'chaine', 0,
'', $conf->entity);
148 if (!($res > 0)) $error++;
156 } elseif ($action ==
'set_BANK_ASK_PAYMENT_BANK_DURING_PROPOSAL') {
157 $res =
dolibarr_set_const($db,
"BANK_ASK_PAYMENT_BANK_DURING_PROPOSAL", $value,
'chaine', 0,
'', $conf->entity);
159 if (!($res > 0)) $error++;
166 } elseif ($action ==
'set') {
169 } elseif ($action ==
'del') {
172 if ($conf->global->PROPALE_ADDON_PDF ==
"$value")
dolibarr_del_const($db,
'PROPALE_ADDON_PDF', $conf->entity);
174 } elseif ($action ==
'setdoc') {
175 if (
dolibarr_set_const($db,
"PROPALE_ADDON_PDF", $value,
'chaine', 0,
'', $conf->entity)) {
176 $conf->global->PROPALE_ADDON_PDF = $value;
184 } elseif ($action ==
'setmod') {
196 $form =
new Form($db);
198 $dirmodels = array_merge(array(
'/'), (array) $conf->modules_parts[
'models']);
200 llxHeader(
'', $langs->trans(
"PropalSetup"));
204 $linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
216 print '<table class="noborder centpercent">';
217 print
'<tr class="liste_titre">';
218 print
'<td>'.$langs->trans(
"Name").
"</td>\n";
219 print
'<td>'.$langs->trans(
"Description").
"</td>\n";
220 print
'<td class="nowrap">'.$langs->trans(
"Example").
"</td>\n";
221 print
'<td align="center" width="60">'.$langs->trans(
"Status").
'</td>';
222 print
'<td align="center" width="16">'.$langs->trans(
"ShortInfo").
'</td>';
227 foreach ($dirmodels as $reldir)
233 $handle = opendir($dir);
234 if (is_resource($handle))
236 while (($file = readdir($handle)) !==
false)
238 if (substr($file, 0, 12) ==
'mod_propale_' && substr($file,
dol_strlen($file) - 3, 3) ==
'php')
240 $file = substr($file, 0,
dol_strlen($file) - 4);
242 require_once $dir.
'/'.$file.
'.php';
247 if ($module->version ==
'development' && $conf->global->MAIN_FEATURES_LEVEL < 2)
continue;
248 if ($module->version ==
'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1)
continue;
250 if ($module->isEnabled())
252 print
'<tr class="oddeven"><td>'.$module->nom.
"</td><td>\n";
253 print $module->info();
257 print
'<td class="nowrap">';
258 $tmp = $module->getExample();
259 if (preg_match(
'/^Error/', $tmp)) {
260 $langs->load(
"errors");
261 print
'<div class="error">'.$langs->trans($tmp).
'</div>';
262 } elseif ($tmp ==
'NotConfigured') print $langs->trans($tmp);
266 print '<td class="center">';
267 if ($conf->global->PROPALE_ADDON == "$file")
269 print
img_picto($langs->trans(
"Activated"),
'switch_on');
271 print
'<a class="reposition" href="'.$_SERVER[
"PHP_SELF"].
'?action=setmod&token='.
newToken().
'&value='.urlencode($file).
'">';
272 print
img_picto($langs->trans(
"Disabled"),
'switch_off');
277 $propal =
new Propal($db);
278 $propal->initAsSpecimen();
282 $htmltooltip .=
''.$langs->trans(
"Version").
': <b>'.$module->getVersion().
'</b><br>';
284 $nextval = $module->getNextValue($mysoc, $propal);
285 if (
"$nextval" != $langs->trans(
"NotAvailable")) {
286 $htmltooltip .=
''.$langs->trans(
"NextValue").
': ';
288 if (preg_match(
'/^Error/', $nextval) || $nextval ==
'NotConfigured')
289 $nextval = $langs->trans($nextval);
290 $htmltooltip .= $nextval.
'<br>';
292 $htmltooltip .= $langs->trans($module->error).
'<br>';
296 print
'<td class="center">';
297 print $form->textwithpicto(
'', $htmltooltip, 1, 0);
308 print
"</table><br>\n";
320 $sql .=
" FROM ".MAIN_DB_PREFIX.
"document_model";
321 $sql .=
" WHERE type = '".$db->escape($type).
"'";
322 $sql .=
" AND entity = ".$conf->entity;
323 $resql = $db->query($sql);
327 $num_rows = $db->num_rows(
$resql);
328 while ($i < $num_rows)
330 $array = $db->fetch_array(
$resql);
331 array_push($def, $array[0]);
339 print
"<table class=\"noborder\" width=\"100%\">\n";
340 print
"<tr class=\"liste_titre\">\n";
341 print
" <td>".$langs->trans(
"Name").
"</td>\n";
342 print
" <td>".$langs->trans(
"Description").
"</td>\n";
343 print
'<td align="center" width="40">'.$langs->trans(
"Status").
"</td>\n";
344 print
'<td align="center" width="40">'.$langs->trans(
"Default").
"</td>\n";
345 print
'<td align="center" width="40">'.$langs->trans(
"ShortInfo").
'</td>';
346 print
'<td align="center" width="40">'.$langs->trans(
"Preview").
'</td>';
351 foreach ($dirmodels as $reldir)
353 foreach (array(
'',
'/doc') as $valdir)
355 $realpath = $reldir.
"core/modules/propale".$valdir;
360 $handle = opendir($dir);
361 if (is_resource($handle))
363 while (($file = readdir($handle)) !==
false)
370 foreach ($filelist as $file)
372 if (preg_match(
'/\.modules\.php$/i', $file) && preg_match(
'/^(pdf_|doc_)/', $file))
374 if (file_exists($dir.
'/'.$file))
376 $name = substr($file, 4,
dol_strlen($file) - 16);
377 $classname = substr($file, 0,
dol_strlen($file) - 12);
379 require_once $dir.
'/'.$file;
380 $module =
new $classname($db);
382 $modulequalified = 1;
383 if ($module->version ==
'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) $modulequalified = 0;
384 if ($module->version ==
'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) $modulequalified = 0;
386 if ($modulequalified)
389 print
'<tr class="oddeven"><td width="100">';
390 print (empty($module->name) ? $name : $module->name);
392 if (method_exists($module,
'info')) print $module->info($langs);
393 else print $module->description;
397 if (in_array($name, $def))
399 print
'<td class="center">'.
"\n";
400 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=del&token='.
newToken().
'&value='.$name.
'">';
401 print
img_picto($langs->trans(
"Enabled"),
'switch_on');
405 print
"<td align=\"center\">\n";
406 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=set&token='.
newToken().
'&value='.$name.
'&scan_dir='.$module->scandir.
'&label='.urlencode($module->name).
'">'.
img_picto($langs->trans(
"Disabled"),
'switch_off').
'</a>';
411 print
"<td align=\"center\">";
412 if ($conf->global->PROPALE_ADDON_PDF ==
"$name")
414 print
img_picto($langs->trans(
"Default"),
'on');
416 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=setdoc&token='.
newToken().
'&value='.$name.
'&scan_dir='.$module->scandir.
'&label='.urlencode($module->name).
'" alt="'.$langs->trans(
"Default").
'">'.
img_picto($langs->trans(
"Disabled"),
'off').
'</a>';
421 $htmltooltip = $langs->trans(
"Name").
': '.$module->name;
422 $htmltooltip .=
'<br>'.$langs->trans(
"Type").
': '.($module->type ? $module->type : $langs->trans(
"Unknown"));
423 if ($module->type ==
'pdf')
425 $htmltooltip .=
'<br>'.$langs->trans(
"Width").
'/'.$langs->trans(
"Height").
': '.$module->page_largeur.
'/'.$module->page_hauteur;
427 $htmltooltip .=
'<br>'.$langs->trans(
"Path").
': '.preg_replace(
'/^\//',
'', $realpath).
'/'.$file;
429 $htmltooltip .=
'<br><br><u>'.$langs->trans(
"FeaturesSupported").
':</u>';
430 $htmltooltip .=
'<br>'.$langs->trans(
"Logo").
': '.
yn($module->option_logo, 1, 1);
431 $htmltooltip .=
'<br>'.$langs->trans(
"PaymentMode").
': '.
yn($module->option_modereg, 1, 1);
432 $htmltooltip .=
'<br>'.$langs->trans(
"PaymentConditions").
': '.
yn($module->option_condreg, 1, 1);
433 $htmltooltip .=
'<br>'.$langs->trans(
"MultiLanguage").
': '.
yn($module->option_multilang, 1, 1);
436 $htmltooltip .=
'<br>'.$langs->trans(
"WatermarkOnDraftProposal").
': '.
yn($module->option_draft_watermark, 1, 1);
439 print
'<td class="center">';
440 print $form->textwithpicto(
'', $htmltooltip, 1, 0);
444 print
'<td class="center">';
445 if ($module->type ==
'pdf')
447 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=specimen&module='.$name.
'">'.
img_object($langs->trans(
"Preview"),
'pdf').
'</a>';
449 print
img_object($langs->trans(
"PreviewNotAvailable"),
'generic');
471 print
load_fiche_titre($langs->trans(
"SuggestedPaymentModesIfNotDefinedInProposal"),
'',
'');
473 print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
474 print
'<input type="hidden" name="token" value="'.newToken().
'" />';
476 print
'<table class="noborder centpercent">';
478 print
'<tr class="liste_titre">';
480 print
'<input type="hidden" name="action" value="setribchq">';
481 print $langs->trans(
"PaymentMode").
'</td>';
482 print
'<td align="right">';
483 if (empty($conf->facture->enabled)) {
484 print
'<input type="submit" class="button" value="'.$langs->trans(
"Modify").
'">';
489 print
'<tr class="oddeven">';
490 print
"<td>".$langs->trans(
"SuggestPaymentByRIBOnAccount").
"</td>";
492 if (empty($conf->facture->enabled))
494 if (!empty($conf->banque->enabled))
496 $sql =
"SELECT rowid, label";
497 $sql .=
" FROM ".MAIN_DB_PREFIX.
"bank_account";
498 $sql .=
" WHERE clos = 0";
499 $sql .=
" AND courant = 1";
500 $sql .=
" AND entity IN (".getEntity(
'bank_account').
")";
501 $resql = $db->query($sql);
504 $num = $db->num_rows(
$resql);
508 print
'<select name="rib" class="flat" id="rib">';
509 print
'<option value="0">'.$langs->trans(
"DoNotSuggestPaymentMode").
'</option>';
512 $row = $db->fetch_row(
$resql);
514 print
'<option value="'.$row[0].
'"';
515 print $conf->global->FACTURE_RIB_NUMBER == $row[0] ?
' selected' :
'';
516 print
'>'.$row[1].
'</option>';
522 print
"<i>".$langs->trans(
"NoActiveBankAccountDefined").
"</i>";
526 print
'<span class="opacitymedium">'.$langs->trans(
"BankModuleNotActive").
'</span>';
529 print
'<span class="opacitymedium">'.$langs->trans(
"SeeSetupOfModule", $langs->transnoentitiesnoconv(
"Module30Name")).
'</span>';
533 print
'<tr class="oddeven">';
534 print
"<td>".$langs->trans(
"SuggestPaymentByChequeToAddress").
"</td>";
536 if (empty($conf->facture->enabled))
538 print
'<select class="flat" name="chq" id="chq">';
539 print
'<option value="0">'.$langs->trans(
"DoNotSuggestPaymentMode").
'</option>';
540 print
'<option value="-1"'.($conf->global->FACTURE_CHQ_NUMBER ?
' selected' :
'').
'>'.$langs->trans(
"MenuCompanySetup").
' ('.($mysoc->name ? $mysoc->name : $langs->trans(
"NotDefined")).
')</option>';
542 $sql =
"SELECT rowid, label";
543 $sql .=
" FROM ".MAIN_DB_PREFIX.
"bank_account";
544 $sql .=
" WHERE clos = 0";
545 $sql .=
" AND courant = 1";
546 $sql .=
" AND entity IN (".getEntity(
'bank_account').
")";
548 $resql = $db->query($sql);
551 $num = $db->num_rows(
$resql);
555 $row = $db->fetch_row(
$resql);
557 print
'<option value="'.$row[0].
'"';
558 print $conf->global->FACTURE_CHQ_NUMBER == $row[0] ?
' selected' :
'';
559 print
'>'.$langs->trans(
"OwnerOfBankAccount", $row[1]).
'</option>';
566 print
'<span class="opacitymedium">'.$langs->trans(
"SeeSetupOfModule", $langs->transnoentitiesnoconv(
"Module30Name")).
'</span>';
582 print
"<table class=\"noborder\" width=\"100%\">";
583 print
"<tr class=\"liste_titre\">";
584 print
"<td>".$langs->trans(
"Parameter").
"</td>\n";
585 print
'<td width="60" align="center">'.$langs->trans(
"Value").
"</td>\n";
586 print
"<td> </td>\n";
590 print
"<form method=\"post\" action=\"".$_SERVER[
"PHP_SELF"].
"\">";
591 print
'<input type="hidden" name="token" value="'.newToken().
'">';
592 print
"<input type=\"hidden\" name=\"action\" value=\"setdefaultduration\">";
593 print
'<tr class="oddeven">';
594 print
'<td>'.$langs->trans(
"DefaultProposalDurationValidity").
'</td>';
595 print
'<td width="60" align="center">'.
"<input size=\"3\" class=\"flat\" type=\"text\" name=\"value\" value=\"".$conf->global->PROPALE_VALIDITY_DURATION.
"\"></td>";
596 print
'<td class="right"><input type="submit" class="button" value="'.$langs->trans(
"Modify").
'"></td>';
615 $substitutionarray[
'__(AnyTranslationKey)__'] = $langs->trans(
"Translation");
616 $htmltext =
'<i>'.$langs->trans(
"AvailableVariables").
':<br>';
617 foreach ($substitutionarray as $key => $val) $htmltext .= $key.
'<br>';
620 print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
621 print
'<input type="hidden" name="token" value="'.newToken().
'">';
622 print
'<input type="hidden" name="action" value="set_PROPOSAL_FREE_TEXT">';
623 print
'<tr class="oddeven"><td colspan="2">';
624 print $form->textwithpicto($langs->trans(
"FreeLegalTextOnProposal"), $langs->trans(
"AddCRIfTooLong").
'<br><br>'.$htmltext, 1,
'help',
'', 0, 2,
'freetexttooltip').
'<br>';
625 $variablename =
'PROPOSAL_FREE_TEXT';
626 if (empty($conf->global->PDF_ALLOW_HTML_FOR_FREE_TEXT))
628 print
'<textarea name="'.$variablename.
'" class="flat" cols="120">'.$conf->global->$variablename.
'</textarea>';
630 include_once DOL_DOCUMENT_ROOT.
'/core/class/doleditor.class.php';
631 $doleditor =
new DolEditor($variablename, $conf->global->$variablename,
'', 80,
'dolibarr_notes');
632 print $doleditor->Create();
634 print
'</td><td class="right">';
635 print
'<input type="submit" class="button" value="'.$langs->trans(
"Modify").
'">';
636 print
"</td></tr>\n";
640 print
"<form method=\"post\" action=\"".$_SERVER[
"PHP_SELF"].
"\">";
641 print
'<input type="hidden" name="token" value="'.newToken().
'">';
642 print
"<input type=\"hidden\" name=\"action\" value=\"set_PROPALE_DRAFT_WATERMARK\">";
643 print
'<tr class="oddeven"><td>';
644 print $form->textwithpicto($langs->trans(
"WatermarkOnDraftProposal"), $htmltext, 1,
'help',
'', 0, 2,
'watermarktooltip').
'<br>';
646 print
'<input class="flat minwidth200" type="text" name="PROPALE_DRAFT_WATERMARK" value="'.$conf->global->PROPALE_DRAFT_WATERMARK.
'">';
647 print
'</td><td class="right">';
648 print
'<input type="submit" class="button" value="'.$langs->trans(
"Modify").
'">';
649 print
"</td></tr>\n";
693 print
"<table class=\"noborder\" width=\"100%\">\n";
694 print
"<tr class=\"liste_titre\">\n";
695 print
" <td>".$langs->trans(
"Name").
"</td>\n";
696 print
" <td>".$langs->trans(
"Value").
"</td>\n";
698 print
"<tr class=\"oddeven\">\n <td width=\"140\">".$langs->trans(
"PathDirectory").
"</td>\n <td>".$conf->propal->multidir_output[$conf->entity].
"</td>\n</tr>\n";
699 print
"</table>\n<br>";
707 print
'<table class="noborder centpercent">';
708 print
'<tr class="liste_titre">';
709 print
'<td>'.$langs->trans(
"Parameter").
'</td>';
710 print
'<td align="center" width="60"></td>';
711 print
'<td width="80"> </td>';
714 print
'<tr class="oddeven"><td colspan="2">';
715 print $langs->trans(
"YouMayFindNotificationsFeaturesIntoModuleNotification").
'<br>';
716 print
'</td><td class="right">';
717 print
"</td></tr>\n";
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
delDocumentModel($name, $type)
Delete document model used by doc generator.
yn($yesno, $case=1, $color=0)
Return yes or no in current language.
dolibarr_set_const($db, $name, $value, $type= 'chaine', $visible=0, $note= '', $entity=1)
Insert a parameter (key,value) into database (delete old key then insert it again).
addDocumentModel($name, $type, $label= '', $description= '')
Add document model used by doc generator.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
setEventMessages($mesg, $mesgs, $style= 'mesgs', $messagekey= '')
Set event messages in dol_events session object.
load_fiche_titre($titre, $morehtmlright= '', $picto= 'generic', $pictoisfullpath=0, $id= '', $morecssontable= '', $morehtmlcenter= '')
Load a title with picto.
dol_strlen($string, $stringencoding= 'UTF-8')
Make a strlen call.
propal_admin_prepare_head()
Return array head with list of tabs to view object informations.
dolibarr_del_const($db, $name, $entity=1)
Effacement d'une constante dans la base de donnees.
img_picto($titlealt, $picto, $moreatt= '', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt= '', $morecss= '', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename= '', $restricttologhandler= '', $logcontext=null)
Write log message into outputs.
if(!GETPOST('transkey', 'alphanohtml')&&!GETPOST('transphrase', 'alphanohtml')) else
View.
img_object($titlealt, $picto, $moreatt= '', $pictoisfullpath=false, $srconly=0, $notitle=0)
Show a picto called object_picto (generic function)
accessforbidden($message= '', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
pdf_getSubstitutionArray($outputlangs, $exclude=null, $object=null, $onlykey=0)
Return array of possible substitutions for PDF content (without external module substitutions).
dol_get_fiche_head($links=array(), $active= '', $title= '', $notab=0, $picto= '', $pictoisfullpath=0, $morehtmlright= '', $morecss= '', $limittoshow=0, $moretabssuffix= '')
Show tabs of a record.
print
Draft customers invoices.
if(!empty($conf->facture->enabled)&&$user->rights->facture->lire) if((!empty($conf->fournisseur->enabled)&&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)||!empty($conf->supplier_invoice->enabled))&&$user->rights->fournisseur->facture->lire) if(!empty($conf->don->enabled)&&$user->rights->don->lire) if(!empty($conf->tax->enabled)&&$user->rights->tax->charges->lire) if(!empty($conf->facture->enabled)&&!empty($conf->commande->enabled)&&$user->rights->commande->lire &&empty($conf->global->WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER)) if(!empty($conf->facture->enabled)&&$user->rights->facture->lire) if((!empty($conf->fournisseur->enabled)&&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)||!empty($conf->supplier_invoice->enabled))&&$user->rights->fournisseur->facture->lire) $resql
Social contributions to pay.
dol_print_error($db= '', $error= '', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
newToken()
Return the value of token currently saved into session with name 'newtoken'.
print $_SERVER["PHP_SELF"] n
Edit parameters.
Class to manage a WYSIWYG editor.
if(!defined('CSRFCHECK_WITH_TOKEN')) define('CSRFCHECK_WITH_TOKEN'
Draft customers invoices.
Class to manage proposals.