Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ultipleEducated/trunk@10 5fe25759-13e7-174a-90d1-c72467dea8c0
  • Loading branch information
hertsch committed Aug 2, 2011
1 parent 935863e commit 051ee7a
Show file tree
Hide file tree
Showing 18 changed files with 482 additions and 80 deletions.
28 changes: 24 additions & 4 deletions class.backend.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,34 @@
<?php

/**
* multipleEducated - create quizzes like "Bildungshappen" for WebsiteBaker
* multipleEducated
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
* @link http://phpmanufaktur.de/cms/topics/multipleeducated.php
* @copyright 2009 - 2010
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id$
*/
*
* FOR VERSION- AND RELEASE NOTES PLEASE LOOK AT INFO.TXT!
*/

// try to include LEPTON class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION')) include(WB_PATH.'/framework/class.secure.php');
} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].'/framework/class.secure.php')) {
include($_SERVER['DOCUMENT_ROOT'].'/framework/class.secure.php');
} else {
$subs = explode('/', dirname($_SERVER['SCRIPT_NAME'])); $dir = $_SERVER['DOCUMENT_ROOT'];
$inc = false;
foreach ($subs as $sub) {
if (empty($sub)) continue; $dir .= '/'.$sub;
if (file_exists($dir.'/framework/class.secure.php')) {
include($dir.'/framework/class.secure.php'); $inc = true; break;
}
}
if (!$inc) trigger_error(sprintf("[ <b>%s</b> ] Can't include LEPTON class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
// end include LEPTON class.secure.php

global $parser;
global $rhTools;
Expand Down
28 changes: 23 additions & 5 deletions class.droplets.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,34 @@
<?php

/**
* multipleEducated - create quizzes like "Bildungshappen" for WebsiteBaker
* multipleEducated
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
* @link http://phpmanufaktur.de/cms/topics/multipleeducated.php
* @copyright 2009 - 2010
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id$
*
* THIS CLASS REALIZE AN INTERFACE TO THE DROPLETS MODULE OF RUUD EISINGA (RUUD)
*/
* FOR VERSION- AND RELEASE NOTES PLEASE LOOK AT INFO.TXT!
*/

// try to include LEPTON class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION')) include(WB_PATH.'/framework/class.secure.php');
} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].'/framework/class.secure.php')) {
include($_SERVER['DOCUMENT_ROOT'].'/framework/class.secure.php');
} else {
$subs = explode('/', dirname($_SERVER['SCRIPT_NAME'])); $dir = $_SERVER['DOCUMENT_ROOT'];
$inc = false;
foreach ($subs as $sub) {
if (empty($sub)) continue; $dir .= '/'.$sub;
if (file_exists($dir.'/framework/class.secure.php')) {
include($dir.'/framework/class.secure.php'); $inc = true; break;
}
}
if (!$inc) trigger_error(sprintf("[ <b>%s</b> ] Can't include LEPTON class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
// end include LEPTON class.secure.php

class dbDroplets extends dbConnectLE {

Expand Down
29 changes: 22 additions & 7 deletions class.educated.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,34 @@
<?php

/**
* multipleEducated - create quizzes like "Bildungshappen" for WebsiteBaker
* multipleEducated
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
* @link http://phpmanufaktur.de/cms/topics/multipleeducated.php
* @copyright 2009 - 2010
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id$
*/
*
* FOR VERSION- AND RELEASE NOTES PLEASE LOOK AT INFO.TXT!
*/

// prevent this file from being accesses directly
if(defined('WB_PATH') == false) {
exit("Cannot access this file directly");
// try to include LEPTON class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION')) include(WB_PATH.'/framework/class.secure.php');
} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].'/framework/class.secure.php')) {
include($_SERVER['DOCUMENT_ROOT'].'/framework/class.secure.php');
} else {
$subs = explode('/', dirname($_SERVER['SCRIPT_NAME'])); $dir = $_SERVER['DOCUMENT_ROOT'];
$inc = false;
foreach ($subs as $sub) {
if (empty($sub)) continue; $dir .= '/'.$sub;
if (file_exists($dir.'/framework/class.secure.php')) {
include($dir.'/framework/class.secure.php'); $inc = true; break;
}
}
if (!$inc) trigger_error(sprintf("[ <b>%s</b> ] Can't include LEPTON class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
// end include LEPTON class.secure.php

class dbEducatedQuestions extends dbConnectLE {

Expand Down
29 changes: 22 additions & 7 deletions class.frontend.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,34 @@
<?php

/**
* multipleEducated - create quizzes like "Bildungshappen" for WebsiteBaker
* multipleEducated
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
* @link http://phpmanufaktur.de/cms/topics/multipleeducated.php
* @copyright 2009 - 2010
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id$
*/
*
* FOR VERSION- AND RELEASE NOTES PLEASE LOOK AT INFO.TXT!
*/

// prevent this file from being accesses directly
if(defined('WB_PATH') == false) {
exit("Cannot access this file directly");
// try to include LEPTON class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION')) include(WB_PATH.'/framework/class.secure.php');
} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].'/framework/class.secure.php')) {
include($_SERVER['DOCUMENT_ROOT'].'/framework/class.secure.php');
} else {
$subs = explode('/', dirname($_SERVER['SCRIPT_NAME'])); $dir = $_SERVER['DOCUMENT_ROOT'];
$inc = false;
foreach ($subs as $sub) {
if (empty($sub)) continue; $dir .= '/'.$sub;
if (file_exists($dir.'/framework/class.secure.php')) {
include($dir.'/framework/class.secure.php'); $inc = true; break;
}
}
if (!$inc) trigger_error(sprintf("[ <b>%s</b> ] Can't include LEPTON class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
// end include LEPTON class.secure.php

require_once(WB_PATH.'/modules/'.basename(dirname(__FILE__)).'/initialize.php');

Expand Down
33 changes: 33 additions & 0 deletions droplets/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

/**
* multipleEducated
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id$
*
* FOR VERSION- AND RELEASE NOTES PLEASE LOOK AT INFO.TXT!
*/

// try to include LEPTON class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION')) include(WB_PATH.'/framework/class.secure.php');
} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].'/framework/class.secure.php')) {
include($_SERVER['DOCUMENT_ROOT'].'/framework/class.secure.php');
} else {
$subs = explode('/', dirname($_SERVER['SCRIPT_NAME'])); $dir = $_SERVER['DOCUMENT_ROOT'];
$inc = false;
foreach ($subs as $sub) {
if (empty($sub)) continue; $dir .= '/'.$sub;
if (file_exists($dir.'/framework/class.secure.php')) {
include($dir.'/framework/class.secure.php'); $inc = true; break;
}
}
if (!$inc) trigger_error(sprintf("[ <b>%s</b> ] Can't include LEPTON class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
// end include LEPTON class.secure.php

?>
33 changes: 33 additions & 0 deletions htt/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

/**
* multipleEducated
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id$
*
* FOR VERSION- AND RELEASE NOTES PLEASE LOOK AT INFO.TXT!
*/

// try to include LEPTON class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION')) include(WB_PATH.'/framework/class.secure.php');
} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].'/framework/class.secure.php')) {
include($_SERVER['DOCUMENT_ROOT'].'/framework/class.secure.php');
} else {
$subs = explode('/', dirname($_SERVER['SCRIPT_NAME'])); $dir = $_SERVER['DOCUMENT_ROOT'];
$inc = false;
foreach ($subs as $sub) {
if (empty($sub)) continue; $dir .= '/'.$sub;
if (file_exists($dir.'/framework/class.secure.php')) {
include($dir.'/framework/class.secure.php'); $inc = true; break;
}
}
if (!$inc) trigger_error(sprintf("[ <b>%s</b> ] Can't include LEPTON class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
// end include LEPTON class.secure.php

?>
33 changes: 33 additions & 0 deletions images/calendar/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

/**
* multipleEducated
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id$
*
* FOR VERSION- AND RELEASE NOTES PLEASE LOOK AT INFO.TXT!
*/

// try to include LEPTON class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION')) include(WB_PATH.'/framework/class.secure.php');
} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].'/framework/class.secure.php')) {
include($_SERVER['DOCUMENT_ROOT'].'/framework/class.secure.php');
} else {
$subs = explode('/', dirname($_SERVER['SCRIPT_NAME'])); $dir = $_SERVER['DOCUMENT_ROOT'];
$inc = false;
foreach ($subs as $sub) {
if (empty($sub)) continue; $dir .= '/'.$sub;
if (file_exists($dir.'/framework/class.secure.php')) {
include($dir.'/framework/class.secure.php'); $inc = true; break;
}
}
if (!$inc) trigger_error(sprintf("[ <b>%s</b> ] Can't include LEPTON class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
// end include LEPTON class.secure.php

?>
33 changes: 33 additions & 0 deletions images/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

/**
* multipleEducated
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id$
*
* FOR VERSION- AND RELEASE NOTES PLEASE LOOK AT INFO.TXT!
*/

// try to include LEPTON class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION')) include(WB_PATH.'/framework/class.secure.php');
} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].'/framework/class.secure.php')) {
include($_SERVER['DOCUMENT_ROOT'].'/framework/class.secure.php');
} else {
$subs = explode('/', dirname($_SERVER['SCRIPT_NAME'])); $dir = $_SERVER['DOCUMENT_ROOT'];
$inc = false;
foreach ($subs as $sub) {
if (empty($sub)) continue; $dir .= '/'.$sub;
if (file_exists($dir.'/framework/class.secure.php')) {
include($dir.'/framework/class.secure.php'); $inc = true; break;
}
}
if (!$inc) trigger_error(sprintf("[ <b>%s</b> ] Can't include LEPTON class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
// end include LEPTON class.secure.php

?>
28 changes: 23 additions & 5 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,33 @@
<?php

/**
* multipleEducated - create quizzes like "Bildungshappen" for WebsiteBaker
* multipleEducated
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
* @link http://phpmanufaktur.de/cms/topics/multipleeducated.php
* @copyright 2009 - 2010
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id$
*/
*
* FOR VERSION- AND RELEASE NOTES PLEASE LOOK AT INFO.TXT!
*/

header('Location: ../../index.php');
// try to include LEPTON class.secure.php to protect this file and the whole CMS!
if (defined('WB_PATH')) {
if (defined('LEPTON_VERSION')) include(WB_PATH.'/framework/class.secure.php');
} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].'/framework/class.secure.php')) {
include($_SERVER['DOCUMENT_ROOT'].'/framework/class.secure.php');
} else {
$subs = explode('/', dirname($_SERVER['SCRIPT_NAME'])); $dir = $_SERVER['DOCUMENT_ROOT'];
$inc = false;
foreach ($subs as $sub) {
if (empty($sub)) continue; $dir .= '/'.$sub;
if (file_exists($dir.'/framework/class.secure.php')) {
include($dir.'/framework/class.secure.php'); $inc = true; break;
}
}
if (!$inc) trigger_error(sprintf("[ <b>%s</b> ] Can't include LEPTON class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
}
// end include LEPTON class.secure.php

?>
38 changes: 38 additions & 0 deletions info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

/**
* multipleEducated
*
* @author Ralf Hertsch (ralf.hertsch@phpmanufaktur.de)
* @link http://phpmanufaktur.de
* @copyright 2011
* @license GNU GPL (http://www.gnu.org/licenses/gpl.html)
* @version $Id$
*/

Release 0.15
2011-08-02

Grant compatibillity for LEPTON CMS

Release 0.14
2010-10-19
Changed deprecated functions in class.backend.php
Added support for english language (EN.php)
Changed database interface from dbConnect to dbConnect_LE
Removed included Dwoo and use it as external addon

Release 0.13
2010-09-17
Small Bugfixes

Release 0.12
2010-07-18
Release Candidate

0.11
2010-04-08
Second BETA Release

0.10
2009-06-24
First BETA Release

0 comments on commit 051ee7a

Please sign in to comment.