common_cadline_libraries (CRM hardlock/db/users classes; upstream cadline_web/cadcommonlib), maintenance/ (ARCHLine.XP license backend; upstream cadline_web/maintenance), maintenance2/. Vetted live files (byte-truth); upstream repos in PROVENANCE.md. NOTE: could be git submodules — kept as live files for byte-fidelity. Signed-off-by: LÁZÁR Imre <imre@illusion.hu> Assisted-by: claude-code@claude-opus-4-8
43 lines
1.3 KiB
PHP
43 lines
1.3 KiB
PHP
<?php
|
||
include('config.php');
|
||
include('../helper/sajatfeltolto.php');
|
||
|
||
$guid = $_GET['guid'];
|
||
$sorozatszam = $_GET['sn'];
|
||
$honnan = '/home/vendeg/support/' . $guid;
|
||
$hova = $folder . 'public/ugyfelupload/' . $sorozatszam;
|
||
|
||
//print "<br />guid: ".$guid."<br /> sorozatszam: ".$sorozatszam."<br />";
|
||
|
||
if (!$guid || !$sorozatszam) {
|
||
$msh2->insert("`" . $config2['db_name'] . "`.`a_hibak`", array(
|
||
"osztaly" => "projects",
|
||
"fv" => "supportupload",
|
||
"hiba" => "Hi<EFBFBD>nyz<EFBFBD> guid vagy sorozatsz<73>m:\nguid: " . $guid . "\nsorozatsz<EFBFBD>m: " . $sorozatszam,
|
||
"datum" => date('Y-m-d H:i:s', time()),
|
||
));
|
||
return;
|
||
}
|
||
|
||
if (!file_exists($honnan) && file_exists($honnan . "=")) $honnan .= "=";
|
||
elseif (!file_exists($honnan) && file_exists($honnan . "==")) $honnan .= "==";
|
||
|
||
if (!is_dir($hova)) {
|
||
print($hova);
|
||
mkdir($hova, 0777);
|
||
exec("chmod 777 " . $folder . $hova);
|
||
}
|
||
$hova .= "/" . trim(base64_decode($guid), "=");;
|
||
|
||
if (athelyez($honnan, $hova)) {
|
||
exec("chmod 777 " . $folder . $hova);
|
||
} else // sikertelen masolas
|
||
{
|
||
$msh2->insert("`" . $config2['db_name'] . "`.`a_hibak`", array(
|
||
"osztaly" => "projects",
|
||
"fv" => "supportupload",
|
||
"hiba" => "M<EFBFBD>sol<EFBFBD>s hiba, honnan:" . $honnan . "\nhova: " . $hova,
|
||
"datum" => date('Y-m-d H:i:s', time()),
|
||
));
|
||
}
|