On 30/03/2011 8:59 AM, Pavel Sanda wrote:
Julien Rioux wrote:
On 30/03/2011 8:31 AM, Pavel Sanda wrote:
last, some python capable being around? we need to insert into this code
if (isset($email)&& $email != "")
$output=$output. "<dt><b>[[mailto:${email} | ${name}]]</b>";
something like:
if ( email starts with http ) output="<a href="+name+"/> ....
else
script is on www/farm/cookbook/LyX/credits.inc
and we want correct output inhttp://www.lyx.org/Credits
if email.startswith("http"):
output="<a href="+name+"/>"
else
...
heh, sorry i'm too tired today :)
its php, not python.
pavel
if (strncasecmp($email,"http",4) == 0) {
$output = "<a href=${name}/>"
--
Julien