@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php // BEGIN PHP |
2 | -$websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__; |
|
3 | -if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
|
2 | +$websitekey = basename(__DIR__); if (empty($websitepagefile)) $websitepagefile = __FILE__; |
|
3 | +if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { |
|
4 | 4 | $pathdepth = count(explode('/', $_SERVER['SCRIPT_NAME'])) - 2; |
5 | 5 | require_once ($pathdepth ? str_repeat('../', $pathdepth) : './').'master.inc.php'; |
6 | 6 | } // Not already loaded |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | $listofpages = getPagesFromSearchCriterias('page', 'meta', GETPOST('s', 'alphanohtml')); |
81 | 81 | if ($listofpages['code'] == 'OK') |
82 | 82 | { |
83 | - foreach($listofpages['list'] as $websitepagefound) |
|
83 | + foreach ($listofpages['list'] as $websitepagefound) |
|
84 | 84 | { |
85 | 85 | print '<div class="rowsearchresult"><a href="'.$websitepagefound->ref.'.php">'.$websitepagefound->title.'</a> - '.$websitepagefound->description.'</div>'; |
86 | 86 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php // BEGIN PHP |
2 | -$websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__; |
|
3 | -if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
|
2 | +$websitekey = basename(__DIR__); if (empty($websitepagefile)) $websitepagefile = __FILE__; |
|
3 | +if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { |
|
4 | 4 | $pathdepth = count(explode('/', $_SERVER['SCRIPT_NAME'])) - 2; |
5 | 5 | require_once ($pathdepth ? str_repeat('../', $pathdepth) : './').'master.inc.php'; |
6 | 6 | } // Not already loaded |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | <div class="group-sm group-middle"> |
99 | 99 | <p class="font-italic text-white">Follow Us:</p> |
100 | 100 | <ul class="list-inline"> |
101 | - <?php foreach($mysoc->socialnetworks as $key => $value) { |
|
101 | + <?php foreach ($mysoc->socialnetworks as $key => $value) { |
|
102 | 102 | print '<li><a class="icon icon-xxs-smallest" href="'.(preg_match('/^http/', $value) ? $value : 'https://www.'.$key.'.com/'.$value).'"><span class="fab fa-'.$key.'" style="margin-left: 5px; font-size: 1.6em"></span></a></li>'; |
103 | 103 | } ?> |
104 | 104 | </ul> |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php // BEGIN PHP |
2 | -$websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__; |
|
3 | -if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
|
2 | +$websitekey = basename(__DIR__); if (empty($websitepagefile)) $websitepagefile = __FILE__; |
|
3 | +if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { |
|
4 | 4 | $pathdepth = count(explode('/', $_SERVER['SCRIPT_NAME'])) - 2; |
5 | 5 | require_once ($pathdepth ? str_repeat('../', $pathdepth) : './').'master.inc.php'; |
6 | 6 | } // Not already loaded |
@@ -63,17 +63,17 @@ discard block |
||
63 | 63 | $websitepage = new WebsitePage($db); |
64 | 64 | $fuser = new User($db); |
65 | 65 | $arrayofusers = array(); |
66 | - $MAXNB=10; |
|
67 | - $sql='SELECT rowid FROM '.MAIN_DB_PREFIX.'user WHERE statut = 1 and fk_soc IS NULL ORDER BY fk_user DESC LIMIT '.$MAXNB; |
|
66 | + $MAXNB = 10; |
|
67 | + $sql = 'SELECT rowid FROM '.MAIN_DB_PREFIX.'user WHERE statut = 1 and fk_soc IS NULL ORDER BY fk_user DESC LIMIT '.$MAXNB; |
|
68 | 68 | $resql = $db->query($sql); |
69 | - if (! $resql) dol_print_error($db); |
|
69 | + if (!$resql) dol_print_error($db); |
|
70 | 70 | while ($obj = $db->fetch_object($resql)) |
71 | 71 | { |
72 | - $arrayofusers[]=$obj->rowid; |
|
72 | + $arrayofusers[] = $obj->rowid; |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | print '<div class="row justify-content-sm-center row-40">'; |
76 | - foreach($arrayofusers as $id) |
|
76 | + foreach ($arrayofusers as $id) |
|
77 | 77 | { |
78 | 78 | $fuser->fetch($id); |
79 | 79 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php // BEGIN PHP |
2 | -$websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__; |
|
3 | -if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
|
2 | +$websitekey = basename(__DIR__); if (empty($websitepagefile)) $websitepagefile = __FILE__; |
|
3 | +if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { |
|
4 | 4 | $pathdepth = count(explode('/', $_SERVER['SCRIPT_NAME'])) - 2; |
5 | 5 | require_once ($pathdepth ? str_repeat('../', $pathdepth) : './').'master.inc.php'; |
6 | 6 | } // Not already loaded |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $weblangs->load("main"); |
63 | 63 | $fuser = new User($db); |
64 | 64 | $arrayofblogs = $websitepage->fetchAll($website->id, 'DESC', 'date_creation', 5, 0, array('type_container'=>'blogpost', 'status'=>1, 'lang'=>'null,'.$websitepage->lang)); |
65 | - foreach($arrayofblogs as $blog) |
|
65 | + foreach ($arrayofblogs as $blog) |
|
66 | 66 | { |
67 | 67 | print '<div class="row justify-content-sm-center row-40">'; |
68 | 68 | print '<div class="container blog-box d-xl-inline-block margin-lr-30" style="padding: 20px; box-shadow: -1px 0px 10px 0px rgba(65, 65, 65, 0.12); transition: .3s all ease;">'; |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | // BEGIN PHP File generated to provide an index.php as Home Page or alias redirector - DO NOT MODIFY - It is just a generated wrapper. |
3 | -$websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__; |
|
4 | -if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { require_once './master.inc.php'; } // Load master if not already loaded |
|
3 | +$websitekey = basename(__DIR__); if (empty($websitepagefile)) $websitepagefile = __FILE__; |
|
4 | +if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { require_once './master.inc.php'; } // Load master if not already loaded |
|
5 | 5 | if (!empty($_GET['pageref']) || !empty($_GET['pagealiasalt']) || !empty($_GET['pageid'])) { |
6 | 6 | require_once DOL_DOCUMENT_ROOT.'/core/lib/website.lib.php'; |
7 | 7 | require_once DOL_DOCUMENT_ROOT.'/core/website.inc.php'; |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php // BEGIN PHP |
2 | -$websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__; |
|
3 | -if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
|
2 | +$websitekey = basename(__DIR__); if (empty($websitepagefile)) $websitepagefile = __FILE__; |
|
3 | +if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { |
|
4 | 4 | $pathdepth = count(explode('/', $_SERVER['SCRIPT_NAME'])) - 2; |
5 | 5 | require_once ($pathdepth ? str_repeat('../', $pathdepth) : './').'master.inc.php'; |
6 | 6 | } // Not already loaded |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | $fuser = new User($db); |
69 | 69 | $arrayofrecord = $jobposition->fetchAll('DESC', 'date_creation', 5, 0, array('status'=>'1,3,9')); |
70 | 70 | $weblangs->load("main"); |
71 | - foreach($arrayofrecord as $jobrecord) |
|
71 | + foreach ($arrayofrecord as $jobrecord) |
|
72 | 72 | { |
73 | 73 | print '<div class="row justify-content-sm-center row-40">'; |
74 | 74 | print '<div class="container blog-box d-xl-inline-block" style="box-shadow: -1px 0px 10px 0px rgba(65, 65, 65, 0.12); transition: .3s all ease;">'; |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php // BEGIN PHP |
2 | -$websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__; |
|
3 | -if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
|
2 | +$websitekey = basename(__DIR__); if (empty($websitepagefile)) $websitepagefile = __FILE__; |
|
3 | +if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { |
|
4 | 4 | $pathdepth = count(explode('/', $_SERVER['SCRIPT_NAME'])) - 2; |
5 | 5 | require_once ($pathdepth ? str_repeat('../', $pathdepth) : './').'master.inc.php'; |
6 | 6 | } // Not already loaded |
@@ -538,7 +538,7 @@ discard block |
||
538 | 538 | <?php |
539 | 539 | $MAXNEWS = 3; |
540 | 540 | $arrayofblogs = $websitepage->fetchAll($website->id, 'DESC', 'date_creation', $MAXNEWS, 0, array('type_container'=>'blogpost', 'status'=>1, 'lang'=>'null,'.$websitepage->lang)); |
541 | - foreach($arrayofblogs as $blog) |
|
541 | + foreach ($arrayofblogs as $blog) |
|
542 | 542 | { |
543 | 543 | ?> |
544 | 544 | <div class="col-sm-8 col-md-7 col-lg-4"> |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php // BEGIN PHP |
2 | -$websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__; |
|
3 | -if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
|
2 | +$websitekey = basename(__DIR__); if (empty($websitepagefile)) $websitepagefile = __FILE__; |
|
3 | +if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { |
|
4 | 4 | $pathdepth = count(explode('/', $_SERVER['SCRIPT_NAME'])) - 2; |
5 | 5 | require_once ($pathdepth ? str_repeat('../', $pathdepth) : './').'master.inc.php'; |
6 | 6 | } // Not already loaded |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | <body id="bodywebsite" class="bodywebsite bodywebpage-index"> |
39 | 39 | <!-- Enter here your HTML content. Add a section with an id tag and tag contenteditable="true" if you want to use the inline editor for the content --> |
40 | 40 | <?php |
41 | - if (GETPOST('action') == 'sendmail') { |
|
41 | + if (GETPOST('action') == 'sendmail') { |
|
42 | 42 | include_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php'; |
43 | 43 | $from = GETPOST('email', 'alpha'); |
44 | 44 | $to = $mysoc->email; |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php // BEGIN PHP |
2 | -$websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__; |
|
3 | -if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { |
|
2 | +$websitekey = basename(__DIR__); if (empty($websitepagefile)) $websitepagefile = __FILE__; |
|
3 | +if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { |
|
4 | 4 | $pathdepth = count(explode('/', $_SERVER['SCRIPT_NAME'])) - 2; |
5 | 5 | require_once $pathdepth ? str_repeat('../', $pathdepth) : './'.'master.inc.php'; |
6 | 6 | } // Not already loaded |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | <!-- Section: Social media --> |
273 | 273 | <section class="mb-4"> |
274 | 274 | <?php foreach ($mysoc->socialnetworks as $key => $value) { |
275 | - print '<a class="btn btn-perso2 btn-floating m-1" href="'. (preg_match('/^http/', $value) ? $value : 'https://www.'.$key.'.com/'.$value).'"><span class="fab fa-'.$key.'"></i></a>'; |
|
275 | + print '<a class="btn btn-perso2 btn-floating m-1" href="'.(preg_match('/^http/', $value) ? $value : 'https://www.'.$key.'.com/'.$value).'"><span class="fab fa-'.$key.'"></i></a>'; |
|
276 | 276 | } ?> |
277 | 277 | |
278 | 278 | </section> |