Beispiel #1
0
    <td height="46" valign="top">Command:<br>
      <input name="cmd" type="text" id="cmd" size="58">
      <input name="command" type="submit" id="command" value="Send">
      <input name="pw" type="hidden" id="pw" value="<?php 
        echo $_POST['pw'];
        ?>
"></td>
    </tr>
</table>
</form>
<?php 
    }
    if (isset($_POST['logdel'])) {
        ?>
<br>
<table width="648" border="0" cellpadding="0" cellspacing="0" bgcolor="#F2ECD7" class="tableborder">
  <!--DWLayoutTable-->
  <tr>
    <?php 
        DeleteLog();
        ?>
	<td width="646" height="20" valign="top">Log has been deleted. Select a new task. </td>
  </tr>
</table>
<?php 
    }
}
?>
</body>
</html>
                     if (!$price) {
                         $error = 'დააფიქსირეთ პროდუქტის ფასი!';
                     } else {
                         AddProd($user_id, $object_id, GetTransactionId($object_id), $prod_id, $prod_quantity, $s_price, $price);
                     }
                 } else {
                     $error = GetProductionInfo($object_id, $prod_id);
                 }
             }
         }
     }
     break;
 case 'delete_prod':
     $trans_det_id = $_REQUEST['trans_id'];
     $object_id = $_REQUEST['obj_id'];
     DeleteLog($trans_det_id);
     DeleteProduct($trans_det_id);
     if (CheckTransStatus($object_id)) {
         DeleteTransaction($object_id);
     }
     break;
 case 'save_transaction':
     $object_id = $_REQUEST['obj_id'];
     $car_number = $_REQUEST['car_number'];
     $status = CheckObjectStatus($object_id);
     if (!$status) {
         $error = 'პროდუქციის სია ცარიელია!';
     } else {
         SaveTransaction($object_id, $car_number);
     }
     break;
	}

	// und wegschreiben
	if ($save_config)
	{
		if (WriteParams(false) == true)
		{
			//neue Sprache? Dann Menue links auch aktualisieren
			if ($_SESSION['config']['language'] != $config['language'] || $_POST['scaption_old'] != $config['interface_server_caption'] || $oldtheme != $config['theme'] || $oldscposition != $config['interface_server_caption_position'])
			{
				$msg.='<script type="text/javascript">parent.MySQL_Dumper_menu.location.href="menu.php?config=' . urlencode($config['config_file']) . '";</script>';
				if (isset($_POST['cron_savepath_new']) && $_POST['cron_savepath_new'] > '') $msg.='<p class="success">' . $lang['L_SUCCESS_CONFIGFILE_CREATED'] . '</p>';
			}
			//Parameter laden
			read_config($config['config_file']);
			if ($config['logcompression'] != $oldlogcompression) DeleteLog();
			$msg.='<p class="success">' . sprintf($lang['L_SAVE_SUCCESS'],$config['config_file']) . '</p>';
			$msg.='<script type="text/javascript" language="javascript">parent.MySQL_Dumper_menu.location.href="menu.php?config=' . $config['config_file'] . '";</script>';
		}
		else
			$msg.='<p class="error">' . $lang['L_SAVE_ERROR'] . '</p>';
	}

}

ReadSQL();
?>
<script type="text/javascript">
function hide_pardivs() {
	document.getElementById("db").style.display = 'none';
	document.getElementById("global1").style.display = 'none';
Beispiel #4
0
function TestWorkDir()
{
    global $config;
    $ret = SetFileRechte($config['paths']['work']);
    if ($ret === true) {
        $ret = SetFileRechte($config['paths']['backup']);
    }
    if ($ret === true) {
        $ret = SetFileRechte($config['paths']['log']);
    }
    if ($ret === true) {
        $ret = SetFileRechte($config['paths']['config']);
    }
    if ($ret === true) {
        if (!file_exists($config['files']['parameter'])) {
            SetDefault(true);
        }
        if (!file_exists($config['files']['log'])) {
            DeleteLog();
        }
    }
    return $ret;
}
function TestWorkDir()
{
    global $config;
    //echo "work_chmod: $config['paths']['work']_chmod<br>";
    SetFileRechte($config['paths']['work']);
    SetFileRechte($config['paths']['backup']);
    SetFileRechte($config['paths']['structure']);
    SetFileRechte($config['paths']['log']);
    SetFileRechte($config['paths']['config']);
    if (!file_exists($config['files']['parameter'])) {
        SetDefault(true);
    }
    if (!file_exists($config['files']['log'])) {
        DeleteLog();
    }
}
Beispiel #6
0
function SwitchLogfileFormat()
{
    global $config;
    $del = DeleteFilesM($config['paths']['log'], "*");
    DeleteLog();
}