示例#1
0
function putGroup($aVals)
{
    global $pathPluginsTmp;
    $path = $pathPluginsTmp . $aVals['group'];
    $source = 'templates/plugins/group' . ucfirst($aVals['extension']) . '/group' . ucfirst($aVals['extension']) . '.xml';
    $target = $path . '/' . $aVals['group'] . '.xml';
    if (_fileExists($path) || _fileExists($target) || !_makeDir($path) || !_putFile($source, $target, $aVals) || _fileMissing($target)) {
        exit(1);
    }
}
示例#2
0
function putPackage($aVals)
{
    $source = 'templates/changes/openads_upgrade.xml';
    $target = MAX_PATH . '/etc/changes/openads_upgrade_' . $aVals['version'] . '.xml';
    if (_fileExists($target)) {
        return $target;
    }
    if (!_putFile($source, $target, $aVals) || _fileMissing($target)) {
        exit(1);
    }
    return $target;
}