mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 21:32:09 +02:00
Fixes #4737 Removal of type="text/javascript" and type="text/css"
This commit is contained in:
@@ -622,7 +622,7 @@ e107::css('inline',"
|
||||
|
||||
/*
|
||||
echo "
|
||||
<script type=\"text/javascript\">
|
||||
<script>
|
||||
function addtext1(sc){
|
||||
document.getElementById('wmform').guestrules.value += sc;
|
||||
}
|
||||
|
@@ -1150,7 +1150,7 @@ class forum_post_handler
|
||||
{
|
||||
if ($fp->flood('forum_thread', 'thread_datestamp') == false && !ADMIN)
|
||||
{
|
||||
echo "<script type='text/javascript'>document.location.href='".e_BASE."index.php'</script>\n";
|
||||
echo "<script>document.location.href='".e_BASE."index.php'</script>\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
|
@@ -457,7 +457,7 @@ function init()
|
||||
echo $forum_view_start . $forum_view_forum . $forum_view_end;
|
||||
}
|
||||
|
||||
echo "<script type=\"text/javascript\">
|
||||
echo "<script>
|
||||
function confirm_(thread_id)
|
||||
{
|
||||
return confirm(" . $tp->toJSON(LAN_JSCONFIRM) . ");
|
||||
|
@@ -393,7 +393,7 @@ else
|
||||
|
||||
// end -------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
echo "<script type=\"text/javascript\">
|
||||
echo "<script>
|
||||
function confirm_(mode, forum_id, thread_id, thread) {
|
||||
if (mode == 'Thread') {
|
||||
return confirm(" . $tp->toJSON(LAN_FORUM_2009) . ");
|
||||
|
@@ -1082,7 +1082,7 @@ class plugin_forum_view_shortcodes extends e_shortcode
|
||||
<span id='forum-track-trigger-container'>
|
||||
<a class='btn btn-default btn-sm btn-small e-ajax' data-target='forum-track-trigger' href='{$url}' id='forum-track-trigger'>{$img}</a>
|
||||
</span>
|
||||
<script type='text/javascript'>
|
||||
<script>
|
||||
e107.runOnLoad(function(){
|
||||
$('forum-track-trigger').observe('click', function(e) {
|
||||
e.stop();
|
||||
|
@@ -173,7 +173,7 @@ $GALLERY_TEMPLATE['prettyphoto']['social_item'] = '
|
||||
<div class="pp_social">
|
||||
<div class="twitter">
|
||||
<a href="http://twitter.com/share" class="twitter-share-button" data-count="none">' . LAN_SHARE . '</a>
|
||||
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
|
||||
<script src="http://platform.twitter.com/widgets.js"></script>
|
||||
</div>
|
||||
<div class="facebook">
|
||||
<iframe src="http://www.facebook.com/plugins/like.php?locale=en_US&href=\'+location.href+\'&layout=button_count&show_faces=true&width=500&action=like&font&colorscheme=light&height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe>
|
||||
|
@@ -607,7 +607,7 @@ class import_main_ui extends e_admin_ui
|
||||
// $temp = '';
|
||||
// if(varset($import_source)) { $temp .= "disp('{$import_source}');"; }
|
||||
// if (varset($current_db_type)) $temp .= " flagbits('{$current_db_type}');";
|
||||
// if (varset($temp)) $text .= "<script type=\"text/javascript\"> {$temp}</script>";
|
||||
// if (varset($temp)) $text .= "<script> {$temp}</script>";
|
||||
|
||||
$this->addTitle($importType);
|
||||
echo $mes->render().$text;
|
||||
@@ -1358,7 +1358,7 @@ function headerjs()
|
||||
}
|
||||
|
||||
$text = "
|
||||
<script type='text/javascript'>{$vals}{$texts}{$blocks}{$comments}
|
||||
<script>{$vals}{$texts}{$blocks}{$comments}
|
||||
function disp(type)
|
||||
{
|
||||
if(type == 'csv')
|
||||
|
@@ -528,7 +528,7 @@ e107::getLanguage()->bcDefs($bcDefs);
|
||||
if($parm == "popup"){
|
||||
$srch = array("<br />","'");
|
||||
$rep = array("\\n","\'");
|
||||
return "<script type='text/javascript'>
|
||||
return "<script>
|
||||
alert(".$tp->toJSON(LOGINMESSAGE).");
|
||||
</script>";
|
||||
}
|
||||
|
@@ -59,7 +59,7 @@ if(!function_exists('pm_show_popup'))
|
||||
$popuptext = str_replace("\n", '', $popuptext);
|
||||
$popuptext = str_replace("\t", '', $popuptext);
|
||||
$text = "
|
||||
<script type='text/javascript'>
|
||||
<script>
|
||||
winl=(screen.width-200)/2;
|
||||
wint = (screen.height-100)/2;
|
||||
winProp = 'width=200,height=100,left='+winl+',top='+wint+',scrollbars=no';
|
||||
|
@@ -305,7 +305,7 @@ class poll
|
||||
$poll_ip = varset($poll_ip) . varset($userid);
|
||||
$sql->update("polls", "poll_votes = '$votep'".($pollArray['poll_storage_method'] != POLL_MODE_COOKIE ? ", poll_ip='".$poll_ip."^'" : '')." WHERE poll_id=".varset($poll_id));
|
||||
/*echo "
|
||||
<script type='text/javascript'>
|
||||
<script>
|
||||
<!--
|
||||
setcook({$poll_id});
|
||||
//-->
|
||||
|
@@ -813,7 +813,7 @@ class social_ui extends e_admin_ui
|
||||
private function generateAdminFormJs()
|
||||
{
|
||||
return <<<EOD
|
||||
<script type='text/javascript'>
|
||||
<script>
|
||||
var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
|
||||
let socialLoginSwitches = {
|
||||
|
@@ -125,7 +125,7 @@ require_once(e_ADMIN."footer.php");
|
||||
/*
|
||||
function headerjs()
|
||||
{
|
||||
return "<script type='text/javascript' src='".e_FILE_ABS."jslib/core/admin.js'></script>";
|
||||
return "<script src='".e_FILE_ABS."jslib/core/admin.js'></script>";
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user