1
mlynch
Re: database administration tool - alternative for phpadmin?
  • 2005/5/26 15:58

  • mlynch

  • Just popping in

  • Posts: 3

  • Since: 2005/5/25


Well, if you know what you're doing with MySQL, you can make your own web based MySQL command line. I found the following article VERY helpful.

http://www.sitepoint.com/article/give-back-mysql-command-line



2
mlynch
Re: Hiding Submenus
  • 2005/5/25 20:53

  • mlynch

  • Just popping in

  • Posts: 3

  • Since: 2005/5/25


Well, I had an issue similar to this. I didn't mind if users saw the submenu, I just didn't want them to be able to use it. To get around this, I used the following code:
//mlynch hack to check if member of group X
$perid $xoopsUser->getVar('uid');
$grpid 4   //Set this to the group id you want to allow
$allow 0;
$result $xoopsDB->query("select uid from xoops_groups_users_link where groupid = '$grpid' and uid = '$perid'");
while ( list(
$uid) = $xoopsDB->fetchRow($result) ) {
        
$person $uid;
        if (
$perid != $person) {
                
$allow 0;
        } else {
        
$allow 1;
        list(
$uid) = $xoopsDB->fetchRow($result);
        }
}
if (
$allow != 1) {
        
redirect_header("index.php"0_NOPERM);
        exit();
}
//end mlynch hack


The above code goes after this bit in the files I want to protect:
if (empty($xoopsModuleConfig['anonpost']) && !is_object($xoopsUser)) {
        
redirect_header("index.php"0_NOPERM);
        exit();
}



I'm no pro by any means, so it may be messy, but it works for me...

*edit* Working example of this code at:

http://craig.spherens.com
username: testtest
password: password

After logging in, try to Submit News and you will get redirected for not having proper access. The site users that are in the custom group 'Journalists' are able to get to the page and submit news.



3
mlynch
Re: Webpage Graphics
  • 2005/5/25 20:43

  • mlynch

  • Just popping in

  • Posts: 3

  • Since: 2005/5/25


In the spirit of free/open source software, why not give GIMP a try?http://gimp-win.sourceforge.net/ - it's loaded with features and there are good tutorials at:

http://gimp.org/tutorials

I've used it to do probably all of my site art and have *no* previous experience.




TopTop



Login

Who's Online

162 user(s) are online (112 user(s) are browsing Support Forums)


Members: 0


Guests: 162


more...

Donat-O-Meter

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

Latest GitHub Commits