11
MS-2001
Re: Xoops SQL Debug
  • 2006/6/13 17:52

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


That's uninteresting for me. I need the exact queries.

Edit: Finally I found out what the problem was: The name of the Popup has to be different from "popup".



12
MS-2001
Re: Xoops SQL Debug
  • 2006/6/13 17:00

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


Every time the same thing: Just found it out. There seems to be something killing the files every time they are created and so there is nothing to display

Edit:
May someone tell me what's wrong about the following?
<script language="javascript">debug_window openWithSelfMain("http://192.168.1.3/project/misc.php?action=showpopups&type=debug&file=dummy_1150221738.html""popup"680450);</script>


There is no popup and there is NO Popup blocker. No Problem in the backend. but a problem in the frontend. Even the exact path isn't working for a popup.



13
MS-2001
Xoops SQL Debug
  • 2006/6/13 16:42

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


I'm using XOOPS 2.0.7.3 and want to know how many SQL Querys my indexpage needs to run. Therefore i activated the SQL Debug mode but it seems to work in the backend only. Am I wrong or is there a possibility to use it on the frontend?



14
MS-2001
Re: Local Development with XOOPS
  • 2006/3/2 8:44

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


Oh, thank you



15
MS-2001
Re: Curious Thing: php script returns other than it should
  • 2005/11/3 15:30

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


No idea?



16
MS-2001
Curious Thing: php script returns other than it should
  • 2005/10/31 18:18

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


Hi there,

here I'm back with an other curious thing I just managed to find out. I wrote an extended private messaging system. There is a php file which checks if there are any new messages for a specific user.

if there are, a popup will be created. but as i just told you I managed to find out something i really don't like.


that's how an "empty" return should look like:
<html>
<
head><title></title>
<
script type="text/javascript" src="http://www.myurl.de/include/xoops.js"></script>
<
script type="text/javascript">
    </
script>
</
head>
<
body onload=setInterval('self.location.reload()',10000)>
</
body>
</
html>


But instead of getting the thing above I just get the following (in some realy rarely cases):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <
HTML><HEAD>
 <
META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
 <
BODY></BODY></HTML>


But why is that? I don't understand it. Here the first lines out of the mentioned php script:
<?php
include "../../mainfile.php";
global 
$xoopsDB$xoopsConfig$xoopsModule$HTTP_SERVER_VAR;
$online_handler =& xoops_gethandler('online');

if (
is_object($xoopsUser)) {
    
$uid $xoopsUser->getVar('uid');
    
$uname $xoopsUser->getVar('uname');
} else {
    
$uid 0;
    
$uname '';
}
if (
is_object($xoopsModule)) {
    
$online_handler->write($uid$unametime(), $xoopsModule->getVar('mid'), $HTTP_SERVER_VARS['REMOTE_ADDR']);
} else {
    
$online_handler->write($uid$unametime(), 0$HTTP_SERVER_VARS['REMOTE_ADDR']);
}
        
if (!
$xoopsUser) exit();
$uid $xoopsUser->getVar('uid');
$result $xoopsDB->query("SELECT msg_id, from_userid, msg_time FROM ".$xoopsDB->prefix("priv_msgs")." WHERE to_userid=".$uid." AND read_msg=0");
?>
<html>


As u can see I'm doing an update of the user-session here and get all new pns (if there are any) and start then with a "small-written" <html> and NO specified doctype.

So where does that come from? Result of all of that is that the users don't get the private messages stored in the database. but after all. somethimes it could happen that the script works and the user gets his pns.

I have to add that this problem allways occurs with the same users.

any idea?



17
MS-2001
Re: Editing mainfile.php
  • 2005/10/29 16:45

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


ok, thank you for you answer. but they are and will be allways on the same server (so the ip will never change).



18
MS-2001
Re: Editing mainfile.php
  • 2005/10/29 15:00

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


So, any idea? Hope to get an answer now



19
MS-2001
Editing mainfile.php
  • 2005/10/17 13:55

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


Hi there,
I'd like to have this question answered by a core developer if possible:

Two of outer site admins are working in the same office. In their breaks they want to visit the site to see what's going on there. Too bad that the domain is blocked by the system admins there.

Now I want to edit the mainfile.php in the following way:

If the domain you are coming from is www.test1.com (just for exemple) XOOPS_URL should behttp://www.test1.com. Otherwise it should ALLWAYS behttp://www.normal-url.com.

Is there any security reason why I shouldn't do that?
Hope you got me right.



20
MS-2001
Re: Notifications
  • 2005/9/29 16:58

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


Question 1:
I did too many changes (also within the kernel) for my own use. And before this becomes your next question: It's quite impossible that my chances cause the problem

Question 2:
Because I couldn't find anything helpful there. And what do you mean with "most of it"? There's still just one "real question" and that's the one I'm looking for an answer.

Question 3:
There are no PHP debug message (why should there be any?!?). The notification is written and send. But it sould (as i allready said) only be sent once (until the user comes back to the site). And that's the point that doesn't work. He gets a notification for each new item no mather for his configuration on that point.

I'm sorry if there were any dump questions but it's confusing me. When I installed the system it was a stable release so I stuck to the opinion that everything "should" work well.




TopTop
« 1 (2) 3 4 5 ... 20 »



Login

Who's Online

179 user(s) are online (75 user(s) are browsing Support Forums)


Members: 0


Guests: 179


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits