php - When I added google anayltics to my site, it now won't load images -


Here is the code for images

I am using Joomla and Zoomi - I have problems Are already defining items previously, and wondering what is there to do with it?

  & lt ;? Includes php ("settings.php"); Mysql_connect ($ loginURL, $ username, $ password); @ Mascil_sact_db ($ database) or die ("- 9"); $ CardUUID = $ _GET ['id']; $ Sql ​​= "Choose * Uaid = '{$ cardUUID}'; $ result = mysql_query (" $ sql ") by card; if (! $ Result) {echo 'Result query can not be run:' Mysql_error ($; sql; out; second;} $ line = mysql_fetch_assoc ($ result); header ("content-type: image / jpg"); if (base64_decode ($ line ['cardis']) == incorrect ) $ Line ['cardimage']; Else bezo 64_decond echo ($ line ['cardimage']);? & Gt;  

And here is the GA code I added

  & lt; script & gt; (function (I, S, O, G, R, A, A ) {I ['GoogleAnalyticsObject'] = R; I [R] = I [R] | function () {(I [R]. C = I [r] .q || []). Push (logic) }, I [r] .l = 1 * new date (); a = s.create element (o), m = s alt element alignment name (o) [0]; a.async = 1; a.src = g; M.parentNode.insertBefore (a, m)}) (window, document, 'script', '// www.google-analytics.com/analytics.js',' ga '); GA (' create ',' UA -243-1 ',' Auto '); Ga (' Send ',' Pageview ');   

The main problem occurs when you use base64decode.

You can edit the file_get_contents ($ row ['cardimage']);

This should change base64_decode ($ row ['cardimage']);

Code here

  & lt ?? Php // In this example I'm going to use = "$ data line data Data Card hard [ 'Cardimage']: Image / PNG; base 64, iVBORw0KGgoAAAANSUhEUgAAAR4AAAAvCAMAAAACRlVYAAAABGdBTUEAALGPC / xhBQAAAGBQTFRFVj18Vj21Vj3NVpHeVrbqnz18nz21nz3Nn5Hen872vz18vz3Nv + D / 1JF81JHN1PL / 5LZ85La15M7e5P // 9M619M7e9ODq9PL29PL / 9P /// + DN / D // Le /// G /// 2 //// FMkDhgAAA4BJREFUaIHtmOt62jAMhtMtbIOF4Q1vXT0g93 + Xja2DJceBpMDK00ffjwbXjiS / PshO05hMJpPJZDKZTCaTyfQA + vzSR7npFl2sP6wqNU + 7HnXcNE17ydBtNR3W7fRpTx08bZfHkfH0vf + AeGT / JvnMw3Pafjw8617IL45D4undx8PTwb4BSyy5gq0IvbaptqtXNoTnuEmUfcYD7eJ0TJaHjWmN / NVC / ract / 5pFy0K22A2EAAsxgfM8CIs3CDkuFBgUBKm0WV8DLZSs + nxBCsUQHy / o7kQGj23VKVX7x83rcKT51SA34TH4fZ0 + Ivx / N5H49JxFc + / HUEowuIi0RAtAs8BLIHLP5COfrLJ OXioF4RALR0ZB1us4 + mkkVgYxin9zxUWOS8cVhXHBR7uYmEEMy / D0M Pqi1JORapr8 / DAEzYRWnKeooQiVKLFKp7U7rDqRL8dUgITgdxmPF + U4yoebMNLkmrbbBKnD7T3iVu9T0HtCrPxJIuYgqgzHIeuVHjU3pPaIReMHmxMAI8 / vynb9b1Hv8VG1tJBigrHMT1O22qfqOPrvpeLcgIPld + GB1XDg8RhtEY9Qzy + dLwcT5B4YLk5pHQWT7sID9qQq6SYxSQ3xkOJHVcfJsXU5Cye6F47XoQH3pELROOp9un / 46EGToQYPce3D1 / 3qYNVPGHkeBEeWqGBe4V4zvVpGR61xb4Nj5d3Ls5dmAyP3 / d9zhu3xdNwXHTceEc8 + uahT1 + ER2TSoSr + 9 / Rjn2qqePyVeHKyDnfFwwTO4sElPY0HG1BSSMH + erkjHvJMY0d44Kz1aHh05oI2Ec8Q / L3w0NnP3xfPnMSOx4lpPJi5 + EgRX3 + G30VwGc8ViV0crKp4rkjs + koaZp17FuOhrWgY6Oql4jZ46M7b8LEQT + rX4CmykTwq8BlXjzWtnQuLC0 / S + SOiON9U8GjHs / CoGY + VLv7FG0PAy83ZPl3AI29ooREZedmVdIwHFauoHGjin7b6g0ZTOpalMZ6pey195AhyEFxhehkewSeMi7M / aCg82OyZqsim + No22poLx / Q7R4GnDCvDANehCFSZXoiHQuEmqtj24u7NnvLZp44nRefYM4224zVE / RV4CsdxkvEHrxLPKKy1GsDAgerAUmkxnjuLl0KEqu9o7xfU44iJpEnSGh0txMMLsuNtwGQymUwmk8lkemC9Aq / xoBVR0iWHAAAAAElFTkSuQmCC "; Header ("content-type: image / PNG"); If (base64_decode = $ line ['cardij']) == wrong) $ line ['cardimage']; Else file_get_contents echo ($ line ['cardimage']); ? & Gt;  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -