Borzoo,
Because my host do'nt allow CHMODed at all, i need to "comment by PYAP" some lines in codebase.php
// Install Plugin
function copperad_install()
{
global $CONFIG, $lang_plugin_copperad, $lang_plugin_copperad_config, $thisplugin;
require ('plugins/copper_ad/include/init.inc.php');
if ($_POST['submit']==$lang_plugin_copperad_config['button_install']) {
require 'include/sql_parse.php';
// Copy needed file and ADV directory
// COMMENT BY PYAP copy($thisplugin->fullpath."/banner.php.sample","banner.php") or cpg_die(ERROR, $lang_plugin_copperad_config['permission'], __FILE__, __LINE__);
// COMMENT BY PYAP copy($thisplugin->fullpath."/bannermgr.php.sample","bannermgr.php") or cpg_die(ERROR, //COMMENT BY PYAP $lang_plugin_copperad_config['permission'], __FILE__, __LINE__);
// COMMENT BY PYAP mkdir('adv') or cpg_die(ERROR, $lang_plugin_copperad_config['permission'], __FILE__, __LINE__);
// COMMENT BY PYAP mkdir('adv/pic') or cpg_die(ERROR, $lang_plugin_copperad_config['permission'], __FILE__, __LINE__);
// COMMENT BY PYAP mkdir('adv/flash') or cpg_die(ERROR, $lang_plugin_copperad_config['permission'], __FILE__, __LINE__);
// COMMENT BY PYAP copy($thisplugin->fullpath."/adv/pic/copperad.jpg","adv/pic/copperad.jpg") or cpg_die(ERROR, $lang_plugin_copperad_config['permission'], __FILE__, __LINE__);
copy($thisplugin->fullpath."/adv/flash/copperad.swf","adv/flash/copperad.swf") or cpg_die(ERROR, $lang_plugin_copperad_config['permission'], __FILE__, __LINE__);
I need also to place by hand in my Gallery's root http:// myCPG/ this two files banner.php.sample and bannermgr.php.sample (remane banner.php and bannermgr.php)
PYAP