Completed
Push — 1.11.x ( 7ffd51...902ebd )
by José
50:21 queued 21:28
created
main/install/index.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -445,7 +445,10 @@
 block discarded – undo
445 445
     }
446 446
 }
447 447
     ?>
448
-    <input type="hidden" name="updatePath"         value="<?php if (!$badUpdatePath) echo api_htmlentities($proposedUpdatePath, ENT_QUOTES); ?>" />
448
+    <input type="hidden" name="updatePath"         value="<?php if (!$badUpdatePath) {
449
+    echo api_htmlentities($proposedUpdatePath, ENT_QUOTES);
450
+}
451
+?>" />
449 452
     <input type="hidden" name="urlAppendPath"      value="<?php echo api_htmlentities($urlAppendPath, ENT_QUOTES); ?>" />
450 453
     <input type="hidden" name="pathForm"           value="<?php echo api_htmlentities($pathForm, ENT_QUOTES); ?>" />
451 454
     <input type="hidden" name="urlForm"            value="<?php echo api_htmlentities($urlForm, ENT_QUOTES); ?>" />
Please login to merge, or discard this patch.
main/admin/user_update_import.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -464,7 +464,10 @@
 block discarded – undo
464 464
 <blockquote>
465 465
     <pre>
466 466
         <b>UserName</b>;LastName;FirstName;Email;NewUserName;Password;AuthSource;OfficialCode;PhoneNumber;Status;ExpiryDate;Active;Language;Courses;ClassId;
467
-        xxx;xxx;xxx;xxx;xxx;xxx;xxx;xxx;xxx;user/teacher/drh;YYYY-MM-DD 00:00:00;0/1;xxx;<span style="color:red;"><?php if (count($list_reponse) > 0) echo implode(';', $list_reponse).';'; ?></span>xxx1|xxx2|xxx3;1;<br />
467
+        xxx;xxx;xxx;xxx;xxx;xxx;xxx;xxx;xxx;user/teacher/drh;YYYY-MM-DD 00:00:00;0/1;xxx;<span style="color:red;"><?php if (count($list_reponse) > 0) {
468
+    echo implode(';', $list_reponse).';';
469
+}
470
+?></span>xxx1|xxx2|xxx3;1;<br />
468 471
     </pre>
469 472
 </blockquote>
470 473
 <p><?php
Please login to merge, or discard this patch.
plugin/buycourses/src/configuration.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,12 +40,12 @@
 block discarded – undo
40 40
 $tpl->assign('sessions_are_included', $includeSession);
41 41
 $tpl->assign('services_are_included', $includeServices);
42 42
 
43
-if ($includeSession) {
43
+if ($includeSession) {
44 44
     $sessions = $plugin->getSessionsForConfiguration();
45 45
     $tpl->assign('sessions', $sessions);
46 46
 }
47 47
 
48
-if ($includeServices) {
48
+if ($includeServices) {
49 49
     $services = $plugin->getServices();
50 50
     $tpl->assign('services', $services);
51 51
 }
Please login to merge, or discard this patch.
plugin/buycourses/src/course_catalog.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     FormValidator::LAYOUT_INLINE
28 28
 );
29 29
 
30
-if ($form->validate()) {
30
+if ($form->validate()) {
31 31
     $formValues = $form->getSubmitValues();
32 32
     $nameFilter = isset($formValues['name']) ? $formValues['name'] : null;
33 33
     $minFilter = isset($formValues['min']) ? $formValues['min'] : 0;
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 $courseList = $plugin->getCatalogCourseList($nameFilter, $minFilter, $maxFilter);
55 55
 
56 56
 //View
57
-if (api_is_platform_admin()) {
57
+if (api_is_platform_admin()) {
58 58
     $interbreadcrumb[] = [
59 59
         'url' => 'configuration.php',
60 60
         'name' => $plugin->get_lang('AvailableCoursesConfiguration')
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         'url' => 'paymentsetup.php',
64 64
         'name' => $plugin->get_lang('PaymentsConfiguration')
65 65
     ];
66
-} else {
66
+} else {
67 67
     $interbreadcrumb[] = [
68 68
         'url' => 'course_panel.php',
69 69
         'name' => get_lang('TabsDashboard')
Please login to merge, or discard this patch.
plugin/buycourses/src/index.buycourses.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@
 block discarded – undo
9 9
 $plugin = BuyCoursesPlugin::create();
10 10
 $guess_enable = $plugin->get('unregistered_users_enable');
11 11
 
12
-if ($guess_enable == "true" || isset($_SESSION['_user'])) {
12
+if ($guess_enable == "true" || isset($_SESSION['_user'])) {
13 13
     // If the user is NOT an administrator, redirect it to course/session buy list
14
-    if (!api_is_platform_admin()) {
14
+    if (!api_is_platform_admin()) {
15 15
         header('Location: src/course_panel.php');
16 16
         exit;
17 17
     }
Please login to merge, or discard this patch.
plugin/buycourses/src/paymentsetup.php 1 patch
Braces   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
 $commissionsEnable = $plugin->get('commissions_enable');
19 19
 $culqiEnable = $plugin->get('culqi_enable');
20 20
 
21
-if (isset($_GET['action'], $_GET['id'])) {
22
-    if ($_GET['action'] == 'delete_taccount') {
21
+if (isset($_GET['action'], $_GET['id'])) {
22
+    if ($_GET['action'] == 'delete_taccount') {
23 23
         $plugin->deleteTransferAccount($_GET['id']);
24 24
 
25 25
         Display::addFlash(
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
 $currencyForm = new FormValidator('currency');
35 35
 
36
-if ($currencyForm->validate()) {
36
+if ($currencyForm->validate()) {
37 37
     $currencyFormValues = $currencyForm->getSubmitValues();
38 38
 
39 39
     $plugin->selectCurrency($currencyFormValues['currency']);
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     [get_lang('Select')]
60 60
 );
61 61
 
62
-foreach ($currencies as $currency) {
62
+foreach ($currencies as $currency) {
63 63
     $currencyText = implode(
64 64
         ' => ',
65 65
         [
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
     $currencySelect->addOption($currencyText, $currencyValue);
73 73
 
74
-    if ($currency['status']) {
74
+    if ($currency['status']) {
75 75
         $currencySelect->setSelected($currencyValue);
76 76
     }
77 77
 }
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
 $paypalForm = new FormValidator('paypal');
86 86
 
87
-if ($paypalForm->validate()) {
87
+if ($paypalForm->validate()) {
88 88
     $paypalFormValues = $paypalForm->getSubmitValues();
89 89
 
90 90
     $plugin->savePaypalParams($paypalFormValues);
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 
124 124
 $commissionForm = new FormValidator('commissions');
125 125
 
126
-if ($commissionForm->validate()) {
126
+if ($commissionForm->validate()) {
127 127
     $commissionFormValues = $commissionForm->getSubmitValues();
128 128
 
129 129
     $plugin->updateCommission($commissionFormValues);
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 
150 150
 $transferForm = new FormValidator('transfer_account');
151 151
 
152
-if ($transferForm->validate()) {
152
+if ($transferForm->validate()) {
153 153
     $transferFormValues = $transferForm->getSubmitValues();
154 154
 
155 155
     $plugin->saveTransferAccount($transferFormValues);
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 
189 189
 $culqiForm = new FormValidator('culqi_config');
190 190
 
191
-if ($culqiForm->validate()) {
191
+if ($culqiForm->validate()) {
192 192
     $culqiFormValues = $culqiForm->getSubmitValues();
193 193
 
194 194
     $plugin->saveCulqiParameters($culqiFormValues);
Please login to merge, or discard this patch.
plugin/buycourses/src/expresscheckout.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
  */
31 31
 $resArray = CallShortcutExpressCheckout($paymentAmount, $currencyCodeType, $paymentType, $returnURL, $cancelURL);
32 32
 $ack = strtoupper($resArray["ACK"]);
33
-if ($ack == "SUCCESS" || $ack == "SUCCESSWITHWARNING") {
33
+if ($ack == "SUCCESS" || $ack == "SUCCESSWITHWARNING") {
34 34
     RedirectToPayPal($resArray["TOKEN"]);
35
-} else {
35
+} else {
36 36
     //Display a user friendly Error on the page using any of the following error information returned by PayPal
37 37
     $ErrorCode = urldecode($resArray["L_ERRORCODE0"]);
38 38
     $ErrorShortMsg = urldecode($resArray["L_SHORTMESSAGE0"]);
Please login to merge, or discard this patch.
plugin/buycourses/src/payout_report.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,16 +21,16 @@  discard block
 block discarded – undo
21 21
 $payoutStatuses = $plugin->getPayoutStatuses();
22 22
 $selectedStatus = isset($_GET['status']) ? $_GET['status'] : BuyCoursesPlugin::SALE_STATUS_COMPLETED;
23 23
 
24
-if ($commissionsEnable !== "true") {
24
+if ($commissionsEnable !== "true") {
25 25
     api_not_allowed(true);
26 26
 }
27 27
 
28 28
 $form = new FormValidator('search', 'get');
29 29
 
30
-if ($form->validate()) {
30
+if ($form->validate()) {
31 31
     $selectedStatus = $form->getSubmitValue('status');
32 32
 
33
-    if ($selectedStatus === false) {
33
+    if ($selectedStatus === false) {
34 34
         $selectedStatus = BuyCoursesPlugin::PAYOUT_STATUS_PENDING;
35 35
     }
36 36
 }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     'status' => $selectedStatus
42 42
 ]);
43 43
 
44
-switch ($selectedStatus) {
44
+switch ($selectedStatus) {
45 45
     case '2':
46 46
         $payouts = $plugin->getPayouts($selectedStatus);
47 47
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
 $payoutList = [];
62 62
 
63
-foreach ($payouts as $payout) {
63
+foreach ($payouts as $payout) {
64 64
     $payoutList[] = [
65 65
         'id' => $payout['id'],
66 66
         'sale_id' => $payout['sale_id'],
Please login to merge, or discard this patch.
plugin/jcapture/plugin_applet.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,9 @@
 block discarded – undo
15 15
 $hostName = api_get_path(WEB_PATH);
16 16
 
17 17
 define('DOKU_BASE', '/tmp');
18
-function getSecurityToken() {};
18
+function getSecurityToken()
19
+{
20
+};
19 21
 
20 22
 //close sesseion
21 23
 session_write_close();
Please login to merge, or discard this patch.