logo       


Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

sitemgr/inc class.Sites_UI.inc.php,1.6,1.7: msg#00050

Subject: sitemgr/inc class.Sites_UI.inc.php,1.6,1.7
Update of /cvsroot/egroupware/sitemgr/inc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31575

Modified Files:
        class.Sites_UI.inc.php 
Log Message:
add / remove (un)necessary slash after url / dir in edit website


Index: class.Sites_UI.inc.php
===================================================================
RCS file: /cvsroot/egroupware/sitemgr/inc/class.Sites_UI.inc.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** class.Sites_UI.inc.php      6 Jun 2003 02:14:55 -0000       1.6
--- class.Sites_UI.inc.php      3 Feb 2004 21:09:33 -0000       1.7
***************
*** 162,166 ****
                        if ($_POST['save'])
                        {
!                               if (!$_POST['site']['name'])
                                {
                                        
$GLOBALS['phpgw']->template->set_var('message',lang('Please enter a name for 
that site !'));
--- 162,175 ----
                        if ($_POST['save'])
                        {
!                               $site = $_POST['site'];
!                               if (substr($site['dir'],-1) == '/' || 
substr($site['dir'],-1) == '\\')
!                               {
!                                       $site['dir'] = 
substr($site['dir'],0,-1);
!                               }
!                               if (substr($site['url'],-1) != '/')
!                               {
!                                       $site['url'] .= '/';
!                               }
!                               if (!$site['name'])
                                {
                                        
$GLOBALS['phpgw']->template->set_var('message',lang('Please enter a name for 
that site !'));
***************
*** 168,178 ****
                                elseif ($site_id)
                                {
!                                       
$this->bo->update($site_id,$_POST['site']);
!                                       
$GLOBALS['phpgw']->template->set_var('message',lang('Site %1 has been 
updated',$_POST['site']['_name']));
                                }
                                else
                                {
!                                       $site_id = 
$this->bo->add($_POST['site']);
!                                       
$GLOBALS['phpgw']->template->set_var('message',lang('Site %1 has been 
added',$_POST['site']['_name']));
                                }
                        }
--- 177,187 ----
                                elseif ($site_id)
                                {
!                                       $this->bo->update($site_id,$site);
!                                       
$GLOBALS['phpgw']->template->set_var('message',lang('Site %1 has been 
updated',$site['_name']));
                                }
                                else
                                {
!                                       $site_id = $this->bo->add($site);
!                                       
$GLOBALS['phpgw']->template->set_var('message',lang('Site %1 has been 
added',$site['_name']));
                                }
                        }



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe