Permalink
Browse files

Removed smarty from form_embed.php

  • Loading branch information...
1 parent b753a8f commit 3bac3ee9de9922ae039d720cca27ef0476ebd359 Adrian Ancona Novelo committed Nov 9, 2011
View
@@ -11,12 +11,12 @@ confirm.php
db.clear.php
db.sample.php
db.subscriberClear.php
-embed.form.php
-embed.miniform.php
+embed.form.php DONE
+embed.miniform.php DONE
favicon.ico
file.clearWork.php
folderslist
-form_embed.php
+form_embed.php DONE
form_generate.php
groups_edit.php
import_csv2.php
@@ -340,7 +340,7 @@ templates.tpl
./themes/default/admin/setup:
admin_setup.php
-form_embed.tpl
+form_embed.php DONE
setup_configure.php DONE
setup_fields.php DONE
setup_form.php DONE
@@ -398,7 +398,7 @@ user.header.tpl
example.conf
./themes/default/subscribe:
-form.mini.tpl
+form.mini.php DONE
form.subscribe.php DONE
form.update.tpl
subscribe.php DONE
View
@@ -1,45 +1,44 @@
-<?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
- *********************************/
-define('_poMMo_embed', TRUE);
-require(dirname(__FILE__).'/bootstrap.php');
-Pommo::init(array('authLevel' => 0, 'noSession' => TRUE));
-$logger = & Pommo::$_logger;
-$dbo = & Pommo::$_dbo;
-
-/**********************************
- SETUP TEMPLATE, PAGE
- *********************************/
-require_once(Pommo::$_baseDir.'classes/Pommo_Template.php');
-$smarty = new Pommo_Template();
-
-
-// subscription forms will be activated from this template
-// Function
-$smarty->prepareForSubscribeForm();
-
-// assign referer since this is an embedded form
-$smarty->assign('referer',htmlspecialchars($_SERVER['PHP_SELF']));
-
-$smarty->display('subscribe/form.subscribe.tpl');
-?>
+<?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
+ *********************************/
+define('_poMMo_embed', TRUE);
+require dirname(__FILE__).'/bootstrap.php';
+Pommo::init(array('authLevel' => 0, 'noSession' => TRUE));
+$logger = Pommo::$_logger;
+$dbo = Pommo::$_dbo;
+
+/**********************************
+ SETUP TEMPLATE, PAGE
+ *********************************/
+require_once Pommo::$_baseDir.'classes/Pommo_Template.php';
+$view = new Pommo_Template();
+
+
+// subscription forms will be activated from this template
+// Function
+$view->prepareForSubscribeForm();
+
+// assign referer since this is an embedded form
+$view->assign('referer',htmlspecialchars($_SERVER['PHP_SELF']));
+
+$view->display('subscribe/form.subscribe');
View
@@ -1,44 +1,48 @@
-<?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
- *********************************/
-
-define('_poMMo_embed', TRUE);
-require(dirname(__FILE__).'/bootstrap.php');
-Pommo::init(array('authLevel' => 0, 'noSession' => TRUE));
-$logger = & Pommo::$_logger;
-$dbo = & Pommo::$_dbo;
-
-/**********************************
- SETUP TEMPLATE, PAGE
- *********************************/
-require_once(Pommo::$_baseDir.'classes/Pommo_Template.php');
-$smarty = new Pommo_Template();
-
-// subscription forms will be activated from this template
-$smarty->prepareForSubscribeForm();
-
-// assign referer since this is an embedded form
-$smarty->assign('referer',htmlspecialchars($_SERVER['PHP_SELF']));
-
-$smarty->display('subscribe/form.mini.tpl');
-?>
+<?php
+/**
+ * Original Code Copyright (C) 2005, 2006, 2007, 2008 Brice Burgess <bhb@iceburg.net>
+ * released originally under GPLV2
+ *
+ * This file is part of poMMo.
+ *
+ * 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 3 of the License, or
+ * (at your option) 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 Pommo. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * This fork is from https://github.com/soonick/poMMo
+ * Please see docs/contribs for Contributors
+ *
+ */
+
+/**********************************
+ INITIALIZATION METHODS
+ *********************************/
+
+define ('_poMMo_embed', TRUE);
+require dirname(__FILE__).'/bootstrap.php';
+Pommo::init(array('authLevel' => 0, 'noSession' => TRUE));
+$logger = Pommo::$_logger;
+$dbo = Pommo::$_dbo;
+
+/**********************************
+ SETUP TEMPLATE, PAGE
+ *********************************/
+require_once Pommo::$_baseDir.'classes/Pommo_Template.php';
+$view = new Pommo_Template();
+
+// subscription forms will be activated from this template
+$view->prepareForSubscribeForm();
+
+// assign referer since this is an embedded form
+$view->assign('referer', htmlspecialchars($_SERVER['PHP_SELF']));
+
+$view->display('subscribe/form.mini');
View
@@ -1,39 +1,44 @@
-<?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::init();
-$logger = & Pommo::$_logger;
-$dbo = & Pommo::$_dbo;
-
-/**********************************
- SETUP TEMPLATE, PAGE
- *********************************/
-require_once(Pommo::$_baseDir.'classes/Pommo_Template.php');
-$smarty = new Pommo_Template();
-
-// subscription forms will be activated from this template
-$smarty->prepareForSubscribeForm();
-
-$smarty->display('admin/setup/form_embed.tpl');
-Pommo::kill();
+<?php
+/**
+ * Original Code Copyright (C) 2005, 2006, 2007, 2008 Brice Burgess <bhb@iceburg.net>
+ * released originally under GPLV2
+ *
+ * This file is part of poMMo.
+ *
+ * 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 3 of the License, or
+ * (at your option) 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 Pommo. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * This fork is from https://github.com/soonick/poMMo
+ * Please see docs/contribs for Contributors
+ *
+ */
+
+/**********************************
+ INITIALIZATION METHODS
+ *********************************/
+require 'bootstrap.php';
+Pommo::init();
+$logger = Pommo::$_logger;
+$dbo = Pommo::$_dbo;
+
+/**********************************
+ SETUP TEMPLATE, PAGE
+ *********************************/
+require_once Pommo::$_baseDir.'classes/Pommo_Template.php';
+$view = new Pommo_Template();
+
+// subscription forms will be activated from this template
+$view->prepareForSubscribeForm();
+
+$view->display('admin/setup/form_embed');
+Pommo::kill();
Oops, something went wrong.

0 comments on commit 3bac3ee

Please sign in to comment.