mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Qual: Spelling htdocs/[l-o]* & htdocs/pa* (#27435)
# Qual: Fix spelling htdocs/[l-o]* & htdocs/pa* Mostly comments, some local variables changed and translations to avoid automatic fixes. Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
parent
85b7dfbf73
commit
591306d7b1
|
|
@ -2396,7 +2396,7 @@ RECEPTION_PDF_HIDE_ORDERED=Hide the quantity ordered on the generated documents
|
|||
MAIN_PDF_RECEPTION_DISPLAY_AMOUNT_HT=Show the price on the generated documents for receptions
|
||||
WarningDisabled=Warning disabled
|
||||
LimitsAndMitigation=Access limits and mitigation
|
||||
RecommendMitigationOnURL=It is recommanded to activate mitigation on critical URL. This is list of fail2ban rules you can use for the main important URLs.
|
||||
RecommendMitigationOnURL=It is recommended to activate mitigation on critical URL. This is list of fail2ban rules you can use for the main important URLs.
|
||||
DesktopsOnly=Desktops only
|
||||
DesktopsAndSmartphones=Desktops et smartphones
|
||||
AllowOnlineSign=Allow online signing
|
||||
|
|
@ -2437,4 +2437,4 @@ ExtraFieldsSupplierInvoicesLinesRec=Complementary attributes (template invoice l
|
|||
ParametersForTestEnvironment=Parameters for test environment
|
||||
TryToKeepOnly=Try to keep only %s
|
||||
RecommendedForProduction=Recommended for Production
|
||||
RecommendedForDebug=Recommended for Debug
|
||||
RecommendedForDebug=Recommended for Debug
|
||||
|
|
|
|||
|
|
@ -668,7 +668,7 @@ if ($id > 0) {
|
|||
$total_interest = 0;
|
||||
$total_capital = 0;
|
||||
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="noborder paymenttable">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("RefPayment").'</td>';
|
||||
|
|
|
|||
|
|
@ -475,7 +475,7 @@ class Loan extends CommonObject
|
|||
* Return label of loan status (unpaid, paid)
|
||||
*
|
||||
* @param int $mode 0=label, 1=short label, 2=Picto + Short label, 3=Picto, 4=Picto + Label
|
||||
* @param integer $alreadypaid 0=No payment already done, >0=Some payments were already done (we recommand to put here amount paid if you have it, 1 otherwise)
|
||||
* @param integer $alreadypaid 0=No payment already done, >0=Some payments were already done (we recommend to put here amount paid if you have it, 1 otherwise)
|
||||
* @return string Label
|
||||
*/
|
||||
public function getLibStatut($mode = 0, $alreadypaid = -1)
|
||||
|
|
@ -489,7 +489,7 @@ class Loan extends CommonObject
|
|||
*
|
||||
* @param int $status Id status
|
||||
* @param int $mode 0=Label, 1=Short label, 2=Picto + Short label, 3=Picto, 4=Picto + Label, 5=Short label + Picto
|
||||
* @param integer $alreadypaid 0=No payment already done, >0=Some payments were already done (we recommand to put here amount paid if you have it, 1 otherwise)
|
||||
* @param integer $alreadypaid 0=No payment already done, >0=Some payments were already done (we recommend to put here amount paid if you have it, 1 otherwise)
|
||||
* @return string Label
|
||||
*/
|
||||
public function LibStatut($status, $mode = 0, $alreadypaid = -1)
|
||||
|
|
|
|||
|
|
@ -323,7 +323,7 @@ $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
|
|||
$selectedfields = ($mode != 'kanban' ? $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN', '')) : ''); // This also change content of $arrayfields
|
||||
$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
|
||||
|
||||
print '<div class="div-table-responsive">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="tagtable nobottomiftotal liste'.($moreforfilter ? " listwithfilterbefore" : "").'">'."\n";
|
||||
|
||||
// Fields title search
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ $confirm = GETPOST('confirm');
|
|||
if ($user->socid) {
|
||||
$socid = $user->socid;
|
||||
}
|
||||
// TODO ajouter regle pour restreindre acces paiement
|
||||
// TODO ajouter regle pour restreindre access paiement
|
||||
//$result = restrictedArea($user, 'facture', $id,'');
|
||||
|
||||
$payment = new PaymentLoan($db);
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ if ($res > 0) {
|
|||
}
|
||||
}
|
||||
|
||||
// Set current line with last unpaid line (only if shedule is used)
|
||||
// Set current line with last unpaid line (only if schedule is used)
|
||||
if (!empty($line_id)) {
|
||||
$line = new LoanSchedule($db);
|
||||
$res = $line->fetch($line_id);
|
||||
|
|
|
|||
|
|
@ -198,7 +198,7 @@ $(document).ready(function() {
|
|||
var idcap=echeance-1;
|
||||
idcap = '#hi_capital'+idcap;
|
||||
var capital=price2numjs($(idcap).val());
|
||||
console.log("Change montly amount echeance="+echeance+" idcap="+idcap+" capital="+capital);
|
||||
console.log("Change monthly amount echeance="+echeance+" idcap="+idcap+" capital="+capital);
|
||||
$.ajax({
|
||||
method: "GET",
|
||||
dataType: 'json',
|
||||
|
|
|
|||
|
|
@ -238,7 +238,7 @@ class MailmanSpip
|
|||
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||
/**
|
||||
* Fonction qui dit si cet utilisateur est un redacteur existant dans spip
|
||||
* Indicate if the user is an existing editor in spip
|
||||
*
|
||||
* @param object $object Object with data (->login)
|
||||
* @return int 1=exists, 0=does not exists, -1=error
|
||||
|
|
@ -257,11 +257,11 @@ class MailmanSpip
|
|||
|
||||
if ($result) {
|
||||
if ($mydb->num_rows($result)) {
|
||||
// nous avons au moins une reponse
|
||||
// At least one result for the login query
|
||||
$mydb->close();
|
||||
return 1;
|
||||
} else {
|
||||
// nous n'avons pas de reponse => n'existe pas
|
||||
// No result for the login query
|
||||
$mydb->close();
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ function realCharForNumericEntities($matches)
|
|||
/**
|
||||
* Security: WAF layer for SQL Injection and XSS Injection (scripts) protection (Filters on GET, POST, PHP_SELF).
|
||||
* Warning: Such a protection can't be enough. It is not reliable as it will always be possible to bypass this. Good protection can
|
||||
* only be guaranted by escaping data during output.
|
||||
* only be guaranteed by escaping data during output.
|
||||
*
|
||||
* @param string $val Brute value found into $_GET, $_POST or PHP_SELF
|
||||
* @param string $type 0=POST, 1=GET, 2=PHP_SELF, 3=GET without sql reserved keywords (the less tolerant test)
|
||||
|
|
@ -176,6 +176,7 @@ function testSqlAndScriptInject($val, $type)
|
|||
$inj += preg_match('/on(paste|pause|play|playing|progress|ratechange|reset|resize|scroll|search|seeked|seeking|show|stalled|start|submit|suspend)[a-z]*\s*=/i', $val);
|
||||
$inj += preg_match('/on(timeupdate|toggle|unload|volumechange|waiting|wheel)[a-z]*\s*=/i', $val);
|
||||
// More not into the previous list
|
||||
|
||||
$inj += preg_match('/on(repeat|begin|finish|beforeinput)[a-z]*\s*=/i', $val);
|
||||
|
||||
// We refuse html into html because some hacks try to obfuscate evil strings by inserting HTML into HTML. Example: <img on<a>error=alert(1) to bypass test on onerror
|
||||
|
|
@ -746,7 +747,7 @@ if (!defined('NOLOGIN')) {
|
|||
|
||||
// Check code
|
||||
if (!$ok) {
|
||||
dol_syslog('Bad value for code, connexion refused', LOG_NOTICE);
|
||||
dol_syslog('Bad value for code, connection refused', LOG_NOTICE);
|
||||
// Load translation files required by page
|
||||
$langs->loadLangs(array('main', 'errors'));
|
||||
|
||||
|
|
@ -854,7 +855,7 @@ if (!defined('NOLOGIN')) {
|
|||
}
|
||||
|
||||
if (!$login) {
|
||||
dol_syslog('Bad password, connexion refused (see a previous notice message for more info)', LOG_NOTICE);
|
||||
dol_syslog('Bad password, connection refused (see a previous notice message for more info)', LOG_NOTICE);
|
||||
// Load translation files required by page
|
||||
$langs->loadLangs(array('main', 'errors'));
|
||||
|
||||
|
|
@ -888,12 +889,12 @@ if (!defined('NOLOGIN')) {
|
|||
}
|
||||
|
||||
// End test login / passwords
|
||||
if (!$login || (in_array('ldap', $authmode) && empty($passwordtotest))) { // With LDAP we refused empty password because some LDAP are "opened" for anonymous access so connexion is a success.
|
||||
if (!$login || (in_array('ldap', $authmode) && empty($passwordtotest))) { // With LDAP we refused empty password because some LDAP are "opened" for anonymous access so connection is a success.
|
||||
// No data to test login, so we show the login page.
|
||||
dol_syslog("--- Access to ".(empty($_SERVER["REQUEST_METHOD"]) ? '' : $_SERVER["REQUEST_METHOD"].' ').$_SERVER["PHP_SELF"]." - action=".GETPOST('action', 'aZ09')." - actionlogin=".GETPOST('actionlogin', 'aZ09')." - showing the login form and exit", LOG_NOTICE);
|
||||
if (defined('NOREDIRECTBYMAINTOLOGIN')) {
|
||||
// When used with NOREDIRECTBYMAINTOLOGIN set, the http header must already be set when including the main.
|
||||
// See example with selectsearchbox.php. This case is reserverd for the selectesearchbox.php so we can
|
||||
// See example with selectsearchbox.php. This case is reserved for the selectesearchbox.php so we can
|
||||
// report a message to ask to login when search ajax component is used after a timeout.
|
||||
//top_httphead();
|
||||
return 'ERROR_NOT_LOGGED';
|
||||
|
|
@ -908,7 +909,7 @@ if (!defined('NOLOGIN')) {
|
|||
|
||||
$resultFetchUser = $user->fetch('', $login, '', 1, ($entitytotest > 0 ? $entitytotest : -1)); // value for $login was retrieved previously when checking password.
|
||||
if ($resultFetchUser <= 0 || $user->isNotIntoValidityDateRange()) {
|
||||
dol_syslog('User not found or not valid, connexion refused');
|
||||
dol_syslog('User not found or not valid, connection refused');
|
||||
session_destroy();
|
||||
session_set_cookie_params(0, '/', null, (empty($dolibarr_main_force_https) ? false : true), true); // Add tag secure and httponly on session cookie
|
||||
session_name($sessionname);
|
||||
|
|
@ -994,7 +995,7 @@ if (!defined('NOLOGIN')) {
|
|||
dol_syslog("The user login is disabled");
|
||||
} else {
|
||||
// User validity dates are no more valid
|
||||
dol_syslog("The user login has a validity between [".$user->datestartvalidity." and ".$user->dateendvalidity."], curren date is ".dol_now());
|
||||
dol_syslog("The user login has a validity between [".$user->datestartvalidity." and ".$user->dateendvalidity."], current date is ".dol_now());
|
||||
}
|
||||
session_destroy();
|
||||
session_set_cookie_params(0, '/', null, (empty($dolibarr_main_force_https) ? false : true), true); // Add tag secure and httponly on session cookie
|
||||
|
|
@ -1109,7 +1110,7 @@ if (!defined('NOLOGIN')) {
|
|||
}
|
||||
|
||||
// Is it a new session that has started ?
|
||||
// If we are here, this means authentication was successfull.
|
||||
// If we are here, this means authentication was successful.
|
||||
if (!isset($_SESSION["dol_login"])) {
|
||||
// New session for this login has started.
|
||||
$error = 0;
|
||||
|
|
@ -1165,7 +1166,7 @@ if (!defined('NOLOGIN')) {
|
|||
}
|
||||
// End call triggers
|
||||
|
||||
// Hooks on successfull login
|
||||
// Hooks on successful login
|
||||
$action = '';
|
||||
$hookmanager->initHooks(array('login'));
|
||||
$parameters = array('dol_authmode'=>$dol_authmode, 'dol_loginfo'=>$loginfo);
|
||||
|
|
@ -1296,7 +1297,7 @@ if (!empty($conf->browser->layout) && $conf->browser->layout != 'classic') {
|
|||
$conf->dol_no_mouse_hover = 1;
|
||||
}
|
||||
|
||||
// If on smartphone or optmized for small screen
|
||||
// If on smartphone or optimized for small screen
|
||||
if ((!empty($conf->browser->layout) && $conf->browser->layout == 'phone')
|
||||
|| (!empty($_SESSION['dol_screenwidth']) && $_SESSION['dol_screenwidth'] < 400)
|
||||
|| (!empty($_SESSION['dol_screenheight']) && $_SESSION['dol_screenheight'] < 400
|
||||
|
|
@ -1440,7 +1441,7 @@ if (!function_exists("llxHeader")) {
|
|||
/**
|
||||
* Show HTML header HTML + BODY + Top menu + left menu + DIV
|
||||
*
|
||||
* @param string $head Optionnal head lines
|
||||
* @param string $head Optional head lines
|
||||
* @param string $title HTML title
|
||||
* @param string $help_url Url links to help page
|
||||
* Syntax is: For a wiki page: EN:EnglishPage|FR:FrenchPage|ES:SpanishPage|DE:GermanPage
|
||||
|
|
@ -1651,10 +1652,10 @@ function top_httphead($contenttype = 'text/html', $forcenocache = 0)
|
|||
}
|
||||
|
||||
/**
|
||||
* Ouput html header of a page. It calls also top_httphead()
|
||||
* Output html header of a page. It calls also top_httphead()
|
||||
* This code is also duplicated into security2.lib.php::dol_loginfunction
|
||||
*
|
||||
* @param string $head Optionnal head lines
|
||||
* @param string $head Optional head lines
|
||||
* @param string $title HTML title
|
||||
* @param int $disablejs Disable js output
|
||||
* @param int $disablehead Disable head output
|
||||
|
|
@ -1763,7 +1764,7 @@ function top_htmlhead($head, $title = '', $disablejs = 0, $disablehead = 0, $arr
|
|||
print "\n";
|
||||
|
||||
if (GETPOST('version', 'int')) {
|
||||
$ext = 'version='.GETPOST('version', 'int'); // usefull to force no cache on css/js
|
||||
$ext = 'version='.GETPOST('version', 'int'); // useful to force no cache on css/js
|
||||
}
|
||||
// Refresh value of MAIN_IHM_PARAMS_REV before forging the parameter line.
|
||||
if (GETPOST('dol_resetcache')) {
|
||||
|
|
@ -2556,12 +2557,12 @@ function top_menu_user($hideloginname = 0, $urllogout = '')
|
|||
});
|
||||
|
||||
jQuery("#topmenulogincompanyinfo-btn").on("click", function() {
|
||||
console.log("Clik on #topmenulogincompanyinfo-btn");
|
||||
console.log("Click on #topmenulogincompanyinfo-btn");
|
||||
jQuery("#topmenulogincompanyinfo").slideToggle();
|
||||
});
|
||||
|
||||
jQuery("#topmenuloginmoreinfo-btn").on("click", function() {
|
||||
console.log("Clik on #topmenuloginmoreinfo-btn");
|
||||
console.log("Click on #topmenuloginmoreinfo-btn");
|
||||
jQuery("#topmenuloginmoreinfo").slideToggle();
|
||||
});';
|
||||
}
|
||||
|
|
@ -2983,7 +2984,7 @@ function top_menu_search()
|
|||
<script>
|
||||
jQuery(document).ready(function() {
|
||||
|
||||
// prevent submiting form on press ENTER
|
||||
// prevent submitting form on press ENTER
|
||||
jQuery("#top-global-search-input").keydown(function (e) {
|
||||
if (e.keyCode == 13 || e.keyCode == 40) {
|
||||
var inputs = $(this).parents("form").eq(0).find(":button");
|
||||
|
|
@ -3068,7 +3069,7 @@ function top_menu_search()
|
|||
/**
|
||||
* Show left menu bar
|
||||
*
|
||||
* @param array $menu_array_before Table of menu entries to show before entries of menu handler. This param is deprectaed and must be provided to ''.
|
||||
* @param array $menu_array_before Table of menu entries to show before entries of menu handler. This param is deprecated and must be provided to ''.
|
||||
* @param string $helppagename Name of wiki page for help ('' by default).
|
||||
* Syntax is: For a wiki page: EN:EnglishPage|FR:FrenchPage|ES:SpanishPage|DE:GermanPage
|
||||
* For other external page: http://server/url
|
||||
|
|
@ -3272,7 +3273,7 @@ function left_menu($menu_array_before, $helppagename = '', $notused = '', $menu_
|
|||
$bugbaseurl .= urlencode("## Steps to reproduce the behavior\n");
|
||||
$bugbaseurl .= urlencode("[*Verbose description*]\n");
|
||||
$bugbaseurl .= urlencode("\n");
|
||||
$bugbaseurl .= urlencode("## [Attached files](https://help.github.com/articles/issue-attachments) (Screenshots, screencasts, dolibarr.log, debugging informations…)\n");
|
||||
$bugbaseurl .= urlencode("## [Attached files](https://help.github.com/articles/issue-attachments) (Screenshots, screencasts, dolibarr.log, debugging information…)\n");
|
||||
$bugbaseurl .= urlencode("[*Files*]\n");
|
||||
$bugbaseurl .= urlencode("\n");
|
||||
|
||||
|
|
@ -3487,7 +3488,7 @@ if (!function_exists("llxFooter")) {
|
|||
*
|
||||
* @param string $comment A text to add as HTML comment into HTML generated page
|
||||
* @param string $zone 'private' (for private pages) or 'public' (for public pages)
|
||||
* @param int $disabledoutputofmessages Clear all messages stored into session without diplaying them
|
||||
* @param int $disabledoutputofmessages Clear all messages stored into session without displaying them
|
||||
* @return void
|
||||
*/
|
||||
function llxFooter($comment = '', $zone = 'private', $disabledoutputofmessages = 0)
|
||||
|
|
@ -3528,7 +3529,7 @@ if (!function_exists("llxFooter")) {
|
|||
if (empty($val['sortorder'])) {
|
||||
unset($val['sortorder']);
|
||||
}
|
||||
dol_syslog('Save lastsearch_values_tmp_'.$key.'='.json_encode($val, 0)." (systematic recording of last search criterias)");
|
||||
dol_syslog('Save lastsearch_values_tmp_'.$key.'='.json_encode($val, 0)." (systematic recording of last search criteria)");
|
||||
$_SESSION['lastsearch_values_tmp_'.$key] = json_encode($val);
|
||||
unset($_SESSION['lastsearch_values_'.$key]);
|
||||
}
|
||||
|
|
@ -3665,7 +3666,7 @@ if (!function_exists("llxFooter")) {
|
|||
// MAIN_LAST_PING_KO_DATE
|
||||
// Disable ping if MAIN_LAST_PING_KO_DATE is set and is recent (this month)
|
||||
if (getDolGlobalString('MAIN_LAST_PING_KO_DATE') && substr($conf->global->MAIN_LAST_PING_KO_DATE, 0, 6) == dol_print_date(dol_now(), '%Y%m') && !$forceping) {
|
||||
print "\n<!-- NO JS CODE TO ENABLE the anonymous Ping. An error already occured this month, we will try later. -->\n";
|
||||
print "\n<!-- NO JS CODE TO ENABLE the anonymous Ping. An error already occurred this month, we will try later. -->\n";
|
||||
} else {
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
||||
|
||||
|
|
|
|||
|
|
@ -188,7 +188,7 @@ if (!empty($enddate)) {
|
|||
}
|
||||
$sql .= " AND d.buy_price_ht IS NOT NULL";
|
||||
// We should not use this here. Option ForceBuyingPriceIfNull should have effect only when inserting data. Once data is recorded, it must be used as it is for report.
|
||||
// We keep it with value ForceBuyingPriceIfNull = 2 for retroactive effect but results are unpredicable.
|
||||
// We keep it with value ForceBuyingPriceIfNull = 2 for retroactive effect but results are unpredictable.
|
||||
if (getDolGlobalInt('ForceBuyingPriceIfNull') == 2) {
|
||||
$sql .= " AND d.buy_price_ht <> 0";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -260,7 +260,7 @@ if (!empty($enddate)) {
|
|||
}
|
||||
$sql .= " AND d.buy_price_ht IS NOT NULL";
|
||||
// We should not use this here. Option ForceBuyingPriceIfNull should have effect only when inserting data. Once data is recorded, it must be used as it is for report.
|
||||
// We keep it with value ForceBuyingPriceIfNull = 2 for retroactive effect but results are unpredicable.
|
||||
// We keep it with value ForceBuyingPriceIfNull = 2 for retroactive effect but results are unpredictable.
|
||||
if (getDolGlobalInt('ForceBuyingPriceIfNull') == 2) {
|
||||
$sql .= " AND d.buy_price_ht <> 0";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -216,7 +216,7 @@ if (!empty($enddate)) {
|
|||
}
|
||||
$sql .= " AND d.buy_price_ht IS NOT NULL";
|
||||
// We should not use this here. Option ForceBuyingPriceIfNull should have effect only when inserting data. Once data is recorded, it must be used as it is for report.
|
||||
// We keep it with value ForceBuyingPriceIfNull = 2 for retroactive effect but results are unpredicable.
|
||||
// We keep it with value ForceBuyingPriceIfNull = 2 for retroactive effect but results are unpredictable.
|
||||
if (getDolGlobalInt('ForceBuyingPriceIfNull') == 2) {
|
||||
$sql .= " AND d.buy_price_ht <> 0";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ if ($id > 0 || !empty($ref)) {
|
|||
}
|
||||
$sql .= " AND d.buy_price_ht IS NOT NULL";
|
||||
// We should not use this here. Option ForceBuyingPriceIfNull should have effect only when inserting data. Once data is recorded, it must be used as it is for report.
|
||||
// We keep it with value ForceBuyingPriceIfNull = 2 for retroactive effect but results are unpredicable.
|
||||
// We keep it with value ForceBuyingPriceIfNull = 2 for retroactive effect but results are unpredictable.
|
||||
if (getDolGlobalInt('ForceBuyingPriceIfNull') == 2) {
|
||||
$sql .= " AND d.buy_price_ht <> 0";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@ if ($socid > 0) {
|
|||
$sql .= " AND f.fk_soc = $socid";
|
||||
$sql .= " AND d.buy_price_ht IS NOT NULL";
|
||||
// We should not use this here. Option ForceBuyingPriceIfNull should have effect only when inserting data. Once data is recorded, it must be used as it is for report.
|
||||
// We keep it with value ForceBuyingPriceIfNull = 2 for retroactive effect but results are unpredicable.
|
||||
// We keep it with value ForceBuyingPriceIfNull = 2 for retroactive effect but results are unpredictable.
|
||||
if (getDolGlobalInt('ForceBuyingPriceIfNull') == 2) {
|
||||
$sql .= " AND d.buy_price_ht <> 0";
|
||||
}
|
||||
|
|
@ -202,7 +202,7 @@ if ($socid > 0) {
|
|||
print_barre_liste($langs->trans("MarginDetails"), $page, $_SERVER["PHP_SELF"], "&socid=".$object->id, $sortfield, $sortorder, '', $num, $num, '');
|
||||
|
||||
$i = 0;
|
||||
print '<div class="div-table-responsive">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print "<table class=\"noborder\" width=\"100%\">";
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ if (!empty($dolibarr_main_document_root_alt)) {
|
|||
}
|
||||
}
|
||||
|
||||
// Chargement des includes principaux de librairies communes
|
||||
// Load the main includes of common libraries
|
||||
if (!defined('NOREQUIREUSER')) {
|
||||
require_once DOL_DOCUMENT_ROOT.'/user/class/user.class.php'; // Need 500ko memory
|
||||
}
|
||||
|
|
@ -127,7 +127,7 @@ if (!defined('NOREQUIRESOC')) {
|
|||
|
||||
|
||||
/*
|
||||
* Creation objet $langs (must be before all other code)
|
||||
* Create object $langs (must be before all other code)
|
||||
*/
|
||||
if (!defined('NOREQUIRETRAN')) {
|
||||
$langs = new Translate('', $conf); // Must be after reading conf
|
||||
|
|
@ -163,7 +163,7 @@ if (!defined('NOREQUIREDB')) {
|
|||
}
|
||||
}
|
||||
|
||||
// Now database connexion is known, so we can forget password
|
||||
// Now database connection is known, so we can forget password
|
||||
//unset($dolibarr_main_db_pass); // We comment this because this constant is used in some other pages
|
||||
unset($conf->db->pass); // This is to avoid password to be shown in memory/swap dump
|
||||
|
||||
|
|
|
|||
|
|
@ -1068,7 +1068,7 @@ if ($dirins && $action == 'initobject' && $module && $objectname) {
|
|||
* 'alwayseditable' says if field can be modified also when status is not draft ('1' or '0')
|
||||
* 'default' is a default value for creation (can still be overwrote by the Setup of Default Values if field is editable in creation form). Note: If default is set to '(PROV)' and field is 'ref', the default value will be set to '(PROVid)' where id is rowid when a new record is created.
|
||||
* 'index' if we want an index in database.
|
||||
* 'foreignkey'=>'tablename.field' if the field is a foreign key (it is recommanded to name the field fk_...).
|
||||
* 'foreignkey'=>'tablename.field' if the field is a foreign key (it is recommended to name the field fk_...).
|
||||
* 'searchall' is 1 if we want to search in this field when making a search from the quick search button.
|
||||
* 'isameasure' must be set to 1 or 2 if field can be used for measure. Field type must be summable like integer or double(24,8). Use 1 in most cases, or 2 if you don't want to see the column total into list (for example for percentage)
|
||||
* 'css' and 'cssview' and 'csslist' is the CSS style to use on field. 'css' is used in creation and update. 'cssview' is used in view mode. 'csslist' is used for columns in lists. For example: 'css'=>'minwidth300 maxwidth500 widthcentpercentminusx', 'cssview'=>'wordbreak', 'csslist'=>'tdoverflowmax200'
|
||||
|
|
@ -2258,7 +2258,7 @@ if ($dirins && $action == 'addright' && !empty($module) && empty($cancel)) {
|
|||
}
|
||||
}
|
||||
|
||||
// verify informations entred
|
||||
// verify information entered
|
||||
if (!GETPOST('label', 'alpha')) {
|
||||
$error++;
|
||||
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("Label")), null, 'errors');
|
||||
|
|
@ -2353,7 +2353,7 @@ if ($dirins && GETPOST('action') == 'update_right' && GETPOST('modifyright')&& e
|
|||
dol_print_error($db, $e->getMessage());
|
||||
}
|
||||
}
|
||||
// verify informations entred
|
||||
// verify information entered
|
||||
if (!GETPOST('label', 'alpha')) {
|
||||
$error++;
|
||||
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("Label")), null, 'errors');
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ class MyModuleApi extends DolibarrApi
|
|||
/**
|
||||
* Get properties of a myobject object
|
||||
*
|
||||
* Return an array with myobject informations
|
||||
* Return an array with myobject information
|
||||
*
|
||||
* @param int $id ID of myobject
|
||||
* @return Object Object with cleaned properties
|
||||
|
|
@ -203,7 +203,7 @@ class MyModuleApi extends DolibarrApi
|
|||
|
||||
foreach ($request_data as $field => $value) {
|
||||
if ($field === 'caller') {
|
||||
// Add a mention of caller so on trigger called after action, we can filter to avoid a loop if we try to sync back again whith the caller
|
||||
// Add a mention of caller so on trigger called after action, we can filter to avoid a loop if we try to sync back again with the caller
|
||||
$this->myobject->context['caller'] = $request_data['caller'];
|
||||
continue;
|
||||
}
|
||||
|
|
@ -251,7 +251,7 @@ class MyModuleApi extends DolibarrApi
|
|||
continue;
|
||||
}
|
||||
if ($field === 'caller') {
|
||||
// Add a mention of caller so on trigger called after action, we can filter to avoid a loop if we try to sync back again whith the caller
|
||||
// Add a mention of caller so on trigger called after action, we can filter to avoid a loop if we try to sync back again with the caller
|
||||
$this->myobject->context['caller'] = $request_data['caller'];
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ class MyObject extends CommonObject
|
|||
* 'alwayseditable' says if field can be modified also when status is not draft ('1' or '0')
|
||||
* 'default' is a default value for creation (can still be overwrote by the Setup of Default Values if field is editable in creation form). Note: If default is set to '(PROV)' and field is 'ref', the default value will be set to '(PROVid)' where id is rowid when a new record is created.
|
||||
* 'index' if we want an index in database.
|
||||
* 'foreignkey'=>'tablename.field' if the field is a foreign key (it is recommanded to name the field fk_...).
|
||||
* 'foreignkey'=>'tablename.field' if the field is a foreign key (it is recommended to name the field fk_...).
|
||||
* 'searchall' is 1 if we want to search in this field when making a search from the quick search button.
|
||||
* 'isameasure' must be set to 1 or 2 if field can be used for measure. Field type must be summable like integer or double(24,8). Use 1 in most cases, or 2 if you don't want to see the column total into list (for example for percentage)
|
||||
* 'css' and 'cssview' and 'csslist' is the CSS style to use on field. 'css' is used in creation and update. 'cssview' is used in view mode. 'csslist' is used for columns in lists. For example: 'css'=>'minwidth300 maxwidth500 widthcentpercentminusx', 'cssview'=>'wordbreak', 'csslist'=>'tdoverflowmax200'
|
||||
|
|
@ -599,7 +599,7 @@ class MyObject extends CommonObject
|
|||
|
||||
// Protection
|
||||
if ($this->status == self::STATUS_VALIDATED) {
|
||||
dol_syslog(get_class($this)."::validate action abandonned: already validated", LOG_WARNING);
|
||||
dol_syslog(get_class($this)."::validate action abandoned: already validated", LOG_WARNING);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -818,7 +818,7 @@ class MyObject extends CommonObject
|
|||
}
|
||||
|
||||
/**
|
||||
* Return a link to the object card (with optionaly the picto)
|
||||
* Return a link to the object card (with optionally the picto)
|
||||
*
|
||||
* @param int $withpicto Include picto in link (0=No picto, 1=Include picto into link, 2=Only picto)
|
||||
* @param string $option On what the link point to ('nolink', ...)
|
||||
|
|
@ -1188,7 +1188,7 @@ class MyObject extends CommonObject
|
|||
* Create a document onto disk according to template module.
|
||||
*
|
||||
* @param string $modele Force template to use ('' to not force)
|
||||
* @param Translate $outputlangs objet lang a utiliser pour traduction
|
||||
* @param Translate $outputlangs object lang a utiliser pour traduction
|
||||
* @param int $hidedetails Hide details of lines
|
||||
* @param int $hidedesc Hide description
|
||||
* @param int $hideref Hide ref
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ class mymodulewidget1 extends ModeleBoxes
|
|||
'target' => '',
|
||||
// HTML class attached to the picto and link
|
||||
'subclass' => 'center',
|
||||
// Limit and truncate with "…" the displayed text lenght, 0 = disabled
|
||||
// Limit and truncate with "…" the displayed text length, 0 = disabled
|
||||
'limit' => 0,
|
||||
// Adds translated " (Graph)" to a hidden form value's input (?)
|
||||
'graph' => false
|
||||
|
|
@ -140,7 +140,7 @@ class mymodulewidget1 extends ModeleBoxes
|
|||
'target' => '_blank',
|
||||
// Fist line logo (deprecated. Include instead logo html code into text or text2, and set asis property to true to avoid HTML cleaning)
|
||||
//'logo' => 'monmodule@monmodule',
|
||||
// Unformatted text, added after text. Usefull to add/load javascript code
|
||||
// Unformatted text, added after text. Useful to add/load javascript code
|
||||
'textnoformat' => '',
|
||||
|
||||
// Main text for content of cell (other method)
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ class mailing_mailing_mymodule_selector1 extends MailingTargets
|
|||
*/
|
||||
public function getSqlArrayForStats()
|
||||
{
|
||||
// CHANGE THIS: Optionnal
|
||||
// CHANGE THIS: Optional
|
||||
|
||||
//var $statssql=array();
|
||||
//$this->statssql[0]="SELECT field1 as label, count(distinct(email)) as nb FROM mytable WHERE email IS NOT NULL";
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ class modMyModule extends DolibarrModules
|
|||
// 'intervention' to add a tab in intervention view
|
||||
// 'invoice' to add a tab in customer invoice view
|
||||
// 'invoice_supplier' to add a tab in supplier invoice view
|
||||
// 'member' to add a tab in fundation member view
|
||||
// 'member' to add a tab in foundation member view
|
||||
// 'opensurveypoll' to add a tab in opensurvey poll view
|
||||
// 'order' to add a tab in sale order view
|
||||
// 'order_supplier' to add a tab in supplier order view
|
||||
|
|
|
|||
|
|
@ -319,7 +319,7 @@ class doc_generic_myobject_odt extends ModelePDFMyObject
|
|||
$contactobject = $object->contact;
|
||||
} else {
|
||||
$socobject = $object->thirdparty;
|
||||
// if we have a CUSTOMER contact and we dont use it as thirdparty recipient we store the contact object for later use
|
||||
// if we have a CUSTOMER contact and we don't use it as thirdparty recipient we store the contact object for later use
|
||||
$contactobject = $object->contact;
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ class pdf_standard_myobject extends ModelePDFMyObject
|
|||
}
|
||||
|
||||
// Define position of columns
|
||||
$this->posxdesc = $this->marge_gauche + 1; // used for notes ans other stuff
|
||||
$this->posxdesc = $this->marge_gauche + 1; // used for notes and other stuff
|
||||
|
||||
|
||||
$this->tabTitleHeight = 5; // default height
|
||||
|
|
@ -1204,18 +1204,18 @@ class pdf_standard_myobject extends ModelePDFMyObject
|
|||
);
|
||||
|
||||
/*
|
||||
* For exemple
|
||||
* For example
|
||||
$this->cols['theColKey'] = array(
|
||||
'rank' => $rank, // int : use for ordering columns
|
||||
'width' => 20, // the column width in mm
|
||||
'title' => array(
|
||||
'textkey' => 'yourLangKey', // if there is no label, yourLangKey will be translated to replace label
|
||||
'label' => ' ', // the final label : used fore final generated text
|
||||
'align' => 'L', // text alignement : R,C,L
|
||||
'align' => 'L', // text alignment : R,C,L
|
||||
'padding' => array(0.5,0.5,0.5,0.5), // Like css 0 => top , 1 => right, 2 => bottom, 3 => left
|
||||
),
|
||||
'content' => array(
|
||||
'align' => 'L', // text alignement : R,C,L
|
||||
'align' => 'L', // text alignment : R,C,L
|
||||
'padding' => array(0.5,0.5,0.5,0.5), // Like css 0 => top , 1 => right, 2 => bottom, 3 => left
|
||||
),
|
||||
);
|
||||
|
|
@ -1227,7 +1227,7 @@ class pdf_standard_myobject extends ModelePDFMyObject
|
|||
'width' => false, // only for desc
|
||||
'status' => true,
|
||||
'title' => array(
|
||||
'textkey' => 'Designation', // use lang key is usefull in somme case with module
|
||||
'textkey' => 'Designation', // use lang key is useful in somme case with module
|
||||
'align' => 'L',
|
||||
// 'textkey' => 'yourLangKey', // if there is no label, yourLangKey will be translated to replace label
|
||||
// 'label' => ' ', // the final label
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ class InterfaceMyModuleTriggers extends DolibarrTriggers
|
|||
//case 'PRODUCT_SET_MULTILANGS':
|
||||
//case 'PRODUCT_DEL_MULTILANGS':
|
||||
|
||||
//Stock mouvement
|
||||
//Stock movement
|
||||
//case 'STOCK_MOVEMENT':
|
||||
|
||||
//MYECMDIR
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ $extrafields->fetch_name_optionals_label($object->table_element);
|
|||
|
||||
$search_array_options = $extrafields->getOptionalsFromPost($object->table_element, '', 'search_');
|
||||
|
||||
// Initialize array of search criterias
|
||||
// Initialize array of search criteria
|
||||
$search_all = trim(GETPOST("search_all", 'alpha'));
|
||||
$search = array();
|
||||
foreach ($object->fields as $key => $val) {
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ if (!$sortorder) {
|
|||
$sortorder = "ASC";
|
||||
}
|
||||
|
||||
// Initialize array of search criterias
|
||||
// Initialize array of search criteria
|
||||
$search_all = trim(GETPOST('search_all', 'alphanohtml'));
|
||||
$search = array();
|
||||
foreach ($object->fields as $key => $val) {
|
||||
|
|
@ -584,7 +584,7 @@ $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
|
|||
$selectedfields = ($mode != 'kanban' ? $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN', '')) : ''); // This also change content of $arrayfields
|
||||
$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
|
||||
|
||||
print '<div class="div-table-responsive">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="tagtable nobottomiftotal liste'.($moreforfilter ? " listwithfilterbefore" : "").'">'."\n";
|
||||
|
||||
// Fields title search
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ class MyModuleFunctionalTest extends \PHPUnit_Extensions_Selenium2TestCase
|
|||
} else {
|
||||
// Disable the module
|
||||
$this->byHref('modMyModule')->click();
|
||||
// Reenable the module
|
||||
// Re-enable the module
|
||||
$this->byHref('modMyModule')->click();
|
||||
}
|
||||
// Page reloaded, we need a new Xpath
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ class Mos extends DolibarrApi
|
|||
/**
|
||||
* Get properties of a MO object
|
||||
*
|
||||
* Return an array with MO informations
|
||||
* Return an array with MO information
|
||||
*
|
||||
* @param int $id ID of MO
|
||||
* @return Object Object with cleaned properties
|
||||
|
|
@ -187,7 +187,7 @@ class Mos extends DolibarrApi
|
|||
|
||||
foreach ($request_data as $field => $value) {
|
||||
if ($field === 'caller') {
|
||||
// Add a mention of caller so on trigger called after action, we can filter to avoid a loop if we try to sync back again whith the caller
|
||||
// Add a mention of caller so on trigger called after action, we can filter to avoid a loop if we try to sync back again with the caller
|
||||
$this->mo->context['caller'] = $request_data['caller'];
|
||||
continue;
|
||||
}
|
||||
|
|
@ -231,7 +231,7 @@ class Mos extends DolibarrApi
|
|||
continue;
|
||||
}
|
||||
if ($field === 'caller') {
|
||||
// Add a mention of caller so on trigger called after action, we can filter to avoid a loop if we try to sync back again whith the caller
|
||||
// Add a mention of caller so on trigger called after action, we can filter to avoid a loop if we try to sync back again with the caller
|
||||
$this->mo->context['caller'] = $request_data['caller'];
|
||||
continue;
|
||||
}
|
||||
|
|
@ -348,7 +348,7 @@ class Mos extends DolibarrApi
|
|||
$arraytoproduce = $value;
|
||||
}
|
||||
if ($field === 'caller') {
|
||||
// Add a mention of caller so on trigger called after action, we can filter to avoid a loop if we try to sync back again whith the caller
|
||||
// Add a mention of caller so on trigger called after action, we can filter to avoid a loop if we try to sync back again with the caller
|
||||
$stockmove->context['caller'] = $request_data['caller'];
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ class Mo extends CommonObject
|
|||
* 'noteditable' says if field is not editable (1 or 0)
|
||||
* 'default' is a default value for creation (can still be overwrote by the Setup of Default Values if field is editable in creation form). Note: If default is set to '(PROV)' and field is 'ref', the default value will be set to '(PROVid)' where id is rowid when a new record is created.
|
||||
* 'index' if we want an index in database.
|
||||
* 'foreignkey'=>'tablename.field' if the field is a foreign key (it is recommanded to name the field fk_...).
|
||||
* 'foreignkey'=>'tablename.field' if the field is a foreign key (it is recommended to name the field fk_...).
|
||||
* 'searchall' is 1 if we want to search in this field when making a search from the quick search button.
|
||||
* 'isameasure' must be set to 1 if you want to have a total on list for this field. Field type must be summable like integer or double(24,8).
|
||||
* 'css' and 'cssview' and 'csslist' is the CSS style to use on field. 'css' is used in creation and update. 'cssview' is used in view mode. 'csslist' is used for columns in lists. For example: 'maxwidth200', 'wordbreak', 'tdoverflowmax200'
|
||||
|
|
@ -1024,7 +1024,7 @@ class Mo extends CommonObject
|
|||
|
||||
// Protection
|
||||
if ($this->status == self::STATUS_VALIDATED) {
|
||||
dol_syslog(get_class($this)."::validate action abandonned: already validated", LOG_WARNING);
|
||||
dol_syslog(get_class($this)."::validate action abandoned: already validated", LOG_WARNING);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -1386,7 +1386,7 @@ class Mo extends CommonObject
|
|||
}
|
||||
|
||||
/**
|
||||
* Return a link to the object card (with optionaly the picto)
|
||||
* Return a link to the object card (with optionally the picto)
|
||||
*
|
||||
* @param int $withpicto Include picto in link (0=No picto, 1=Include picto into link, 2=Only picto)
|
||||
* @param string $option On what the link point to ('nolink', '', 'production', ...)
|
||||
|
|
@ -1605,7 +1605,7 @@ class Mo extends CommonObject
|
|||
* Create a document onto disk according to template module.
|
||||
*
|
||||
* @param string $modele Force template to use ('' to not force)
|
||||
* @param Translate $outputlangs objet lang a utiliser pour traduction
|
||||
* @param Translate $outputlangs object lang a utiliser pour traduction
|
||||
* @param int $hidedetails Hide details of lines
|
||||
* @param int $hidedesc Hide description
|
||||
* @param int $hideref Hide ref
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ $extrafields->fetch_name_optionals_label($object->table_element);
|
|||
|
||||
$search_array_options = $extrafields->getOptionalsFromPost($object->table_element, '', 'search_');
|
||||
|
||||
// Initialize array of search criterias
|
||||
// Initialize array of search criteria
|
||||
$search_all = GETPOST("search_all", 'alpha');
|
||||
$search = array();
|
||||
foreach ($object->fields as $key => $val) {
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ if (!$sortorder) {
|
|||
$sortorder = "ASC";
|
||||
}
|
||||
|
||||
// Initialize array of search criterias
|
||||
// Initialize array of search criteria
|
||||
$search_all = GETPOST('search_all', 'alphanohtml') ? GETPOST('search_all', 'alphanohtml') : GETPOST('sall', 'alphanohtml');
|
||||
$search = array();
|
||||
foreach ($object->fields as $key => $val) {
|
||||
|
|
@ -477,7 +477,7 @@ $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
|
|||
$selectedfields = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN', '')); // This also change content of $arrayfields
|
||||
$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
|
||||
|
||||
print '<div class="div-table-responsive">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="tagtable nobottomiftotal liste'.($moreforfilter ? " listwithfilterbefore" : "").'">'."\n";
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ $extrafields->fetch_name_optionals_label($object->table_element);
|
|||
|
||||
$search_array_options = $extrafields->getOptionalsFromPost($object->table_element, '', 'search_');
|
||||
|
||||
// Initialize array of search criterias
|
||||
// Initialize array of search criteria
|
||||
$search_all = trim(GETPOST("search_all", 'alpha'));
|
||||
$search = array();
|
||||
foreach ($object->fields as $key => $val) {
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ $extrafields->fetch_name_optionals_label($object->table_element);
|
|||
|
||||
$search_array_options = $extrafields->getOptionalsFromPost($object->table_element, '', 'search_');
|
||||
|
||||
// Initialize array of search criterias
|
||||
// Initialize array of search criteria
|
||||
$search_all = GETPOST("search_all", 'alpha');
|
||||
$search = array();
|
||||
foreach ($object->fields as $key => $val) {
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ class MultiCurrencies extends DolibarrApi
|
|||
/**
|
||||
* Get properties of a Currency object
|
||||
*
|
||||
* Return an array with Currency informations
|
||||
* Return an array with Currency information
|
||||
*
|
||||
* @param int $id ID of Currency
|
||||
* @return Object Object with cleaned properties
|
||||
|
|
@ -133,7 +133,7 @@ class MultiCurrencies extends DolibarrApi
|
|||
/**
|
||||
* Get properties of a Currency object by code
|
||||
*
|
||||
* Return an array with Currency informations
|
||||
* Return an array with Currency information
|
||||
* @url GET /bycode/{code}
|
||||
*
|
||||
* @param string $code Code of Currency (ex: EUR)
|
||||
|
|
@ -257,7 +257,7 @@ class MultiCurrencies extends DolibarrApi
|
|||
continue;
|
||||
}
|
||||
if ($field === 'caller') {
|
||||
// Add a mention of caller so on trigger called after action, we can filter to avoid a loop if we try to sync back again whith the caller
|
||||
// Add a mention of caller so on trigger called after action, we can filter to avoid a loop if we try to sync back again with the caller
|
||||
$multicurrency->context['caller'] = $request_data['caller'];
|
||||
continue;
|
||||
}
|
||||
|
|
@ -350,7 +350,7 @@ class MultiCurrencies extends DolibarrApi
|
|||
// phpcs:enable
|
||||
$object = parent::_cleanObjectDatas($object);
|
||||
|
||||
// Clear all fields out of interrest
|
||||
// Clear all fields out of interest
|
||||
foreach ($object as $key => $value) {
|
||||
if ($key == "rate") {
|
||||
$object->$key = $this->_cleanObjectDatasRate($object->$key);
|
||||
|
|
@ -376,7 +376,7 @@ class MultiCurrencies extends DolibarrApi
|
|||
// phpcs:enable
|
||||
$object = parent::_cleanObjectDatas($object);
|
||||
|
||||
// Clear all fields out of interrest
|
||||
// Clear all fields out of interest
|
||||
foreach ($object as $key => $value) {
|
||||
if ($key == "id" || $key == "rate" || $key == "date_sync") {
|
||||
continue;
|
||||
|
|
|
|||
|
|
@ -630,7 +630,7 @@ class MultiCurrency extends CommonObject
|
|||
return 1;
|
||||
}
|
||||
|
||||
return -1; // Alternate souce not found
|
||||
return -1; // Alternate source not found
|
||||
}
|
||||
|
||||
return 0; // Nothing to do
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
* \file htdocs/opensurvey/class/opensurveysondage.class.php
|
||||
* \ingroup opensurvey
|
||||
* \brief This file is an example for a CRUD class file (Create/Read/Update/Delete)
|
||||
* Initialy built by build_class_from_table on 2013-03-10 00:32
|
||||
* Initially built by build_class_from_table on 2013-03-10 00:32
|
||||
*/
|
||||
|
||||
// Put here all includes required by your class file
|
||||
|
|
@ -83,7 +83,7 @@ class Opensurveysondage extends CommonObject
|
|||
* 'alwayseditable' says if field can be modified also when status is not draft ('1' or '0')
|
||||
* 'default' is a default value for creation (can still be overwrote by the Setup of Default Values if field is editable in creation form). Note: If default is set to '(PROV)' and field is 'ref', the default value will be set to '(PROVid)' where id is rowid when a new record is created.
|
||||
* 'index' if we want an index in database.
|
||||
* 'foreignkey'=>'tablename.field' if the field is a foreign key (it is recommanded to name the field fk_...).
|
||||
* 'foreignkey'=>'tablename.field' if the field is a foreign key (it is recommended to name the field fk_...).
|
||||
* 'searchall' is 1 if we want to search in this field when making a search from the quick search button.
|
||||
* 'isameasure' must be set to 1 or 2 if field can be used for measure. Field type must be summable like integer or double(24,8). Use 1 in most cases, or 2 if you don't want to see the column total into list (for example for percentage)
|
||||
* 'css' and 'cssview' and 'csslist' is the CSS style to use on field. 'css' is used in creation and update. 'cssview' is used in view mode. 'csslist' is used for columns in lists. For example: 'css'=>'minwidth300 maxwidth500 widthcentpercentminusx', 'cssview'=>'wordbreak', 'csslist'=>'tdoverflowmax200'
|
||||
|
|
@ -476,7 +476,7 @@ class Opensurveysondage extends CommonObject
|
|||
}
|
||||
|
||||
/**
|
||||
* Return a link to the object card (with optionaly the picto)
|
||||
* Return a link to the object card (with optionally the picto)
|
||||
*
|
||||
* @param int $withpicto Include picto in link (0=No picto, 1=Include picto into link, 2=Only picto)
|
||||
* @param int $notooltip 1=Disable tooltip
|
||||
|
|
|
|||
|
|
@ -281,7 +281,7 @@ div.jourschoisis {
|
|||
font-size:12px;
|
||||
width:100%;
|
||||
}
|
||||
/*presenation des pages*/
|
||||
/*presentation des pages*/
|
||||
div.bodydate {
|
||||
padding:10px;
|
||||
font-family:arial, sans-serif;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/opensurvey/fonctions.php
|
||||
* \file htdocs/opensurvey/lib/opensurvey.lib.php
|
||||
* \ingroup opensurvey
|
||||
* \brief Functions for module
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -344,7 +344,7 @@ for ($i = 0; $i < $nbcolonnes; $i++) {
|
|||
|
||||
//parcours de tous les sujets actuels
|
||||
while (isset($toutsujet[$j])) {
|
||||
//si le sujet n'est pas celui qui a été effacé alors on concatene
|
||||
// If the subject is not the deleted subject, then concatenate the current subject
|
||||
if ($i != $j) {
|
||||
if (!empty($nouveauxsujets)) {
|
||||
$nouveauxsujets .= ',';
|
||||
|
|
@ -384,7 +384,7 @@ for ($i = 0; $i < $nbcolonnes; $i++) {
|
|||
// parcours de toutes les réponses actuelles
|
||||
for ($j = 0; $j < $nbcolonnes; $j++) {
|
||||
$car = substr($ensemblereponses, $j, 1);
|
||||
//si les reponses ne concerne pas la colonne effacée, on concatene
|
||||
//si les reponses ne concerne pas la colonne effacée, on concatenate
|
||||
if ($i != $j) {
|
||||
$newcar .= $car;
|
||||
}
|
||||
|
|
@ -906,7 +906,7 @@ while ($compteur < $num) {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
//sinon on remplace les choix de l'utilisateur par une ligne de checkbox pour recuperer de nouvelles valeurs
|
||||
// Else, replace the user's choices with a line of checkboxes to retrieve new values
|
||||
if ($compteur == $ligneamodifier) {
|
||||
for ($i = 0; $i < $nbcolonnes; $i++) {
|
||||
$car = substr($ensemblereponses, $i, 1);
|
||||
|
|
|
|||
|
|
@ -76,8 +76,8 @@ if (GETPOST('confirmation')) {
|
|||
$debutcreneau = explode(":", $creneaux[1]);
|
||||
$fincreneau = explode(":", $creneaux[2]);
|
||||
|
||||
//comparaison des heures de fin et de debut
|
||||
//si correctes, on entre les données dans la variables de session
|
||||
// Compare hours for start and end
|
||||
// If correct, add the data in the session variables
|
||||
if ($debutcreneau[0] < 24 && $fincreneau[0] < 24 && $debutcreneau[1] < 60 && $fincreneau[1] < 60 && ($debutcreneau[0] < $fincreneau[0] || ($debutcreneau[0] == $fincreneau[0] && $debutcreneau[1] < $fincreneau[1]))) {
|
||||
$_SESSION["horaires$i"][$j] = $creneaux[1].'-'.$creneaux[2];
|
||||
} else { //sinon message d'erreur et nettoyage de la case
|
||||
|
|
@ -89,8 +89,8 @@ if (GETPOST('confirmation')) {
|
|||
$debutcreneau = preg_split("/h/i", $creneaux[1]);
|
||||
$fincreneau = preg_split("/h/i", $creneaux[2]);
|
||||
|
||||
//comparaison des heures de fin et de debut
|
||||
//si correctes, on entre les données dans la variables de session
|
||||
// Compare hours for start and end
|
||||
// If correct, add the data in the session variables
|
||||
if ($debutcreneau[0] < 24 && $fincreneau[0] < 24 && $debutcreneau[1] < 60 && $fincreneau[1] < 60 && ($debutcreneau[0] < $fincreneau[0] || ($debutcreneau[0] == $fincreneau[0] && $debutcreneau[1] < $fincreneau[1]))) {
|
||||
$_SESSION["horaires$i"][$j] = $creneaux[1].'-'.$creneaux[2];
|
||||
} else { //sinon message d'erreur et nettoyage de la case
|
||||
|
|
@ -155,7 +155,7 @@ if (GETPOST('confirmation')) {
|
|||
$choixdate .= ",";
|
||||
$choixdate .= $_SESSION["totalchoixjour"][$i];
|
||||
$choixdate .= "@";
|
||||
// On remplace la virgule et l'arobase pour ne pas avoir de problème par la suite
|
||||
// Replace the comma and the '@' token to avoid issues
|
||||
$choixdate .= str_replace(array(',', '@'), array(',', '@'), $_SESSION["horaires$i"][$j]);
|
||||
}
|
||||
}
|
||||
|
|
@ -555,11 +555,11 @@ if (issetAndNoEmpty('totalchoixjour', $_SESSION) || $erreur) {
|
|||
|
||||
//affichage des cases d'horaires
|
||||
for ($j = 0; $j < $_SESSION["nbrecaseshoraires"]; $j++) {
|
||||
//si on voit une erreur, le fond de la case est rouge
|
||||
if (isset($errheure[$i][$j]) && $errheure[$i][$j]) {
|
||||
// When an error is found, the checkbox background is red
|
||||
print '<td><input type=text size="10" maxlength="11" name=horaires'.$i.'[] value="'.$_SESSION["horaires$i"][$j].'" style="background-color:#FF6666;"></td>'."\n";
|
||||
} else {
|
||||
//sinon la case est vide normalement
|
||||
// Else the color is empty (in principle)
|
||||
print '<td><input type=text size="10" maxlength="11" name=horaires'.$i.'[] value="'.$_SESSION["horaires$i"][$j].'"></td>'."\n";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ print '<input type="hidden" name="token" value="'.newToken().'">';
|
|||
print '<input type="hidden" name="action" value="setting">';
|
||||
print '<input type="hidden" name="page_y" value="">';
|
||||
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="noborder centpercent">';
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
|
|
@ -154,7 +154,7 @@ print load_fiche_titre($langs->trans("ReferingWebsiteCheck"), '', '');
|
|||
print '<span class="opacitymedium">'.$langs->trans("ReferingWebsiteCheckDesc").'</span><br>';
|
||||
print '<br>';
|
||||
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="noborder centpercent">';
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ class Partnerships extends DolibarrApi
|
|||
/**
|
||||
* Get properties of a partnership object
|
||||
*
|
||||
* Return an array with partnership informations
|
||||
* Return an array with partnership information
|
||||
*
|
||||
* @param int $id ID of partnership
|
||||
* @return Object Object with cleaned properties
|
||||
|
|
@ -199,7 +199,7 @@ class Partnerships extends DolibarrApi
|
|||
|
||||
foreach ($request_data as $field => $value) {
|
||||
if ($field === 'caller') {
|
||||
// Add a mention of caller so on trigger called after action, we can filter to avoid a loop if we try to sync back again whith the caller
|
||||
// Add a mention of caller so on trigger called after action, we can filter to avoid a loop if we try to sync back again with the caller
|
||||
$this->partnership->context['caller'] = $request_data['caller'];
|
||||
continue;
|
||||
}
|
||||
|
|
@ -247,7 +247,7 @@ class Partnerships extends DolibarrApi
|
|||
continue;
|
||||
}
|
||||
if ($field === 'caller') {
|
||||
// Add a mention of caller so on trigger called after action, we can filter to avoid a loop if we try to sync back again whith the caller
|
||||
// Add a mention of caller so on trigger called after action, we can filter to avoid a loop if we try to sync back again with the caller
|
||||
$this->partnership->context['caller'] = $request_data['caller'];
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ class Partnership extends CommonObject
|
|||
* 'noteditable' says if field is not editable (1 or 0)
|
||||
* 'default' is a default value for creation (can still be overwrote by the Setup of Default Values if field is editable in creation form). Note: If default is set to '(PROV)' and field is 'ref', the default value will be set to '(PROVid)' where id is rowid when a new record is created.
|
||||
* 'index' if we want an index in database.
|
||||
* 'foreignkey'=>'tablename.field' if the field is a foreign key (it is recommanded to name the field fk_...).
|
||||
* 'foreignkey'=>'tablename.field' if the field is a foreign key (it is recommended to name the field fk_...).
|
||||
* 'searchall' is 1 if we want to search in this field when making a search from the quick search button.
|
||||
* 'isameasure' must be set to 1 if you want to have a total on list for this field. Field type must be summable like integer or double(24,8).
|
||||
* 'css' and 'cssview' and 'csslist' is the CSS style to use on field. 'css' is used in creation and update. 'cssview' is used in view mode. 'csslist' is used for columns in lists. For example: 'maxwidth200', 'wordbreak', 'tdoverflowmax200'
|
||||
|
|
@ -342,7 +342,7 @@ class Partnership extends CommonObject
|
|||
if ($id) {
|
||||
$sql .= " WHERE p.rowid = ".((int) $id);
|
||||
} else {
|
||||
$sql .= " WHERE p.entity IN (0,".getEntity('partnership').")"; // Dont't use entity if you use rowid
|
||||
$sql .= " WHERE p.entity IN (0,".getEntity('partnership').")"; // Don't use entity if you use rowid
|
||||
}
|
||||
|
||||
if ($ref) {
|
||||
|
|
@ -568,7 +568,7 @@ class Partnership extends CommonObject
|
|||
|
||||
// Protection
|
||||
if ($this->status == self::STATUS_VALIDATED) {
|
||||
dol_syslog(get_class($this)."::validate action abandonned: already validated", LOG_WARNING);
|
||||
dol_syslog(get_class($this)."::validate action abandoned: already validated", LOG_WARNING);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -700,7 +700,7 @@ class Partnership extends CommonObject
|
|||
|
||||
// Protection
|
||||
if ($this->status == self::STATUS_APPROVED) {
|
||||
dol_syslog(get_class($this)."::accept action abandonned: already acceptd", LOG_WARNING);
|
||||
dol_syslog(get_class($this)."::accept action abandoned: already acceptd", LOG_WARNING);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -940,7 +940,7 @@ class Partnership extends CommonObject
|
|||
}
|
||||
|
||||
/**
|
||||
* Return a link to the object card (with optionaly the picto)
|
||||
* Return a link to the object card (with optionally the picto)
|
||||
*
|
||||
* @param int $withpicto Include picto in link (0=No picto, 1=Include picto into link, 2=Only picto)
|
||||
* @param string $option On what the link point to ('nolink', ...)
|
||||
|
|
@ -1235,7 +1235,7 @@ class Partnership extends CommonObject
|
|||
* Create a document onto disk according to template module.
|
||||
*
|
||||
* @param string $modele Force template to use ('' to not force)
|
||||
* @param Translate $outputlangs objet lang a utiliser pour traduction
|
||||
* @param Translate $outputlangs object lang a utiliser pour traduction
|
||||
* @param int $hidedetails Hide details of lines
|
||||
* @param int $hidedesc Hide description
|
||||
* @param int $hideref Hide ref
|
||||
|
|
|
|||
|
|
@ -252,7 +252,7 @@ class PartnershipType extends CommonObject
|
|||
}
|
||||
|
||||
/**
|
||||
* Return a link to the object card (with optionaly the picto)
|
||||
* Return a link to the object card (with optionally the picto)
|
||||
*
|
||||
* @param int $withpicto Include picto in link (0=No picto, 1=Include picto into link, 2=Only picto)
|
||||
* @param string $option On what the link point to ('nolink', ...)
|
||||
|
|
|
|||
|
|
@ -321,7 +321,7 @@ class PartnershipUtils
|
|||
}
|
||||
$sql .= " WHERE p.".$fk_partner." > 0";
|
||||
$sql .= " AND p.status = ".((int) $partnership::STATUS_APPROVED); // Only accepted and not yet canceled
|
||||
$sql .= " AND (p.last_check_backlink IS NULL OR p.last_check_backlink <= '".$this->db->idate($now - 24 * 3600)."')"; // Never more than 1 check every day to check that website contains a referal link.
|
||||
$sql .= " AND (p.last_check_backlink IS NULL OR p.last_check_backlink <= '".$this->db->idate($now - 24 * 3600)."')"; // Never more than 1 check every day to check that website contains a referral link.
|
||||
$sql .= $this->db->order('p.rowid', 'ASC');
|
||||
// Limit is managed into loop later
|
||||
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ $extrafields->fetch_name_optionals_label($object->table_element);
|
|||
|
||||
$search_array_options = $extrafields->getOptionalsFromPost($object->table_element, '', 'search_');
|
||||
|
||||
// Initialize array of search criterias
|
||||
// Initialize array of search criteria
|
||||
$search_all = GETPOST("search_all", 'alpha');
|
||||
$search = array();
|
||||
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ if (!$sortorder) {
|
|||
$sortorder = "ASC";
|
||||
}
|
||||
|
||||
// Initialize array of search criterias
|
||||
// Initialize array of search criteria
|
||||
$search_all = GETPOST('search_all', 'alphanohtml');
|
||||
$search = array();
|
||||
foreach ($object->fields as $key => $val) {
|
||||
|
|
@ -724,7 +724,7 @@ $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
|
|||
$selectedfields = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN', '')); // This also change content of $arrayfields
|
||||
$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
|
||||
|
||||
print '<div class="div-table-responsive">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="tagtable nobottomiftotal liste'.($moreforfilter ? " listwithfilterbefore" : "").'">'."\n";
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -90,19 +90,19 @@ function print_paybox_redirect($PRICE, $CURRENCY, $EMAIL, $urlok, $urlko, $TAG)
|
|||
|
||||
$conf->global->PAYBOX_HASH = 'sha512';
|
||||
|
||||
// Definition des parametres vente produit pour paybox
|
||||
// Definition des parameters vente produit pour paybox
|
||||
$IBS_CMD = $TAG;
|
||||
$IBS_TOTAL = $PRICE * 100; // En centimes
|
||||
$IBS_MODE = 1; // Mode formulaire
|
||||
$IBS_PORTEUR = $EMAIL;
|
||||
$IBS_RETOUR = "montant:M;ref:R;auto:A;trans:T"; // Format des parametres du get de validation en reponse (url a definir sous paybox)
|
||||
$IBS_RETOUR = "montant:M;ref:R;auto:A;trans:T"; // Format of the validation GET parameter in reply (url to define for paybox)
|
||||
$IBS_TXT = ' '; // Use a space
|
||||
$IBS_EFFECTUE = $urlok;
|
||||
$IBS_ANNULE = $urlko;
|
||||
$IBS_REFUSE = $urlko;
|
||||
$IBS_BKGD = "#FFFFFF";
|
||||
$IBS_WAIT = "2000";
|
||||
$IBS_LANG = "GBR"; // By default GBR=english (FRA, GBR, ESP, ITA et DEU...)
|
||||
$IBS_LANG = "GBR"; // By default GBR=English (FRA, GBR, ESP, ITA et DEU...)
|
||||
if (preg_match('/^FR/i', $langs->defaultlang)) {
|
||||
$IBS_LANG = "FRA";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -286,8 +286,8 @@ function callSetExpressCheckout($paymentAmount, $currencyCodeType, $paymentType,
|
|||
|
||||
//'---------------------------------------------------------------------------------------------------------------
|
||||
//' Make the API call to PayPal
|
||||
//' If the API call succeded, then redirect the buyer to PayPal to begin to authorize payment.
|
||||
//' If an error occured, show the resulting errors
|
||||
//' If the API call succeeded, then redirect the buyer to PayPal to begin to authorize payment.
|
||||
//' If an error occurred, show the resulting errors
|
||||
//'---------------------------------------------------------------------------------------------------------------
|
||||
$resArray = hash_call("SetExpressCheckout", $nvpstr);
|
||||
$ack = strtoupper($resArray["ACK"]);
|
||||
|
|
@ -310,7 +310,7 @@ function getDetails($token)
|
|||
//'--------------------------------------------------------------
|
||||
//' At this point, the buyer has completed authorizing the payment
|
||||
//' at PayPal. The function will call PayPal to obtain the details
|
||||
//' of the authorization, incuding any shipping information of the
|
||||
//' of the authorization, including any shipping information of the
|
||||
//' buyer. Remember, the authorization is not a completed transaction
|
||||
//' at this state - the buyer still needs an additional step to finalize
|
||||
//' the transaction
|
||||
|
|
@ -376,7 +376,7 @@ function confirmPayment($token, $paymentType, $currencyCodeType, $payerID, $ipad
|
|||
$nvpstr .= '&INVNUM='.urlencode($tag);
|
||||
|
||||
/* Make the call to PayPal to finalize payment
|
||||
If an error occured, show the resulting errors
|
||||
If an error occurred, show the resulting errors
|
||||
*/
|
||||
$resArray = hash_call("DoExpressCheckoutPayment", $nvpstr);
|
||||
|
||||
|
|
@ -446,7 +446,7 @@ function DirectPayment($paymentType, $paymentAmount, $creditCardType, $creditCar
|
|||
*
|
||||
* @param string $methodName is name of API method.
|
||||
* @param string $nvpStr is nvp string.
|
||||
* @return array returns an associtive array containing the response from the server.
|
||||
* @return array returns an associative array containing the response from the server.
|
||||
*/
|
||||
function hash_call($methodName, $nvpStr)
|
||||
{
|
||||
|
|
@ -568,26 +568,26 @@ function hash_call($methodName, $nvpStr)
|
|||
|
||||
/**
|
||||
* This function will take NVPString and convert it to an Associative Array and it will decode the response.
|
||||
* It is usefull to search for a particular key and displaying arrays.
|
||||
* It is useful to search for a particular key and displaying arrays.
|
||||
*
|
||||
* @param string $nvpstr NVPString
|
||||
* @return array nvpArray = Associative Array
|
||||
*/
|
||||
function deformatNVP($nvpstr)
|
||||
{
|
||||
$intial = 0;
|
||||
$initial = 0;
|
||||
$nvpArray = array();
|
||||
|
||||
while (strlen($nvpstr)) {
|
||||
//postion of Key
|
||||
//position of Key
|
||||
$keypos = strpos($nvpstr, '=');
|
||||
//position of value
|
||||
$valuepos = strpos($nvpstr, '&') ? strpos($nvpstr, '&') : strlen($nvpstr);
|
||||
|
||||
/*getting the Key and Value values and storing in a Associative Array*/
|
||||
$keyval = substr($nvpstr, $intial, $keypos);
|
||||
$keyval = substr($nvpstr, $initial, $keypos);
|
||||
$valval = substr($nvpstr, $keypos + 1, $valuepos - $keypos - 1);
|
||||
//decoding the respose
|
||||
//decoding the response
|
||||
$nvpArray[urldecode($keyval)] = urldecode($valval);
|
||||
$nvpstr = substr($nvpstr, $valuepos + 1, strlen($nvpstr));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user