summaryrefslogtreecommitdiff
path: root/src/mods/html
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2010-11-21 16:20:55 +0000
committerPaul Buetow <paul@buetow.org>2010-11-21 16:20:55 +0000
commit6fde6b0fe90abde84011202edd40fe46eb06af44 (patch)
treeef760338c50b4df3ae9cca96347bca962fdbec7e /src/mods/html
parent55b08bd93257d32df76efc4e8e3f49311c39ee82 (diff)
Diffstat (limited to 'src/mods/html')
-rw-r--r--src/mods/html/Makefile25
-rw-r--r--src/mods/html/yc_admin.cpp11
-rw-r--r--src/mods/html/yc_colors.cpp3
-rw-r--r--src/mods/html/yc_help.cpp7
-rw-r--r--src/mods/html/yc_loggedin.cpp3
-rw-r--r--src/mods/html/yc_options.cpp3
-rw-r--r--src/mods/html/yc_register.cpp3
7 files changed, 12 insertions, 43 deletions
diff --git a/src/mods/html/Makefile b/src/mods/html/Makefile
deleted file mode 100644
index c17d7f6..0000000
--- a/src/mods/html/Makefile
+++ /dev/null
@@ -1,25 +0,0 @@
-SRCS=$(shell find ./ -name '*.cpp')
-MODS=$(addprefix ../../../mods/html/, $(SRCS:.cpp=.so))
-CXX=g++
-CXXFLAGS=-fno-inline -fno-default-inline -g -O2 ${EFLAGS}
-all: mods
-${MODS}:
- @if ! test -d `dirname $@`; then mkdir -p `dirname $@`; fi
- @${CXX} ${CXXGLAGS} -fPIC -shared -s -o $@ ` \
- echo $(notdir $@) | sed s/.so/.cpp/`
- @echo "mods:html:`basename $@ | sed s/\.so// | sed s/yc_//` (` \
- du -hs $@ | awk '{ print $$1 }'`) "
-infotext:
- @echo "===> Compiling html modules"
-mods: infotext ${MODS}
- @echo "===> Num of html modules: `ls \
- ../../../mods/html/*.so | wc -l | sed 's/ //g;'`"
-clean:
- @echo "===> Cleaning html modules"
- @if test -d ../../../mods/html; then rm -Rf ../../../mods/html; fi
-../../../mods/html/./yc_admin.so: yc_admin.cpp
-../../../mods/html/./yc_colors.so: yc_colors.cpp
-../../../mods/html/./yc_help.so: yc_help.cpp
-../../../mods/html/./yc_loggedin.so: yc_loggedin.cpp
-../../../mods/html/./yc_options.so: yc_options.cpp
-../../../mods/html/./yc_register.so: yc_register.cpp
diff --git a/src/mods/html/yc_admin.cpp b/src/mods/html/yc_admin.cpp
index a3a7f1f..bdf1694 100644
--- a/src/mods/html/yc_admin.cpp
+++ b/src/mods/html/yc_admin.cpp
@@ -1,12 +1,11 @@
/*:*
*: File: ./src/mods/html/yc_admin.cpp
*:
- *: yChat; Homepage: ychat.buetow.org; Version 0.9.0-CURRENT
+ *: yChat; Homepage: www.yChat.org; Version 0.8.3-CURRENT
*:
*: Copyright (C) 2003 Paul C. Buetow, Volker Richter
*: Copyright (C) 2004 Paul C. Buetow
*: Copyright (C) 2005 EXA Digital Solutions GbR
- *: Copyright (C) 2006, 2007 Paul C. Buetow
*:
*: This program is free software; you can redistribute it and/or
*: modify it under the terms of the GNU General Public License
@@ -38,7 +37,7 @@ extern "C"
{
s_string = tool::replace(s_string, "<", "&lt;");
s_string = tool::replace(s_string, ">", "&gt;");
- s_string = tool::replace(s_string, "\n", "<br />");
+ s_string = tool::replace(s_string, "\n", "<br>");
return s_string;
}
@@ -54,10 +53,10 @@ extern "C"
sort(p_vec_keys->begin(), p_vec_keys->end());
vector<string>::iterator p_vec_keys_iter = p_vec_keys->begin();
- p_content->append( "Currently are " + tool::int2string(p_vec_keys->size()) + " options available!<br /><br />\n");
+ p_content->append( "Currently are " + tool::int2string(p_vec_keys->size()) + " options available!<br><br>\n");
p_content->append( "<table bordercolor=\"1\">\n" );
- for ( ;p_vec_keys_iter != p_vec_keys->end(); ++p_vec_keys_iter )
+ for( ;p_vec_keys_iter != p_vec_keys->end(); ++p_vec_keys_iter )
{
if ( p_vec_keys_iter->find(".descr") != string::npos )
@@ -89,7 +88,7 @@ extern "C"
p_content->append( "<br><br></td></tr>\n" );
} // while
- p_content->append( "</table>\n<br />\n" );
+ p_content->append( "</table>\n<br>\n" );
return 0;
}
diff --git a/src/mods/html/yc_colors.cpp b/src/mods/html/yc_colors.cpp
index dba0318..be87942 100644
--- a/src/mods/html/yc_colors.cpp
+++ b/src/mods/html/yc_colors.cpp
@@ -1,12 +1,11 @@
/*:*
*: File: ./src/mods/html/yc_colors.cpp
*:
- *: yChat; Homepage: ychat.buetow.org; Version 0.9.0-CURRENT
+ *: yChat; Homepage: www.yChat.org; Version 0.8.3-CURRENT
*:
*: Copyright (C) 2003 Paul C. Buetow, Volker Richter
*: Copyright (C) 2004 Paul C. Buetow
*: Copyright (C) 2005 EXA Digital Solutions GbR
- *: Copyright (C) 2006, 2007 Paul C. Buetow
*:
*: This program is free software; you can redistribute it and/or
*: modify it under the terms of the GNU General Public License
diff --git a/src/mods/html/yc_help.cpp b/src/mods/html/yc_help.cpp
index 970192e..8b548e5 100644
--- a/src/mods/html/yc_help.cpp
+++ b/src/mods/html/yc_help.cpp
@@ -1,12 +1,11 @@
/*:*
*: File: ./src/mods/html/yc_help.cpp
*:
- *: yChat; Homepage: ychat.buetow.org; Version 0.9.0-CURRENT
+ *: yChat; Homepage: www.yChat.org; Version 0.8.3-CURRENT
*:
*: Copyright (C) 2003 Paul C. Buetow, Volker Richter
*: Copyright (C) 2004 Paul C. Buetow
*: Copyright (C) 2005 EXA Digital Solutions GbR
- *: Copyright (C) 2006, 2007 Paul C. Buetow
*:
*: This program is free software; you can redistribute it and/or
*: modify it under the terms of the GNU General Public License
@@ -49,7 +48,7 @@ extern "C"
sort(p_vec_keys->begin(), p_vec_keys->end());
vector<string>::iterator p_vec_keys_iter = p_vec_keys->begin();
- while ( p_vec_keys_iter != p_vec_keys->end() )
+ while( p_vec_keys_iter != p_vec_keys->end() )
{
if ( p_vec_keys_iter->find( "mods/commands/", 0 ) != string::npos )
@@ -64,7 +63,7 @@ extern "C"
s_content->append( "<table bordercolor=\"1\">\n" );
s_content->append( "<tr><td><font color=\"#FFFFFF\"><b>/" + s_command_name + "</b></font></td></tr>\n" );
s_content->append( "<tr><td>" + p_conf->get_elem("chat.msgs.help." + s_command_name) + "</td></tr>\n" );
- s_content->append( "</table>\n<br />\n" );
+ s_content->append( "</table>\n<br>\n" );
}
}
p_vec_keys_iter++;
diff --git a/src/mods/html/yc_loggedin.cpp b/src/mods/html/yc_loggedin.cpp
index a50993f..3b14dab 100644
--- a/src/mods/html/yc_loggedin.cpp
+++ b/src/mods/html/yc_loggedin.cpp
@@ -1,12 +1,11 @@
/*:*
*: File: ./src/mods/html/yc_loggedin.cpp
*:
- *: yChat; Homepage: ychat.buetow.org; Version 0.9.0-CURRENT
+ *: yChat; Homepage: www.yChat.org; Version 0.8.3-CURRENT
*:
*: Copyright (C) 2003 Paul C. Buetow, Volker Richter
*: Copyright (C) 2004 Paul C. Buetow
*: Copyright (C) 2005 EXA Digital Solutions GbR
- *: Copyright (C) 2006, 2007 Paul C. Buetow
*:
*: This program is free software; you can redistribute it and/or
*: modify it under the terms of the GNU General Public License
diff --git a/src/mods/html/yc_options.cpp b/src/mods/html/yc_options.cpp
index ec269c8..502fdfa 100644
--- a/src/mods/html/yc_options.cpp
+++ b/src/mods/html/yc_options.cpp
@@ -1,12 +1,11 @@
/*:*
*: File: ./src/mods/html/yc_options.cpp
*:
- *: yChat; Homepage: ychat.buetow.org; Version 0.9.0-CURRENT
+ *: yChat; Homepage: www.yChat.org; Version 0.8.3-CURRENT
*:
*: Copyright (C) 2003 Paul C. Buetow, Volker Richter
*: Copyright (C) 2004 Paul C. Buetow
*: Copyright (C) 2005 EXA Digital Solutions GbR
- *: Copyright (C) 2006, 2007 Paul C. Buetow
*:
*: This program is free software; you can redistribute it and/or
*: modify it under the terms of the GNU General Public License
diff --git a/src/mods/html/yc_register.cpp b/src/mods/html/yc_register.cpp
index c37ee02..5ae000c 100644
--- a/src/mods/html/yc_register.cpp
+++ b/src/mods/html/yc_register.cpp
@@ -1,12 +1,11 @@
/*:*
*: File: ./src/mods/html/yc_register.cpp
*:
- *: yChat; Homepage: ychat.buetow.org; Version 0.9.0-CURRENT
+ *: yChat; Homepage: www.yChat.org; Version 0.8.3-CURRENT
*:
*: Copyright (C) 2003 Paul C. Buetow, Volker Richter
*: Copyright (C) 2004 Paul C. Buetow
*: Copyright (C) 2005 EXA Digital Solutions GbR
- *: Copyright (C) 2006, 2007 Paul C. Buetow
*:
*: This program is free software; you can redistribute it and/or
*: modify it under the terms of the GNU General Public License