# not, write to: # # Free Software Foundation, Inc., # 59 Temple Place, # Suite 330, # Boston, MA 02111-1307 USA # # $Id: extract.php,v 1.3 2005/04/18 15:23:54 filetreefrog Exp $ ################################################## if (!defined('PATHOS')) { exit(''); } $dest_dir = $_POST['dest_dir']; $files = array(); if (!defined('SYS_FILES')) { require_once BASE . 'subsystems/files.php'; } foreach (array_keys($_POST['mods']) as $mod) { $files[$mod] = array('', array()); if (class_exists($mod)) { $files[$mod][0] = call_user_func(array($mod, 'name')); } foreach (array_keys(pathos_files_listFlat($dest_dir . '/files/' . $mod, 1, null, array(), $dest_dir . '/files/' . $mod . '/')) as $file) { $files[$mod][1][$file] = pathos_files_canCreate(BASE . 'files/' . $mod . '/' . $file); } } pathos_sessions_set('dest_dir', $dest_dir); pathos_sessions_set('files_data', $files); $template = new template('importer', '_files_verifyFiles'); $template->assign('files_data', $files); $template->output();
# Suite 330, # Boston, MA 02111-1307 USA # # $Id: start.php,v 1.8 2005/04/18 15:50:04 filetreefrog Exp $ ################################################## if (!defined("PATHOS")) { exit(""); } if (!defined("SYS_FORMS")) { require_once BASE . "subsystems/forms.php"; } if (!defined("SYS_FILES")) { require_once BASE . "subsystems/files.php"; } $template = new template("importer", "_usercsv_form_start"); if (pathos_files_canCreate(BASE . "modules/importer/importers/usercsv/tmp/test") != SYS_FILES_SUCCESS) { $template->assign("error", "The modules/importer/importers/usercsv/tmp directory is not writable. Please contact your administrator."); $template->output(); } else { //initialize the for stuff pathos_forms_initialize(); //Get the I18N constants pathos_lang_loadDictionary('importers', 'usercsv'); //Setup the mete data (hidden values) $form = new form(); $form->meta("module", "importer"); $form->meta("action", "page"); $form->meta("page", "mapper"); $form->meta("importer", "usercsv"); //Setup the arrays with the name/value pairs for the dropdown menus $delimiterArray = array(',' => TR_IMPORTER_USERCSV_DEMILITER_ARRAY_COMMA_KEY, ';' => TR_IMPORTER_USERCSV_DEMILITER_ARRAY_SEMICOLON_KEY, ':' => TR_IMPORTER_USERCSV_DEMILITER_ARRAY_COLON_KEY, ' ' => TR_IMPORTER_USERCSV_DEMILITER_ARRAY_SPACE_KEY);
# not, write to: # # Free Software Foundation, Inc., # 59 Temple Place, # Suite 330, # Boston, MA 02111-1307 USA # # $Id: verify_extension.php,v 1.6 2005/04/18 15:33:34 filetreefrog Exp $ ################################################## // Part of the Extensions category. if (!defined('PATHOS')) { exit(''); } if (pathos_permissions_check('extensions', pathos_core_makeLocation('administrationmodule'))) { if (!defined('SYS_FILES')) { require_once BASE . 'subsystems/files.php'; } $sessid = session_id(); $files = array(); foreach (pathos_files_listFlat(BASE . 'extensionuploads/' . $sessid, true, null, array(), BASE . 'extensionuploads/' . $sessid) as $key => $f) { if ($key != '/archive.tar' && $key != '/archive.tar.gz' && $key != '/archive.tar.bz2' && $key != '/archive.zip') { $files[] = array('absolute' => $key, 'relative' => $f, 'canCreate' => pathos_files_canCreate(BASE . substr($key, 1)), 'ext' => substr($f, -3, 3)); } } $template = new template('administrationmodule', '_upload_filesList', $loc); $template->assign('relative', 'extensionuploads/' . $sessid); $template->assign('files', $files); $template->output(); } else { echo SITE_403_HTML; }