Subversion Repositories SmartDukaan

Rev

Rev 19366 | Rev 19385 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19366 Rev 19378
Line 28... Line 28...
28
			var myemail =  '<?php echo $logged_user['email'];?>';
28
			var myemail =  '<?php echo $logged_user['email'];?>';
29
			var apihost = '<?php echo $apihost;?>';
29
			var apihost = '<?php echo $apihost;?>';
30
			var ip = '<?php echo $_SERVER['HTTP_CF_CONNECTING_IP'];?>';
30
			var ip = '<?php echo $_SERVER['HTTP_CF_CONNECTING_IP'];?>';
31
		</script>
31
		</script>
32
		
32
		
33
		<?php if(in_array($logged_user['id'],Configure::read('recorduser'))):?>
-
 
34
		
33
		
35
		<script type="text/javascript">
34
		<script type="text/javascript">
36
		    window.smartlook||(function(d) {
35
		    window.smartlook||(function(d) {
37
		    var o=smartlook=function(){ o.api.push(arguments)},s=d.getElementsByTagName('script')[0];
36
		    var o=smartlook=function(){ o.api.push(arguments)},s=d.getElementsByTagName('script')[0];
38
		    var c=d.createElement('script');o.api=new Array();c.async=true;c.type='text/javascript';
37
		    var c=d.createElement('script');o.api=new Array();c.async=true;c.type='text/javascript';
39
		    c.charset='utf-8';c.src='//rec.getsmartlook.com/bundle.js';s.parentNode.insertBefore(c,s);
38
		    c.charset='utf-8';c.src='//rec.getsmartlook.com/bundle.js';s.parentNode.insertBefore(c,s);
40
		    })(document);
39
		    })(document);
41
		    smartlook('init', '869b6e4de6581a1cb4c248c1adb3f171dc1f3747');
40
		    smartlook('init', '<?php echo Configure::read("smartlookkey");?>');
42
		</script>
41
		</script>
43
		
42
		
44
		<script>
43
		<script>
45
			smartlook('tag', 'email', myemail);
44
			smartlook('tag', 'email', myemail);
46
			smartlook('tag', 'name', me);
45
			smartlook('tag', 'name', me);
47
		</script>
46
		</script>
48
		<?php endif;?>
-
 
49
		
47
		
50
		<script type="text/javascript">
48
		<script type="text/javascript">
51
			function getC(name)
49
			function getC(name)
52
			  {
50
			  {
53
			    var re = new RegExp(name + "=([^;]+)");
51
			    var re = new RegExp(name + "=([^;]+)");