Permalink
Browse files

Removed unused directories and files. Kept only development files for…

… pommo
  • Loading branch information...
1 parent d7b3f86 commit 54b1eb9e33ff46b779c0069fce25a694d0bc2853 Adrian Ancona Novelo committed Jul 28, 2010
Showing 3,204 changed files with 0 additions and 458,330 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
@@ -1,52 +0,0 @@
-<?php
-/**
- * Copyright (C) 2005, 2006, 2007, 2008 Brice Burgess <bhb@iceburg.net>
- *
- * This file is part of poMMo (http://www.pommo.org)
- *
- * poMMo is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published
- * by the Free Software Foundation; either version 2, or any later version.
- *
- * poMMo is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty
- * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
- * the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with program; see the file docs/LICENSE. If not, write to the
- * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-/**********************************
- INITIALIZATION METHODS
- *********************************/
-$lang = false;
-if (isset($_POST['lang'])) {
- define('_poMMo_lang', $_POST['lang']);
- $lang = true;
-}
-
-require('../bootstrap.php');
-$pommo->init();
-$logger = & $pommo->_logger;
-$dbo = & $pommo->_dbo;
-
-/**********************************
- SETUP TEMPLATE, PAGE
- *********************************/
-Pommo::requireOnce($pommo->_baseDir.'inc/classes/template.php');
-$template = new PommoTheme();
-
-$template->assign('header',array(
- 'main' => 'poMMo '.$pommo->_config['version'],
- 'sub' => sprintf(Pommo::_T('Powerful mailing list software for %s'),$pommo->_config['list_name'])
- ));
-
-if($lang)
- $logger->addErr(Pommo::_T('You have changed the language for this session. To make this the default language, you must update your config.php file.'));
-
-$template->assign('lang',($pommo->_slanguage) ? $pommo->_slanguage : $pommo->_language);
-$template->display('admin/admin.tpl');
-Pommo::kill();
-
@@ -1,42 +0,0 @@
-<?php
-/**
- * Copyright (C) 2005, 2006, 2007, 2008 Brice Burgess <bhb@iceburg.net>
- *
- * This file is part of poMMo (http://www.pommo.org)
- *
- * poMMo is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published
- * by the Free Software Foundation; either version 2, or any later version.
- *
- * poMMo is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty
- * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
- * the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with program; see the file docs/LICENSE. If not, write to the
- * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-/**********************************
- INITIALIZATION METHODS
- *********************************/
-require('../../bootstrap.php');
-Pommo::requireOnce($pommo->_baseDir.'inc/helpers/mailings.php');
-
-$pommo->init();
-$logger = & $pommo->_logger;
-$dbo = & $pommo->_dbo;
-
-/**********************************
- SETUP TEMPLATE, PAGE
- *********************************/
-Pommo::requireOnce($pommo->_baseDir.'inc/classes/template.php');
-$template = new PommoTheme();
-
-if (PommoMailing::isCurrent())
- Pommo::kill(sprintf(Pommo::_T('A Mailing is currently processing. Visit the %sStatus%s page to check its progress.'),'<a href="mailing_status.php">','</a>'));
-
-$template->display('admin/mailings/admin_mailings.tpl');
-Pommo::kill();
-?>
@@ -1,110 +0,0 @@
-<?php
-/**
- * Copyright (C) 2005, 2006, 2007, 2008 Brice Burgess <bhb@iceburg.net>
- *
- * This file is part of poMMo (http://www.pommo.org)
- *
- * poMMo is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published
- * by the Free Software Foundation; either version 2, or any later version.
- *
- * poMMo is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty
- * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
- * the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with program; see the file docs/LICENSE. If not, write to the
- * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-/**********************************
- INITIALIZATION METHODS
- *********************************/
-require ('../../../bootstrap.php');
-Pommo::requireOnce($pommo->_baseDir.'inc/helpers/mailings.php');
-
-$pommo->init();
-$logger = & $pommo->_logger;
-
-
-/**********************************
- SETUP TEMPLATE, PAGE
- *********************************/
-Pommo::requireOnce($pommo->_baseDir.'inc/classes/template.php');
-$template = new PommoTheme();
-
-// fetch the mailing IDs
-$mailingIDS = $_REQUEST['mailings'];
-if(!is_array($mailingIDS))
- $mailingIDS = array($mailingIDS);
-
-
-/**********************************
- JSON OUTPUT INITIALIZATION
- *********************************/
-Pommo::requireOnce($pommo->_baseDir.'inc/classes/json.php');
-$json = new PommoJSON(false); // do not toggle escaping
-
-// EXAMINE CALL
-switch ($_REQUEST['call']) {
- case 'notice':
- foreach($mailingIDS as $id) {
- $logger->AddMsg('<br /><br />###'. sprintf(Pommo::_T('Displaying notices for mailing %s'),PommoMailing::getSubject($id)).' ###<br /><br />');
- $notices = PommoMailing::getNotices($id);
- $logger->AddMsg($notices);
- }
- break;
-
- case 'reload' :
-
- Pommo::requireOnce($pommo->_baseDir.'inc/helpers/groups.php');
-
- $mailing = current(PommoMailing::get(array('id' => $_REQUEST['mailings'])));
-
- // change group name to ID
- $groups = PommoGroup::getNames();
- $gid = 'all';
- foreach($groups as $group)
- if ($group['name'] == $mailing['group'])
- $gid = $group['id'];
-
- PommoAPI::stateReset(array('mailing'));
-
- // if this is a plain text mailing, switch body + altbody.
- if($mailing['ishtml'] == 'off') {
- $mailing['altbody'] = $mailing['body'];
- $mailing['body'] = null;
- }
-
- // Initialize page state with default values overriden by those held in $_REQUEST
- $state =& PommoAPI::stateInit('mailing',array(
- 'fromname' => $mailing['fromname'],
- 'fromemail' => $mailing['fromemail'],
- 'frombounce' => $mailing['frombounce'],
- 'list_charset' => $mailing['charset'],
- 'mailgroup' => $gid,
- 'subject' => $mailing['subject'],
- 'body' => $mailing['body'],
- 'altbody' => $mailing['altbody']
- ));
-
- Pommo::redirect($pommo->_baseUrl.'admin/mailings/mailings_start.php');
- break;
-
- case 'delete' :
- $deleted = PommoMailing::delete($mailingIDS);
- $logger->addMsg(Pommo::_T('Please Wait').'...');
-
- $params = $json->encode(array('ids' => $mailingIDS));
- $template->assign('callbackFunction','deleteMailing');
- $template->assign('callbackParams',$params);
- break;
-
- default:
- $logger->AddErr('invalid call');
- break;
-}
-
-$template->display('admin/rpc.tpl');
-?>
@@ -1,49 +0,0 @@
-<?php
-/**
- * Copyright (C) 2005, 2006, 2007, 2008 Brice Burgess <bhb@iceburg.net>
- *
- * This file is part of poMMo (http://www.pommo.org)
- *
- * poMMo is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published
- * by the Free Software Foundation; either version 2, or any later version.
- *
- * poMMo is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty
- * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
- * the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with program; see the file docs/LICENSE. If not, write to the
- * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
- /**********************************
- INITIALIZATION METHODS
- *********************************/
-require ('../../../bootstrap.php');
-Pommo::requireOnce($pommo->_baseDir.'inc/helpers/mailings.php');
-$pommo->init();
-
-$logger = & $pommo->_logger;
-$dbo = & $pommo->_dbo;
-
-if(isset($_REQUEST['mailings'])) {
- if(is_array($_REQUEST['mailings']))
- $_REQUEST['mailings'] = $_REQUEST['mailings'][0];
- $mailing = current(PommoMailing::get(array('id' => $_REQUEST['mailings'])));
-}
-else
- $mailing = $pommo->_session['state']['mailing'];
-
-
-/**********************************
- SETUP TEMPLATE, PAGE
- *********************************/
-Pommo::requireOnce($pommo->_baseDir.'inc/classes/template.php');
-$template = new PommoTheme();
-
-$template->assign($mailing);
-$template->display('inc/mailing.tpl');
-Pommo::kill();
-?>
@@ -1,82 +0,0 @@
-<?php
-/**
- * Copyright (C) 2005, 2006, 2007, 2008 Brice Burgess <bhb@iceburg.net>
- *
- * This file is part of poMMo (http://www.pommo.org)
- *
- * poMMo is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published
- * by the Free Software Foundation; either version 2, or any later version.
- *
- * poMMo is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty
- * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
- * the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with program; see the file docs/LICENSE. If not, write to the
- * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-/**********************************
- INITIALIZATION METHODS
- *********************************/
-require ('../../../bootstrap.php');
-Pommo::requireOnce($pommo->_baseDir.'inc/helpers/templates.php');
-
-$pommo->init();
-$logger = & $pommo->_logger;
-$dbo = & $pommo->_dbo;
-
-/**********************************
- SETUP TEMPLATE, PAGE
- *********************************/
-Pommo::requireOnce($pommo->_baseDir.'inc/classes/template.php');
-$template = new PommoTheme();
-$template->prepareForForm();
-
-
-if (!SmartyValidate :: is_registered_form() || empty ($_POST)) {
- // ___ USER HAS NOT SENT FORM ___
-
- SmartyValidate :: connect($template, true);
-
- SmartyValidate :: register_validator('name', 'name', 'notEmpty', false, false, 'trim');
- SmartyValidate :: register_validator('description', 'description', 'dummyValid', false, false, 'trim');
-
- $vMsg = array ();
- $vMsg['name'] = Pommo::_T('Cannot be empty.');
- $template->assign('vMsg', $vMsg);
-
-} else {
- // ___ USER HAS SENT FORM ___
- SmartyValidate :: connect($template);
-
- if (SmartyValidate :: is_valid($_POST)) {
- // __ FORM IS VALID
-
- $t = PommoMailingTemplate::make(array(
- 'name' => $_POST['name'],
- 'description' => $_POST['description'],
- 'body' => $pommo->_session['state']['mailing']['body'],
- 'altbody' => $pommo->_session['state']['mailing']['altbody']
- ));
- $id = PommoMailingTemplate::add($t);
-
- if ($id) {
- $logger->addMsg(sprintf(Pommo::_T('Template %s saved.'),'<strong>'.$_POST['name'].'</strong>'));
- $template->assign('success',true);
- }
- else
- $logger->addMsg(Pommo::_T('Error with addition.'));
-
-
- } else {
- // __ FORM NOT VALID
- $logger->addMsg(Pommo::_T('Please review and correct errors with your submission.'));
- }
-}
-
-$template->display('admin/mailings/mailing/ajax.addtemplate.tpl');
-Pommo::kill();
-?>
Oops, something went wrong.

0 comments on commit 54b1eb9

Please sign in to comment.