Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
s/require/require_once
git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@629 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
Dave Goodwin committed Jan 17, 2013
1 parent ac52e4c commit 725e000
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions play.php
Expand Up @@ -16,8 +16,8 @@

_load_language_file("/play.inc");

require $xerte_toolkits_site->php_library_path . "display_library.php";
require $xerte_toolkits_site->php_library_path . "template_library.php";
require_once $xerte_toolkits_site->php_library_path . "display_library.php";
require_once $xerte_toolkits_site->php_library_path . "template_library.php";



Expand Down Expand Up @@ -185,7 +185,7 @@ function check_security_type($security_setting)
exit(0);
}

require $xerte_toolkits_site->php_library_path . "screen_size_library.php";
require_once $xerte_toolkits_site->php_library_path . "screen_size_library.php";

/*
* Start to check the access_to_whom settings from templatedetails for this template
Expand All @@ -197,7 +197,7 @@ function check_security_type($security_setting)

if ($row_play['access_to_whom'] == "Private") {

require $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php";
require_once $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php";

dont_show_template();

Expand All @@ -209,7 +209,7 @@ function check_security_type($security_setting)

db_query("UPDATE {$xerte_toolkits_site->database_table_prefix}templatedetails SET number_of_uses=number_of_uses+1 WHERE template_id=?", array($safe_template_id));

require $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php";
require_once $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php";

show_template($row_play);

Expand Down Expand Up @@ -261,7 +261,7 @@ function check_security_type($security_setting)
if ($success && empty($errors)) {
db_query("UPDATE {$xerte_toolkits_site->database_table_prefix}templatedetails SET number_of_uses=number_of_uses+1 WHERE template_id=?", array($safe_template_id));

require $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php";
require_once $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php";

show_template($row_play);
//sucessfull authentication
Expand Down Expand Up @@ -322,18 +322,18 @@ function check_security_type($security_setting)

db_query("UPDATE {$xerte_toolkits_site->database_table_prefix}templatedetails SET number_of_uses=number_of_uses+1 WHERE template_id=?", array($safe_template_id));

require $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php";
require_once $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php";

show_template($row_play);

} else {

require $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php";
require_once $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php";

dont_show_template('Doesnt Match Referer:' . $_SERVER['HTTP_REFERER']);
}
} else {
require $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php";
require_once $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php";
dont_show_template('No HTTP Referer');
}
} else if (sizeof($query_for_security_content_response) > 0) {
Expand All @@ -354,7 +354,7 @@ function check_security_type($security_setting)

if (check_security_type($row_security['security_data'])) {

require $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php";
require_once $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php";

show_template($row_play);

Expand All @@ -371,13 +371,13 @@ function check_security_type($security_setting)

if ($flag == false) {

require $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php";
require_once $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php";

dont_show_template();
}
} else {

require $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php";
require_once $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php";

dont_show_template();
}
}

0 comments on commit 725e000

Please sign in to comment.