Created
November 13, 2011 20:00
-
-
Save beppu/1362595 to your computer and use it in GitHub Desktop.
js interspersed with php warnings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <br /> | |
| <b>Notice</b>: Undefined index: session_userid in <b>/Users/beppu/src/github.com/asg/top.php</b> on line <b>29</b><br /> | |
| <br /> | |
| <b>Notice</b>: Undefined index: id in <b>/Users/beppu/src/github.com/asg/top.php</b> on line <b>38</b><br /> | |
| <br /> | |
| <b>Notice</b>: Undefined index: current_document in <b>/Users/beppu/src/github.com/asg/top.php</b> on line <b>39</b><br /> | |
| <br /> | |
| <b>Notice</b>: Undefined index: javascript_doc_id in <b>/Users/beppu/src/github.com/asg/top.php</b> on line <b>65</b><br /> | |
| <br /> | |
| <b>Notice</b>: Undefined index: session_accessLevel in <b>/Users/beppu/src/github.com/asg/top.php</b> on line <b>70</b><br /> | |
| <br /> | |
| <b>Notice</b>: Undefined variable: aspects in <b>/Users/beppu/src/github.com/asg/classes/core/SiteModel.php</b> on line <b>333</b><br /> | |
| <br /> | |
| <b>Notice</b>: Undefined index: session_loggedIn in <b>/Users/beppu/src/github.com/asg/top.php</b> on line <b>72</b><br /> | |
| <br /> | |
| <b>Notice</b>: Undefined variable: returnMe in <b>/Users/beppu/src/github.com/asg/classes/core/SiteModel.php</b> on line <b>107</b><br /> | |
| <br /> | |
| <b>Notice</b>: Undefined variable: returnMe in <b>/Users/beppu/src/github.com/asg/classes/core/SiteModel.php</b> on line <b>134</b><br /> | |
| var asgConfig = { | |
| initialized: false, | |
| updateArb: function(xprompt, xdefault, table, column, row_id){ | |
| var xvalue = window.prompt(xprompt,xdefault); | |
| if (xvalue != '' && xvalue != null) { | |
| $.post("database/update.php", { table: table, column: column, row_id: row_id, value: xvalue }, function (){ }); | |
| } | |
| }, | |
| submitLink: function(url, title){ | |
| $.post('links/submit_link.php', { url: url, title: title }); | |
| }, | |
| simcom: function(msg){ | |
| cmsg = $('#chatmsg'); | |
| msg_temp = cmsg.val(); | |
| cmsg.val(msg); | |
| var e = jQuery.Event("keyup"); | |
| e.keyCode = 13; | |
| cmsg.trigger(e); | |
| cmsg.val(msg_temp); | |
| }, | |
| removeAspectByCmd: function(cmd){ | |
| var aspects = asgConfig.getAspects(); | |
| if(aspects.hasOwnProperty(cmd)){ | |
| asgConfig.removeAspect(aspects[cmd]); | |
| } | |
| }, | |
| renderAspectByCmd: function(cmd){ | |
| var aspects = asgConfig.getAspects(); | |
| if(aspects.hasOwnProperty(cmd)){ | |
| div_name = aspects[cmd].div; | |
| div = $('#'+div_name); | |
| if(div.is(':visible')){ asgConfig.removeAspectByCmd(cmd); } | |
| asgConfig.renderAspect(aspects[cmd]); | |
| } | |
| }, | |
| executeCommand: function(msg){ | |
| <br /> | |
| <b>Warning</b>: Invalid argument supplied for foreach() in <b>/Users/beppu/src/github.com/asg/js/js_init.php</b> on line <b>51</b><br /> | |
| }, | |
| getUserId: function () { | |
| return ; | |
| }, | |
| getAspects: function () { | |
| var returnJSON = | |
| {<br /> | |
| <b>Warning</b>: Invalid argument supplied for foreach() in <b>/Users/beppu/src/github.com/asg/js/js_init.php</b> on line <b>72</b><br /> | |
| <br /> | |
| <b>Notice</b>: Undefined variable: ret in <b>/Users/beppu/src/github.com/asg/js/js_init.php</b> on line <b>85</b><br /> | |
| }; return returnJSON; | |
| }, | |
| renderAspect: function (aspect){ | |
| var allasps = $('#all_aspects'); | |
| var div = aspect.div; | |
| var fun = aspect.fun; | |
| var css = aspect.css; | |
| var pref = aspect.pref; | |
| var exists = $('#'+div).length; | |
| if(asgConfig.initialized){ | |
| asgConfig.onPreference(pref); | |
| } | |
| if(exists){ $('#'+div).remove(); } | |
| allasps.append('<div id=\"'+div+'\" class=\"'+css+'\"></div>'); | |
| var this_div = $('#'+div); | |
| this_div.append('<div id=\"min_'+div+'\" class=\"rollbar\"></div>'); | |
| var min_div = $('#min_'+div); | |
| this_div.append('<div id=\"'+div+'_full\"></div>'); | |
| var full_div = $('#'+div+'_full'); | |
| full_div.load("content/output.php?oid="+fun+"&always=true", function (){ | |
| d = this.parentNode.id; | |
| if(asgConfig.initialized){ | |
| moi = $('#'+d); | |
| if(moi.css('position')!='fixed'){ | |
| $.scrollTo(moi, 800 ); | |
| } | |
| } | |
| }); | |
| min_div.append('<div id=\"x_'+div+'\" class=\"x\">✖</div>'); | |
| x_div = $('#x_'+div); | |
| x_div.click(function (event) { | |
| var p = this.parentNode.parentNode.id; | |
| $('#'+p).remove(); | |
| asgConfig.offPreference('show_'+p);//this is a kludge | |
| event.stopPropagation(); | |
| }); | |
| min_div.click(function(){ | |
| var p = this.parentNode.id; | |
| $('#'+p+'_full').toggle(); | |
| }); | |
| }, | |
| removeAspect: function (aspect){ | |
| div = aspect.div; | |
| pref = aspect.pref; | |
| $('#'+div).remove(); | |
| asgConfig.offPreference(pref); | |
| }, | |
| offPreference: function(pref){ | |
| $.post("aspects/off_preference.php", { pref: pref } ); | |
| }, | |
| onPreference: function(pref){ | |
| $.post("aspects/on_preference.php", { pref: pref } ); | |
| }, | |
| loadCssRules: function(){ | |
| <br /> | |
| <b>Notice</b>: Undefined variable: css_rules in <b>/Users/beppu/src/github.com/asg/js/js_init.php</b> on line <b>159</b><br /> | |
| }, | |
| loadAspectSet: function(aspect_set_id){ | |
| asgConfig.initialized = false; //so we don't scroll to each aspect we load | |
| asgConfig.zeroAspects(); | |
| $.get('aspects/load_aspect_set.php', { aspect_set_id: aspect_set_id }); | |
| <br /> | |
| <b>Warning</b>: Invalid argument supplied for foreach() in <b>/Users/beppu/src/github.com/asg/js/js_init.php</b> on line <b>180</b><br /> | |
| }, | |
| zeroAspects: function() { | |
| $('#all_aspects').remove(); | |
| $('body').append('<div id="all_aspects"></div>'); | |
| } | |
| }; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment