ALAF-Framework
  • ALAF-Framework
  • Formular
    • button
    • input-Feld
      • alaf_currency input-Feld
      • checkbox input-Feld
      • checkboxes input-Feld
      • date input-Feld
      • signpad input-Feld
    • select Feld
    • staticField Feld
  • Optionale Parameter für input
  • Change-Checkbox
  • Setup
  • Modulstruktur
  • Beispiele
    • alaf_server_side.php
    • cleanup.files.php
    • get.config.php
    • tabledata.php
Powered by GitBook
On this page

Was this helpful?

  1. Beispiele

cleanup.files.php

Beispiel einer Ordner- und Dateiauflistung, welche beim SetUp geprüft und gelöscht werden sollen:

<?php
/**
 * This file is part of
 * ALAF - PHP Framework System.
 * Copyright by Andre Lachnicht www.alaniso.de
 *
 * @Generated: by module modwizz @
 * @Revision: 0 @
 * @Author: Andre Lachnicht @
 * @Date: Thu 2017/08/31 22:51:51 CEST @
 */

// $modpath = 'modules/' . basename(dirname(__DIR__)) . '/';
$modpath = 'includes' . DS . 'classes' . DS;

/* Ordner zum löschen */
$deldirs = array(
    $modpath . 'PHPMailer',
	$modpath . 'PHPMailer/salat',
	$modpath . 'PHPMailer/language'
);

/* Dateien zum löschen */
$delfiles = array(
    $modpath . 'PHPMailer/class.pop3.php' 
);

?>

Wichtig: Das Setup includiert diese Datei und erwartet die Definition der beiden array-Variablen:

$deldirs[] und $delfiles[]

Previousalaf_server_side.phpNextget.config.php

Last updated 6 years ago

Was this helpful?